onedrive

OneDrive API Node.js - Can´t use :/createUploadSession Content-Range Error

落爺英雄遲暮 提交于 2019-12-04 02:07:52
问题 My problem was that I couldn´t upload files bigger than 4MB so I used the createuploadsession according to createuploadsession I successfully get the uploadUrl value from the createuploadsession response. Now I try to make a PUT request with this code var file = 'C:\\files\\box.zip' fs.readFile(file, function read(e, f) { request.put({ url: 'https://api.onedrive.com/rup/545d583xxxxxxxxxxxxxxxxxxxxxxxxx', headers: { 'Content-Type': mime.lookup(file), 'Content-Length': f.length, 'Content-Range'

Onedrive API vs LiveSDK

限于喜欢 提交于 2019-12-03 23:21:08
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 top of that both have been updated recently (in April for the LiveSDK ). So my question is As long as

How to simply access SkyDrive, write and read files?

孤人 提交于 2019-12-03 08:47:28
I want to use SkyDrive to backup some information. But seems they have removed this namespace Microsoft.Live.Controls; from the new SDK, and all code samples and also answers here are outdated. this reference also is outdated; there is no more LiveConnectClient How can I simply backup files to SkyDrive after these changes? (any code sample or reference is appreciated.) It's not that hard, but there really are no references or tutorials. Everything that's below works just fine in my Windows Phone 8 project. You need to include Microsoft.Live namespace after installing Live SDK. First you have

Programmatic access of SkyDrive

不打扰是莪最后的温柔 提交于 2019-12-03 05:51:36
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. :-) You can now officially integrate parts of SkyDrive with Windows Phone 7 applications. Details outlined here . 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

Microsoft's Graph permission resource type has no invitations

喜你入骨 提交于 2019-12-02 12:53:37
问题 Been trying to collect information regarding specific DriveItem's permissions using both Microsoft Graph's unified API, and OneDrive API. Documentation states the following properties are available in the Permission resource type : { "grantedTo": { "application": { "displayName": "displayName-value", "id": "id-value" }, "device": { "displayName": "displayName-value", "id": "id-value" }, "user": { "displayName": "displayName-value", "id": "id-value" } }, "id": "id-value", "invitation": {

OneDrive UNC paths

故事扮演 提交于 2019-12-02 11:20:59
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. 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. It is supported. Same format as it is for SharePoint Online document library mappings. \tenant-my.sharepoint.com\personal\username\Documents

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

孤街浪徒 提交于 2019-12-02 10:04:41
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/aWr4X0cHWAzEF7s7HBEABBptxlWcKHEyrgKfbH2YbADpxEjU0gRrOz37WInvPSgFVD8BZ9GtCQwdHh3GUXunbM

MS graph API sharepoint site. Create a folder in root

依然范特西╮ 提交于 2019-12-02 08:10:59
问题 I try to use the MS graph API to work with sharepoint sites. All works fine, except i can not find how to create a folder in root of a site (folders are documents library). If i know the site id (SITEID) i can list folders in root of the site as drives GET /v1.0/sites/SITEID/drives I have ID for each item (it is like a drive ID). The i can list folders on drives (which are subfolders of top level folders on a site) GET /v1.0/sites/SITEID/drives/DRIVEID/root/children I can create folders in

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

我的梦境 提交于 2019-12-02 06:23:16
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 expected), but I am prompted with the permissions screen again. Is there a way of having the app log

Get all SharePoint files and folders of a drive using Microsoft Graph API

会有一股神秘感。 提交于 2019-12-01 23:22:37
My problem is: if I call https://graph.microsoft.com/v1.0/sites/{site-id}/drives/{drive-id}/root/children all I get are the top-level items of that drive. How can I achieve to get all the subfolders and files of the drive? Lee_MSFT There's no endpoint to get all items in a drive with every file from every subfolder at once. Below endpoint maps to a test library MyDoc3. /sites/siteid/drives/{drive-id} Then, below endpoint use to get children of FolderA in MyDoc3. /sites/siteid/drives/{drive-id}/root:/FolderA:/children 来源: https://stackoverflow.com/questions/54496616/get-all-sharepoint-files-and