Question

Is there an official API in the upcoming Mango release of WP7 to upload a file to skydrive?

If it is, where can I find an example and the API description?

Was it helpful?

Solution

According to this SO post:

SkyDrive functionality is not available to third-party developers. As a matter of fact, there is no official public SkyDrive API.

Also see this other SO post.

UPDATE: (Credit to Eric for pointing out the change in API accessibility)

From the window steam blog:

The new version of the Live Connect APIs and the Live SDK for Windows Phone has now shipped. Please read on to learn more about what’s available now, or visit the Live Connect developer center to get even more details.

The developer center notes that:

The Live SDK is also available for Windows Phone, Android and iOS. The Live Connect APIs use open standards like OAuth 2.0, JSON, and XMPP, making them easy and familiar to work with.

OTHER TIPS

You can use the Live SDK to integrate SkyDrive into your Windows Phone applications. Please see our code samples on GitHub.

Windows Phone applications can use the Live SDK for Windows Phone to create, read, write or delete photos and documents in SkyDrive.

AFAIK there is no official API for uploading a file to SkyDrive from Mango/WP7... see for example http://windowsteamblog.com/windows_live/b/windowslive/archive/2011/06/07/don-t-wait-for-your-cloud-use-hotmail-and-skydrive-today-on-your-pc-mac-or-phone.aspx

You could use an unofficial client - see http://skydriveapiclient.codeplex.com/

EDIT:

Since SkyDrive is accessible via WebDAV you can use for the basic tasks like uploading a file any WebDAV-capable client...

A preview on the Live SKD has been announced at Build11.

You can signup and get the API inclusive documentation at: http://connect.microsoft.com/site1226

The Microsoft SkyDrive "API" is implemented as JavaScript libraries. Not only do they NOT support basic general filesystem management operations, you have to instantiate a browser object and pull its chain, which is extremely kludgy.

I have directly implemented some classes that will allow you to use SkyDrive as a cloud based file system. I have not supported any of the social media aspects.

My classes will allow you to

  • authenticate
  • create and delete folders
  • create, read, write and delete files

Available here: http://cerulean.codeplex.com/documentation

no need for a library

oneDrive install client locally

used System.IO.File.Copy ("path to local file", "path to my local onedrive directory")

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top