OneDrive / onedrive-sdk-python

OneDrive SDK for Python! https://dev.onedrive.com
MIT License
1.08k stars 189 forks source link

Onedrive for business #200

Closed jkim8256 closed 3 weeks ago

jkim8256 commented 2 years ago

Hi, while i was working with onedrive for business account to gain access and use the api, then i ran into a problem. 20220113_104320

20220113_104621

Here are the code and traceback. I have been reading it for a while now, but all i understood is that api.office.com is having a connection issue.

Could i get some help? Thanks in advance for your time!

KTibow commented 2 years ago

It means it couldn't connect to the Office API. Make sure you have a working internet connection and DNS.

jkim8256 commented 2 years ago

Thank you for the reply! However, I am very sure that I had a working internet connection when I was running the program. I am not sure what you mean by DNS though. (The link to the office API ("discovery_uri" I believe) was from the example from this GitHub readme page. Also, the "https://api.office.com" was not reachable when I tried to connect to it.) Capture

Is the api page deprecated or something? Or am I just not understanding things? Again, thanks in advance for your time and help!

KTibow commented 2 years ago

Sad news: Our beloved repo is becoming discontinued. https://devblogs.microsoft.com/microsoft365dev/outlook-rest-api-v2-0-deprecation-notice/ It sounds like you'll have to manually work with the API using the requests library.

jkim8256 commented 2 years ago

Sorry for the late reply. So does that mean I cannot use the OneDrive for business example code as it uses the outlook rest API v2.0 and thus I need to use requests library somehow(idk how to use them yet) to replace the soon-to-be-deprecated rest API?

Or does that mean this whole repository "onedrive-sdk-python" is being discontinued due to the MS rest API being discontinued soon?

I assume the former is right rather than latter, but just to make sure. And always, thank you so much!

KTibow commented 2 years ago

This library will no longer work (the code will probably stay there) for business, and possibly stop working for personal. All the library did was talk to the API for you, and you can directly talk to the API using the requests library. This updated version may/may not work.

yyqi17 commented 2 years ago

Hi, have you solved this problem connecting to OneDrive for business?

KTibow commented 2 years ago

This SDK is abandoned.

baywet commented 3 weeks ago

Thank you for reaching out and for your patience. This SDK is being officially deprecated. See #209 for more information