Thank you very much for this video. This is the most concise and concrete example of how to use MSAL with Python I've managed to find so far! Keep up the good work. Cheers
Love you man, thanks! I think you are the only one that shows app only access for msal library haha. --- I was using msgraph sdk the new one, but that doesn't work with splunk's inbuilt python. Atleast I wasn't able to make it work. Hopefully msal should work! Have a nice life! :)
Hi great and clear video. I have an error though. at the "access_token" in the if where access token in result. It states the error can not itterate over None type. This is maybe because the account =None?
Thanks a lot for your help, your video saved me a lot of time!! If you mind, could you help me whit what API Permissions should I have to have access to Ms Planner projects? I'm working on a project using python to download that data to a Dataframe, apply some ETL and upload it to a different Database. Thanks!!
Once you are logged in there should be no problem in getting Microsoft Planner plans using Graph API. Keep in mind that in order to keep data in sync with your DB, you need some "sync" mechanism to be developed on your side. I don't see any "delta" on Plans nor Tasks. So it looks like a regular "pull" on data.
Hi there. Great Idea. I will record such video shortly. High level instructions are below. Using Microsoft Graph API do the following 1) Get Site ID using: "/sites/{site_url}" endpoint (learn.microsoft.com/en-us/graph/api/site-get?view=graph-rest-1.0&tabs=http). You need Site ID to get it's documentLibraries. 2) Get Site Drives (documentLibraries) using "/sites/{siteId}/drives" (learn.microsoft.com/en-us/graph/api/drive-list?view=graph-rest-1.0&tabs=http) 3) Download DriveItem (File) using "/drives/{drive-id}/root:/{item-path}:/content" (learn.microsoft.com/en-us/graph/api/driveitem-get-content?view=graph-rest-1.0&tabs=http)
Why are you using the "acquire_token_silent method"? You don't have token cache set up in this file, you could remove all of that and simply use "acquire_token_for_client", and eliminate everything else pertaining to that token - without the cache it's pointless. Am I missing something?
You are right. It's just a habit I have to do it like that. In this case, it's not needed. Overall I would recommend having cache it in your code as per: msal-python.readthedocs.io/en/latest/#msal.SerializableTokenCache.
Thank you very much for this video. This is the most concise and concrete example of how to use MSAL with Python I've managed to find so far! Keep up the good work. Cheers
Love you man, thanks! I think you are the only one that shows app only access for msal library haha.
---
I was using msgraph sdk the new one, but that doesn't work with splunk's inbuilt python. Atleast I wasn't able to make it work.
Hopefully msal should work!
Have a nice life! :)
Glad I could help!
you earned a subscriber pal ! what a simplified video
Hi great and clear video. I have an error though. at the "access_token" in the if where access token in result. It states the error can not itterate over None type. This is maybe because the account =None?
Sir how important is this. Thank you i m doing this with my project. Thank you so much.
TE AMO CAPO CAPISIMOOOOOO
Great video. Very helpful for us
Does this include certficate based authentication ?
Thanks for the help! Great vid!
Thanks a lot for your help, your video saved me a lot of time!! If you mind, could you help me whit what API Permissions should I have to have access to Ms Planner projects? I'm working on a project using python to download that data to a Dataframe, apply some ETL and upload it to a different Database. Thanks!!
Once you are logged in there should be no problem in getting Microsoft Planner plans using Graph API. Keep in mind that in order to keep data in sync with your DB, you need some "sync" mechanism to be developed on your side. I don't see any "delta" on Plans nor Tasks. So it looks like a regular "pull" on data.
Hi thanks for your video. Do you know if its possible to send a chat message through this way? i mean using the API
Yes, you can. There is API end-point for that:
learn.microsoft.com/en-us/graph/api/chatmessage-post?view=graph-rest-1.0&tabs=http
Hi How i can connect with sharepoint to read the files. if possible can you do the video on sharepoint access.
Hi there. Great Idea. I will record such video shortly. High level instructions are below.
Using Microsoft Graph API do the following
1) Get Site ID using: "/sites/{site_url}" endpoint (learn.microsoft.com/en-us/graph/api/site-get?view=graph-rest-1.0&tabs=http). You need Site ID to get it's documentLibraries.
2) Get Site Drives (documentLibraries) using "/sites/{siteId}/drives" (learn.microsoft.com/en-us/graph/api/drive-list?view=graph-rest-1.0&tabs=http)
3) Download DriveItem (File) using "/drives/{drive-id}/root:/{item-path}:/content" (learn.microsoft.com/en-us/graph/api/driveitem-get-content?view=graph-rest-1.0&tabs=http)
Thank you!
Hi, is this approach will work where there is no outlook application.?
Yes. Microsoft Graph is a fully backend API.
Hello great video. But I got this error, Do you Know how to fix it?
raise Exception("No Access Token Found")
Exception: No Access Token Found
did you solve it?
@@betallyoungattractive644 No, I gave up
Put print statements around every "result" or "response" variable. Your issue is most likely with a bad client id or secret
Why are you using the "acquire_token_silent method"? You don't have token cache set up in this file, you could remove all of that and simply use "acquire_token_for_client", and eliminate everything else pertaining to that token - without the cache it's pointless. Am I missing something?
You are right. It's just a habit I have to do it like that. In this case, it's not needed. Overall I would recommend having cache it in your code as per: msal-python.readthedocs.io/en/latest/#msal.SerializableTokenCache.
this didn't helped me
Good to know. Please let everyone know what other videos that didn't help you on youtube. We are all very, very curious