开发者

Access Microsoft Live services from Python application

开发者 https://www.devze.com 2023-01-31 10:27 出处:网络
I need to access microsoft skydrive from my python app. Is there a SOAP or REST service that Microsoft provides for developers?

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 开发者_如何学Goany python library that allows to access skydrive exist?

Thank you.


No on the official API.

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


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消