I try to upload a text file to my skydrive or at least create new text file in SD and edit it\'s content, through SkyDrive API in my Windows 8 application. How can I do that
Here's another way to upload a file from a console application using a SkyDriveApiClient downloaded from http://skydriveapiclient.codeplex.com/releases/view/103081
static void Main(string[] args)
{
var client = new SkyDriveServiceClient();
client.LogOn("YourEmail@hotmail.com", "password");
WebFolderInfo wfInfo = new WebFolderInfo();
WebFolderInfo[] wfInfoArray = client.ListRootWebFolders();
wfInfo = wfInfoArray[0];
client.Timeout = 1000000000;
string fn = @"test.txt";
if (File.Exists(fn))
{
client.UploadWebFile(fn, wfInfo);
}
}