Connecting to Microsoft Graph API with Python msal library.

  Рет қаралды 15,451

Python Bites

Python Bites

Күн бұрын

Пікірлер: 28
@markoradonjic5535
@markoradonjic5535 Жыл бұрын
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
@cosmomind3373
@cosmomind3373 10 ай бұрын
you earned a subscriber pal ! what a simplified video
@jayjhaveri1906
@jayjhaveri1906 Жыл бұрын
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! :)
@pythonbites2244
@pythonbites2244 Жыл бұрын
Glad I could help!
@betallyoungattractive644
@betallyoungattractive644 7 ай бұрын
Great video. Very helpful for us
@oscargutierrez-by9xy
@oscargutierrez-by9xy 6 ай бұрын
Thanks for the help! Great vid!
@aravindm681
@aravindm681 Жыл бұрын
Sir how important is this. Thank you i m doing this with my project. Thank you so much.
@matiasbertona1811
@matiasbertona1811 2 ай бұрын
TE AMO CAPO CAPISIMOOOOOO
@wimvangeyt3866
@wimvangeyt3866 4 ай бұрын
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?
@pranaydevarashetty1924
@pranaydevarashetty1924 2 ай бұрын
Does this include certficate based authentication ?
@shashikumartheenathayapara2985
@shashikumartheenathayapara2985 Жыл бұрын
Thank you!
@emmanuelac6
@emmanuelac6 10 ай бұрын
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!!
@pythonbites2244
@pythonbites2244 10 ай бұрын
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.
@ramakrishnaalavala5280
@ramakrishnaalavala5280 Жыл бұрын
Hi How i can connect with sharepoint to read the files. if possible can you do the video on sharepoint access.
@pythonbites2244
@pythonbites2244 Жыл бұрын
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)
@rajeshmyakala3148
@rajeshmyakala3148 Жыл бұрын
Hi, is this approach will work where there is no outlook application.?
@pythonbites2244
@pythonbites2244 Жыл бұрын
Yes. Microsoft Graph is a fully backend API.
@marcelolastra4977
@marcelolastra4977 4 ай бұрын
Hi thanks for your video. Do you know if its possible to send a chat message through this way? i mean using the API
@pythonbites2244
@pythonbites2244 4 ай бұрын
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
@eduardoalmeida4692
@eduardoalmeida4692 10 ай бұрын
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
@betallyoungattractive644
@betallyoungattractive644 7 ай бұрын
did you solve it?
@eduardoalmeida4692
@eduardoalmeida4692 7 ай бұрын
@@betallyoungattractive644 No, I gave up
@adamcodes716
@adamcodes716 4 ай бұрын
Put print statements around every "result" or "response" variable. Your issue is most likely with a bad client id or secret
@k0.9486
@k0.9486 Жыл бұрын
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?
@pythonbites2244
@pythonbites2244 Жыл бұрын
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.
@lakme4604
@lakme4604 Жыл бұрын
this didn't helped me
@adamcodes716
@adamcodes716 4 ай бұрын
Good to know. Please let everyone know what other videos that didn't help you on youtube. We are all very, very curious
Authenticating with SharePoint Online using Python MSAL library
16:52
If people acted like cats 🙀😹 LeoNata family #shorts
00:22
LeoNata Family
Рет қаралды 35 МЛН
Мама у нас строгая
00:20
VAVAN
Рет қаралды 12 МЛН
Build your own custom Microsoft Graph Connector using Python
6:40
Microsoft 365 Developer
Рет қаралды 2,9 М.
How to Use Microsoft Graph APIs in Postman | Application Permission
18:42
Start calling the Microsoft Graph API in under 5 minutes! | Tips & Tricks
5:29
Microsoft 365 Developer
Рет қаралды 149 М.
Getting Started with Microsoft Graph API
13:50
Jeff Brown Tech
Рет қаралды 5 М.
15 POWERFUL Python Libraries You Should Be Using
22:31
ArjanCodes
Рет қаралды 60 М.
Beat Ronaldo, Win $1,000,000
22:45
MrBeast
Рет қаралды 98 МЛН
Authentication using MSAL in 10 mins!
8:46
Sheetal Chhabra
Рет қаралды 67 М.
Implementing OAuth 2.0 from SCRATCH
24:56
Carberra
Рет қаралды 4,1 М.
How To Create Access Token From Microsoft Graph API In Python
10:44
If people acted like cats 🙀😹 LeoNata family #shorts
00:22
LeoNata Family
Рет қаралды 35 МЛН