(根据 http://blogs.office.com/2014/05/08/develop-using-onedrive-for-business-with-the-new-office-365-apis/ 的说明在这里询问)
我正在尝试在 Ubuntu 机器上运行 OneDrive。使用 https://github.com/xybu/onedrive-d/我被要求针对以下 URL 进行 OAuth:
https://login.live.com/oauth20_authorize.srf?display=touch&client_id=000000004010C916&locale=en&scope=wl.skydrive+wl.skydrive_update+wl.offline_access&redirect_uri=https%3A%2F%2Flogin.live.com%2Foauth20_desktop.srf&response_type=code
但是,因为我使用的是 Office 365,所以我的公司帐户不会被识别为“真实”帐户。
所以,我的问题有两个。
login.microsoftonline.com/
是否有 OAuth URL (我通常在哪里登录)? 最佳答案
dev.onedrive.com 上提供了有关如何直接为 OneDrive 和 OneDrive for Business 调用 REST API 的所有详细信息。特别是,您可以在此处阅读有关身份验证的更多信息:dev.onedrive.com/auth/readme.md .
对于 OneDrive for Business,您可以使用此 OAuth URL:https://login.microsoftonline.com/common/oauth2/authorize
我们还提供 Python SDK:https://github.com/onedrive/onedrive-sdk-python .
关于ubuntu - 365 API 在 Linux 上运行 OneDrive?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29368780/