onedrive

MS Graph Java SDK: how to upload a large file to OneDrive?

て烟熏妆下的殇ゞ 提交于 2019-12-04 16:36:20
I'm trying to upload file to a OneDrive from my Java application, but i dont understand the flow and dont see any documentation or methods within SKD for file upload. The only flow i've found is: driveClient.me().drive().root().createUploadSession(uploadProperties).buildRequest().post() But this results in NPE: source . how can i set the content as InputStream ? 来源: https://stackoverflow.com/questions/54008743/ms-graph-java-sdk-how-to-upload-a-large-file-to-onedrive

How to upload file to OneDrive through console app?

你离开我真会死。 提交于 2019-12-04 14:37:35
I am trying to upload a file to OneDrive from within console app. After digging a bit into Google I found Live SDK but I couldn't find any article demonstrating file upload step by step using Live SDK . Is there any good resource explaining how to it? Thanks. The LiveSDK has a number of examples and template code that are hosted on Github, https://github.com/liveservices/LiveSDK-for-Windows . To see an example of how uploading is down you can explore the sample applications located at https://github.com/liveservices/LiveSDK-for-Windows/blob/master/src/Desktop/Samples/ApiExplorer/MainForm.cs

Programmatic access of SkyDrive

亡梦爱人 提交于 2019-12-04 10:42:15
问题 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. :-) 回答1: You can now officially integrate parts of SkyDrive with Windows Phone 7 applications. Details outlined here. 回答2: 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

How to download files from OneDrive

六眼飞鱼酱① 提交于 2019-12-04 08:39:00
I am looking to download my files in public folder from One Drive, but it doesn't download the files. Here is the scenario: In public folder I have another folder with multiple files in it and is accessible widely. for test purpose I have shared all the files in public folder (I don't if it's proper way of sharing it). The following links are provided for me to download the file: From shared folder link https://onedrive.live.com/redir?resid=DBBC281099F4FE69!646&authkey=!AGRCGuw8Y2_p9mA&ithint=folder%2c.mp3 From public folder link https://onedrive.live.com/redir?resid=DBBC281099F4FE69%21646

Create file to Onedrive programmatically from C#?

本秂侑毒 提交于 2019-12-04 06:53:20
I want to create a doc, docx, pptx or excel file from C# direct to my Onedrive account. I have try this but it's not working for me. Anybody have any idea what I did wrong ? Thanks public async Task<ActionResult> CreateWordFile() { LiveLoginResult loginStatus = await authClient.InitializeWebSessionAsync(HttpContext); if (loginStatus.Status == LiveConnectSessionStatus.Connected) { var fileData = new Dictionary<string, object>(); fileData.Add("name", "Document.docx"); fileData.Add("Content-Type", "multipart/form-data; boundary=A300x"); fileData.Add("type", "file"); LiveOperationResult getResult

OneDrive UNC paths

天大地大妈咪最大 提交于 2019-12-04 06:34:08
问题 This is not supported but does anyone know how to force OneDrive for Business use UNC paths? I've spoke with MS and its not on their roadmap and they arent forth coming with a solution. 回答1: This is how we rank the feature request among the community, post your feature in user voice and MS will identify the priority of the feature based on the voting numbers. Here is the user voice for office 365 website: https://office365.uservoice.com/ Hope this helps. 回答2: It is supported. Same format as

The request entity body has an incorrect value in the 'Content-Disposition' header. The expected format for this value is 'Content-Disposition:

一笑奈何 提交于 2019-12-04 05:48:05
问题 I have tried multiple HTTP APIs to post a file to OneDrive using the POST method, and I am getting always the same error. I went to the extreme case of creating my own SSL TCP socket and send the following bytes: POST /v5.0/folder.a4fb14adbccd1917.A4FB14ADBCCD1917!32089/files HTTP/1.1 Accept-Encoding: Authorization: Bearer eWciaQ1DBAAUGCCXc8wU/zFu9QnLdZXy%2bYnElFkAAXA4AJqTmiPoOUADOkV98mAdpBZp8SeF0zjYzU4%2bVa0fVR

How do I login to OneDrive (after the initial time) without seeing the permissions screen

回眸只為那壹抹淺笑 提交于 2019-12-04 05:07:00
问题 I have just started working with the OneDrive API and the sample program that comes with it (OneDriveApiBrowser). As expected, the first time I logged in (using "Sign In to MSA...", I was asked for credentials, my 2-factor code, and finally a permissions screen asking if I approve of the access that the app wants against my OneDrive account. But, after I exit the program and restart it, I am not logged in. I repeat going to "Sign In to MSA..." and I am no longer prompted for credentials (as I

skydrive System.Dynamic.DynamicObject

雨燕双飞 提交于 2019-12-04 04:20:25
问题 I'm trying to get a listing of all the folders for a signed in user on SkyDrive. LiveOperationResult operationResult = await client.GetAsync("me/skydrive/files"); dynamic result = operationResult.Result; I'd like to be able to do something like this: Dictionary<string, object> folderData = (Dictionary<string, object>)result; List<object> folders = (List<object>)folderData["data"]; foreach (object item in folders) { Dictionary<string, object> folder = (Dictionary<string, object>)item; if

How to get client secret from azure active directory for native app for using one drive business API?

☆樱花仙子☆ 提交于 2019-12-04 02:11:42
I am developing an outlook plugin.I want use one drive API's in it.I easily got the client Id and client secret for using API's for one drive personal accounts.But, when I registered my application for one drive business API's in azure active directory, it created only a client Id for me, but didn't create any client secret.I chose native app while registering, as my app is a native app.I can't authenticate the user without the client secret.Please let me know , how to get the client secret?Thanks in advance. Native clients don't have any secrets associated to them - given that they are meant