live-sdk

Upload to my_documents or my_photos folder OneDrive

回眸只為那壹抹淺笑 提交于 2020-01-06 19:51:58
问题 I can upload to the top level directory in OneDrive with a PUT request at the URI: I can upload a specific folder if I know it's specific ID: "https://apis.live.net/v5.0/folder.5f5fb682f4910ce0.5F5FB682F4910CE0!189/files/someFile.txt?access_token=xyz123" But how do I upload to a folder using it's friendly name, e.g. my_photos. The OneDrive documentation isn't helpful - it seems to gloss over this. It mentions friendly names, but I don't know how to use them as part of a URI PUT request. edit:

Cannot upload to OneDrive using the new SDK

▼魔方 西西 提交于 2020-01-04 05:31:05
问题 I am converting an 8.1 App to Windows 10 UWP. The App uses OneDrive for its private backups and restores, using the new OneDrive SDK, since the LiveSDK does not function with UWP apps. I have no problem in logging into my OneDrive, listing files and downloading them (using the code shown in the GitHub documentation but I have not yet been successful in uploading a file to my OneDrive. The code I use is : string path = "/EpubReader_Backups/" + zipfile.Name; string s = ""; try { Item

Universal Windows Plateform And Live SDK

别等时光非礼了梦想. 提交于 2019-12-31 04:33:25
问题 I have a problem. I recently installed VS 2015 and Windows 10 on my computer. Having Universal Apps are amazing and I plan to convert some of my programs on UWP. But I have a problem. In one of my programs, I allow the user to save its datas on its OneDrive. And if OneDrive is unavailable, the datas are stored on local devices. And when OneDrive is available, the newly stored datas are pushed to OneDrive. Synchronisation in fact. So it is the problem. In the UWP dll named Universal.Live I

Returned value is null when downloading a file from OneDrive

大憨熊 提交于 2019-12-25 02:29:11
问题 As it is said in the documentation, I try to download a file way: try { LiveDownloadOperation operation = await connectClient.CreateBackgroundDownloadAsync(filePath); var result = await operation.StartAsync(); var file = result.File; // It is null } catch { // Handle errors. } But result.File is null. I think something is wrong with my file path, which is like this: path = "file.8c8ce076ca27823f.8C8CE076CA27823F!129" also tried: path = "file.8c8ce076ca27823f.8C8CE076CA27823F!129/content" what

Live Connect authentication status always “Unknown”

我是研究僧i 提交于 2019-12-24 09:40:05
问题 I'm facing some problem when authenticating in my WP8 app via Live SDK. I have added a SignInButton to my app: <live:SignInButton x:Name="btnSignIn" Scopes="wl.skydrive wl.skydrive_update wl.signin wl.offline_access" ClientId="MY_CLIENT_ID" SessionChanged="btnSignIn_SessionChanged" TextType="Login" /> In the code-behind I have the following: private async void btnSignIn_SessionChanged(object sender, Microsoft.Live.Controls.LiveConnectSessionChangedEventArgs e) { App.LiveSession = e.Session;

LIVE SDK v5.3 & Window 8 - How to tell the difference between a user logged in with a Microsoft Account and user with a local account?

空扰寡人 提交于 2019-12-24 09:15:08
问题 I'm using the v5.3 Live SDK for a Windows 8 Store App (XAML/C#) and I have a question. In my app, if the user is logged into Windows using a Microsoft Account, then I want to grab the firstname/lastname/Microsoft ID. If they are logged in to Windows using a local account and haven't logged in to my app, then I want to show a 'Login' button, so they can enter their Microsoft account email/password. I know how to do all that using the Live SDK, but my question is - how can I tell if the user is

W8.1 Live SDK 5.6 - LiveAuthClient.InitializeAsync System.NullReferenceException

空扰寡人 提交于 2019-12-24 06:42:50
问题 I'm developing a Windows 8.1 App (XAML/C#) with MVVM Light. I used to keep my LiveId inside the code just for debugging, but now it's time to do the LogIn. Currently i'm stuck with this piece of code: this.authClient = new LiveAuthClient(); LiveLoginResult loginResult = await this.authClient.InitializeAsync(scopes); It keeps giving me the error: An exception of type 'System.NullReferenceException' occurred in mscorlib.dll but was not handled in user code Additional information: Object

C# UWP LiveSKD and OneDrive access using FileOpenPicker

☆樱花仙子☆ 提交于 2019-12-22 18:27:20
问题 I'm developing a Universal Windows Platform app that allows a user to open and edit files using the FileOpenPicker. The idea is that the user can choose any file on their computer, including files located in their OneDrive folders. On Windows 10 Desktop, this is working perfectly. However, on a Windows Phone 10 device, the result is very different. When a user chooses a file with the picker, the file is downloaded to a local storage folder, and the user is able to edit the file. But when the

Onedrive API vs LiveSDK

僤鯓⒐⒋嵵緔 提交于 2019-12-21 07:06:25
问题 I am developing for WP8.1 and probably will port on other platforms. I want to integrate a OneDrive functionality, however, I can't understand what is the difference between LiveSDK (from NuGet packages) and OneDrive API. It seems that Microsoft does not communicate at all regarding that, I really don't understand why. As far as I understood, the LiveSDK is the old one and will be replaced by OneDrive API , but the LiveSDK seems so much simpler to use that I can't understand their logic... On

Login with Microsoft account using Live SDK

谁说胖子不能爱 提交于 2019-12-13 20:15:22
问题 I am creating a Windows 8.1 application, and I want to use it with multiple accounts. When I first started the application, I used the wl.signin scope to test the app faster, but I want to test now with other account(s). So I deleted this scope, I uninstalled the app from my computer, and from my Live Account I removed the apps permissions. Still, if I want to log in for the first time, the app wants permission for automatic login(== wl.signin , which I deleted from my scopes already as I