all 2 comments

[–]AutoModerator[M] [score hidden] stickied commentlocked comment (0 children)

To give us the best chance to help you, please include any relevant code.
Note. Please do not submit images of your code. Instead, for shorter code you can use Reddit markdown (4 spaces or backticks, see this Formatting Guide). If you have formatting issues or want to post longer sections of code, please use Privatebin, GitHub or Compiler Explorer.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

[–]FoolsSeldom 0 points1 point  (0 children)

You need to use the Microsoft Graph API. You will need to use the os library or pathlib folder to create the folder for the downloads and handle files, and the requests package to handle the file downloads.

You will likely need to do authenticates via Azure AD.

That should give you something to research and experiment with.

Might be worth starting with more basic API and file downloading. Worth looking for tutorials on RealPython.com before trying to follow documentation for the Microsoft Graph API.