I can't thank you enough for this. Been stuck putting so many hours trying to figure this out over the last week. Even ChatGPT/GPT4 couldn't help me with this one. Sent you some coffee money, first time I've ever done that for a UA-cam vid but you deserve it. Thank you again.
hi martianmoon and @jiejenn bro i am stuck with the following error- The code you entered has expired. Get a new code from the device you're trying to sign in to and try again. did u came accross this if u did help me out bro
Thanks. The MS Graph API took me 8 months to figure it out how to use it properly 😂. I will probably make a follow-up video since I have better grasp of the API now.
@@jiejenn there are some documentations that are pretty bad, they dont go straight to the point. Im integrating at work my app with a lot of apis and for example with GoToMeeting i still dont get the token properly. (It give me an error of not authenticated) Other examples are slack that they ask you to have https enabled (i used ngrok to setting Up locally). It took me a lot to realize i need to use ngrok to set Up locally and finally got It. In zoom they ask for a lot of documentation, in iCloud they ask you an Apple Id... Im having some headaches integrating Those APIS 😂
bro i am stuck with the following error- The code you entered has expired. Get a new code from the device you're trying to sign in to and try again. can you tell me how to figure this out i am able to put my outllook mail and pass word after that the error is showing "That Microsoft account doesn't exist. Enter a different account or"
It's unbelievable how if you want to use Todoist's API, you just copy the API Key from the settings and you're ready to go, but to work with Microsoft ToDo you have to go through all that BS.
Thank you for this series of videos! I am at enabling the scopes, but I can't find the options to permit OneDrive access. I am not sure if not enabling that would affect anything though, since it seems like you did successfully access to OneDrive in one of your later videos without worrying about the permission.
For the 2nd method, if the code is in a python (say Flask) web app, how to get the device 'code' or where user can get the device code? Also we rely on Microsoft Edge's company user profile (or the Windows Account extension in Chrome), so the authentication flow is transparent to my web app (I do not need to call msal.initiate_xxx_flow function to initiate authentication flow. How can I get the access_code or login user name? thank you!
@@jiejenn thanks. by looking at your sample code, i understand the device code is user-independent? If so where to authenticate? or you mean user uses the One-time password code in the Authenticator mobile app (I tried but the web page ('verification_uri') does not recognize my One-time password code) also do you happen to have any ideas about my the other question? thanks.
Thanks !! my app is running on schedule basis so what will be the best way to get access token. we can't use here browser.. do we have anything like managed identity
If you want to use a client secret instead of the regular OAuth2 flow, then you will need to 1) replace scopes with graph.microsoft.com/.default and 2) grant admin consent for Default directory to the permission sets (this will be under application permissions). Just be warned that, not all the permissions are available under application permissions.
@@jiejenn Hello your videos are great they have helped me a lot, can you make a little video showing this authentication without prompting the browser, thank you!!
Do I have to create an account on Azure? I only have my personal account on outlook and I want to use this API to download an excel file and use in to my application. To summarize, do I have to pay to use this Azure service ?
Hey, great video, helped me a lot (to make a code a little bit easier i get the token by username/password) and seems like everything works :) I wonder if I can refresh the permissions of the app after the first web authentication. I added new permissions (such as One Note reads etc), but seems like it doesnt update and web authentication shows me that connection is refused (so I cant get to the site second timer)
Hi everyone, I'm creating a script that saves files to OneDrive for business purposes. How can I evaluate how much it will cost to do this? Based on my research, this seems to be within the scope of the free account, but I'm not confident. Could anyone with more expertise provide some guidance?
@jiejenn bro i am stuck with the following error- The code you entered has expired. Get a new code from the device you're trying to sign in to and try again. can you tell me how to figure this out i am able to put my outllook mail and pass word after that the error is showing
You are a champion. This saved me from days of running around in circles. Thank you 👊
😂man I did a week research n just found this video like why msdn even existed if its not helpful when you need it
I can't thank you enough for this. Been stuck putting so many hours trying to figure this out over the last week.
Even ChatGPT/GPT4 couldn't help me with this one.
Sent you some coffee money, first time I've ever done that for a UA-cam vid but you deserve it.
Thank you again.
Appreciate the tip.
By the way, this took me 3 months to finally figure it out 🤣
@@jiejenn dude 3 months 😭😭😭
You’re an absolute legend, thank you for sharing this with the world 🙏🏻
hi martianmoon and @jiejenn
bro i am stuck with the following error-
The code you entered has expired. Get a new code from the device you're trying to sign in to and try again.
did u came accross this if u did help me out bro
i came from a suggestion from GPT4 to watch this video she is insane thank you @jieje
I want to have the script running in the background in an aws lambda, is there a way to eliminate the user having to log in?
Thank you! This is so much clearer than Microsoft's own documentation.
Glad video helped
Microsoft documentation are so long that are completely useless. Nobody has time to read a bible for using something.
Such a time saver. I should have watched this first before spending so much time. 😃
is there a way to bypass the manual login process (where you entered the code in the prompt)?
Hello Jie Jenn, you are the master of the API integration haha.
Thanks for this amazing tutorials.
Thanks. The MS Graph API took me 8 months to figure it out how to use it properly 😂. I will probably make a follow-up video since I have better grasp of the API now.
@@jiejenn there are some documentations that are pretty bad, they dont go straight to the point.
Im integrating at work my app with a lot of apis and for example with GoToMeeting i still dont get the token properly. (It give me an error of not authenticated)
Other examples are slack that they ask you to have https enabled (i used ngrok to setting Up locally).
It took me a lot to realize i need to use ngrok to set Up locally and finally got It.
In zoom they ask for a lot of documentation, in iCloud they ask you an Apple Id...
Im having some headaches integrating Those APIS 😂
@@jiejenn it would be nice if you make a tutorial of how to integrate gotomeeting api with python
bro i am stuck with the following error-
The code you entered has expired. Get a new code from the device you're trying to sign in to and try again. can you tell me how to figure this out i am able to put my outllook mail and pass word after that the error is showing "That Microsoft account doesn't exist. Enter a different account or"
im trying to use this to gain access to my onenote pages so I can refine my notes using gpt-3 api
Amazing tutorial, no way I could find this with MS docs. Plus they write (deprecated) on half the useful methods
It's unbelievable how if you want to use Todoist's API, you just copy the API Key from the settings and you're ready to go, but to work with Microsoft ToDo you have to go through all that BS.
Have to agree with you on this one.
Do we have some ways to avoid having to log in? eg. if we want to run this as a background job for example (in a Gitlab CI/Jenkins job for example)
That's something I am still trying to figure it out.
@@jiejennHave you figured it out? Is it possible?
ys@@__unknown___
amazing dude really thx
thank you so much homie
Amazing 👍
For a script running in the background, how can you eliminate the user having to log in
This is something I am still trying to figure out.
Thank you for this series of videos!
I am at enabling the scopes, but I can't find the options to permit OneDrive access. I am not sure if not enabling that would affect anything though, since it seems like you did successfully access to OneDrive in one of your later videos without worrying about the permission.
Your suspicion is correct. Turns out you can manually assign the scope in the script directly without.
thank you for sharing
For the 2nd method, if the code is in a python (say Flask) web app, how to get the device 'code' or where user can get the device code?
Also we rely on Microsoft Edge's company user profile (or the Windows Account extension in Chrome), so the authentication flow is transparent to my web app (I do not need to call msal.initiate_xxx_flow function to initiate authentication flow. How can I get the access_code or login user name?
thank you!
Method 2 is just OAuth2 protocol most Microsoft web services use. Users authenticate their account by providing their credential info.
@@jiejenn thanks. by looking at your sample code, i understand the device code is user-independent? If so where to authenticate? or you mean user uses the One-time password code in the Authenticator mobile app (I tried but the web page ('verification_uri') does not recognize my One-time password code)
also do you happen to have any ideas about my the other question?
thanks.
Thanks !! my app is running on schedule basis so what will be the best way to get access token. we can't use here browser.. do we have anything like managed identity
If you want to use a client secret instead of the regular OAuth2 flow, then you will need to 1) replace scopes with graph.microsoft.com/.default and 2) grant admin consent for Default directory to the permission sets (this will be under application permissions). Just be warned that, not all the permissions are available under application permissions.
@@jiejenn Hello your videos are great they have helped me a lot, can you make a little video showing this authentication without prompting the browser, thank you!!
@@paularayaviquez1096 it would be very useful for me too. thx
@@paularayaviquez1096 x2
謝謝!
不客氣
ValueError: API does not accept frozenset({'offline_access', 'profile', 'openid'}) value as user-provided scopes
Anything on this? anyone?
Do I have to create an account on Azure? I only have my personal account on outlook and I want to use this API to download an excel file and use in to my application.
To summarize, do I have to pay to use this Azure service ?
Yes you will have to create an Azure account
@@jiejenn to use for this purpose that I mentioned, how much can cost ?
@@Python_Griffin Free
Hello. What is the Azure Cloud Environment you switched to?
Not sure if I follow your question. Can you be more specific?
Thanks!!!
Glad the video helped!
Thanks this is pretty interesting! Also do you know why Facebook/ig api is also named graph, this is weird it isn’t linked i guess ?
Could be just coincidence.
@@jiejenn ah ok lol
Authorization_codes are short lived, so how to make method 1 automated and really work?
Maybe this video might help ua-cam.com/video/AjOfAQCZsJU/v-deo.html.
Hey, great video, helped me a lot (to make a code a little bit easier i get the token by username/password) and seems like everything works :)
I wonder if I can refresh the permissions of the app after the first web authentication. I added new permissions (such as One Note reads etc), but seems like it doesnt update and web authentication shows me that connection is refused (so I cant get to the site second timer)
did u face the problem of code expiration.
@@satyamshukla1418 I have not
can this be done for presence api?
Not familiar with presence API, but if it is part of the Grape API ecosystem, then I don't see why not.
Can you help me to connect with Salesforce through VBA code for creating a case on Salesforce
It will really me
Hi, I'm getting 401 in response could you please help.
Error 401 means unauthorized access detected. Makes sure you set up your app and provide the app detail correctly.
Hi everyone, I'm creating a script that saves files to OneDrive for business purposes. How can I evaluate how much it will cost to do this? Based on my research, this seems to be within the scope of the free account, but I'm not confident. Could anyone with more expertise provide some guidance?
@@DiegoLacerda-r6u for OneDrive, currently it is free with unlimited usage.
@@jiejenn Thanks!
Can you make tutorial with Sharepoint Online?
I don't have experience with SharePoint unfortunately.
@jiejenn
bro i am stuck with the following error-
The code you entered has expired. Get a new code from the device you're trying to sign in to and try again. can you tell me how to figure this out i am able to put my outllook mail and pass word after that the error is showing
yes, same problem 😅
@@eric_ma3812 same :/
Same issue here, did you find a solution?