從 Python 應用程序訪問 Microsoft Live 服務 (Access Microsoft Live services from Python application)


問題描述

從 Python 應用程序訪問 Microsoft Live 服務 (Access Microsoft Live services from Python application)

I need to access microsoft skydrive from my python app. Is there a SOAP or REST service that Microsoft provides for developers?

If there is no web service, does any python library that allows to access skydrive exist?

Thank you.

‑‑‑‑‑

參考解法

方法 1:

No on the official API.

There are a couple of .NET libraries for unofficial access, which you could use from IronPython.

方法 2:

There is a REST API for SkyDrive now.

Broadly the protocol is as follows:

  • Get a client ID for your app.
  • Use the client ID to get the user signed in, thus obtaining an access token.
  • Use the access token to get info about the current user because at first the only relevant thing you know about the current user is the name "me".
  • Use the access token and user ID to operate the SkyDrive API. For example you'll probably want to get the user's top‑level folder in the SkyDrive directory.

There are also some Python modules available, such as python‑skydrive and txSkyDrive. But those are only for Python 2.7.

(by Roman PrykhodchenkoThomas Kminopret)

參考文件

  1. Access Microsoft Live services from Python application (CC BY‑SA 3.0/4.0)

#onedrive #Python #live






相關問題

WP7-Skydrive API 下載任何文件並保存隔離存儲 (WP7-Skydrive API Download Any file and Save Isolated Storage)

如何編寫 .NET 控制台應用程序來訪問 SkyDrive? (How can I write a .NET console application to access SkyDrive?)

Loại đăng nhập Skydrive API Windows 8 (Skydrive API login type Windows 8)

如何使用 Rest api 和 oauth2.0 創建文件夾和上傳文件 (How to create folder and upload file using Rest api and oauth2.0)

從 ERP 保存到 OneDrive (Save to OneDrive from ERP)

適用於 Windows 通用 APP 的 OneDrive Api (OneDrive Api for Windows Universal APP)

一種 Drive / Office365 與 Google Apps Script 類似的腳本語言 (One Drive / Office365 similar scripting language as the Google Apps Script)

OneDrive API 瀏覽器 C# (OneDrive API browser C#)

從 Python 應用程序訪問 Microsoft Live 服務 (Access Microsoft Live services from Python application)

一個驅動器 api 安全 URL (One drive api secure url)

嘗試使用 get-PnPFile 從 OneDrive 獲取文件的所有版本時找不到文件 (File not found trying to get all versions of a file from OneDrive using get-PnPFile)

一個驅動器遷移 (One Drive Migration)







留言討論