Question

Does anyone know how to access SkyDrive programmatically from Windows Phone 7? What API do I use? I need to upload files from the Phone to SkyDrive and vice versa.

Some code samples would be great. :-)

Was it helpful?

Solution

You can now officially integrate parts of SkyDrive with Windows Phone 7 applications.

Details outlined here.

OTHER TIPS

There is a new Live SDK available from Microsoft which I think can do this. It's also in a very early alpha or beta state: http://msdn.microsoft.com/en-us/library/bb264574.aspx

I have developed a sample based on SkyPad (Developer Preview). Please install the Windows Live Developer preview SDK.

The sample allows to save a file to SkyDrive and dowload it again after saving.

Here the link: http://blog.mecum.biz/2011/10/windows-phone-7-mango-skydrive-sample/

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

Not an answer, but there's hope that an answer is on the way:

However, when Mike Torres was asked about features such as better usability, third-party API support, Windows Live Mesh integration, and expandable storage, he acknowledged that these are "top asks" for SkyDrive and said that they are currently "hard at work on SkyDrive as we speak" Source

Your requirements sound pretty much like mine - you just want to use skydrive as a basic cloud filesystem.

I thought Matt's suggestion was an outstanding idea. I obtained the library and set out to port it, but unfortunately the codebase is huge and elaborate and absolutely riddled with the [Serializable] attribute which is not compatible with WP7. It also makes extensive use of several pieces of framework not available in WP7x, including X509Chain and Authorization.

SkyDriveApi is not even compatible with VS2010 - an attempted conversion produced a big mess so I just tried it out in VS2008.

We could always write one. This looks like a fair bit of work so I invite you to collaborate.


Well, it's feature complete and working a treat. I'd like to thank people for all the support and assistance I received reverse engineering the protocol using Fiddler, and coding, testing and debugging the prototype into production ready code. I'd like to, but nobody contributed a damn thing. Good luck writing your own.

SkyDrive doesn't have an official API but here are some unofficial ones. I'd start by looking at http://skydriveapiclient.codeplex.com/.
It doesn't claim support for WP7 but you may be able to port it.

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