onedrive

Uploading files to OneDrive. 401 error

时光毁灭记忆、已成空白 提交于 2019-12-11 21:52:33
问题 I'm implementing uploading big files to OneDrive by using BITS protocol. Here is the documentation I'm having the following issue. After a certain period of time of being logged in when I'm trying to create a session I'm receiving 401 error. Here's the complete response: <NSHTTPURLResponse: 0x7d6ee0f0> { URL: https://cid-da1cedf5484811a9.users.storage.live.com/items/DA1CEDF5484811A9!373/IMG_0003.JPG } { status code: 401, headers { "BITS-Packet-Type" = Ack; "Content-Length" = 0; Date = "Mon,

Error When uploading file with BackgroundUploadAsync in WP8?

一个人想着一个人 提交于 2019-12-11 16:52:22
问题 I want to upload my recorded file to skydrive and I am using these codes For recording; void StopRecording() { // Get the last partial buffer int sampleSize = microphone.GetSampleSizeInBytes(microphone.BufferDuration); byte[] extraBuffer = new byte[sampleSize]; int extraBytes = microphone.GetData(extraBuffer); // Stop recording microphone.Stop(); // Create MemoInfo object and add at top of collection int totalSize = memoBufferCollection.Count * sampleSize + extraBytes; TimeSpan duration =

How to get the list of possible operations that can be performed on DriveItem resource?

南楼画角 提交于 2019-12-11 15:47:32
问题 We are writing a OneDrive client application using a the REST APIs provided for OneDrive (personal) and need a way to identify the operations supported/allowed on the resource. There's something called activities which lists all the operations that have already been performed on a resource. And the Permission resource provides information about a sharing permission granted for a DriveItem resource. The same is returning a blank array when called:(. So, is there any way to identify what all

Microsoft Graph API PUT OneDrive/SharePoint

ぐ巨炮叔叔 提交于 2019-12-11 15:44:17
问题 Trying to post a file to a subfolder of the Shared Documents folder. I thought I had the correct syntax down, but I keep getting StatusCode 400 Bad Request. https://graph.microsoft.com/v1.0/sites/xxxxxx.sharepoint.com,495435b4-60c3-49b7-8f6e-1d262a120ae5,0fad9f67-35a8-4c0b-892e-113084058c0a/drives/b!tDVUScNgt0mPbh0mKhIK5WefrQ-oNQtMiS4RMIQFjAqJk9Tt237bQYC9yEkyNOr6/items/01JDP7KXJ7ZSCYHUJC7BFJW2X6BTR4Z4JH:/filename.xlsx:/content where "filename" is the actual filename. I know a GET to the

How to upload to a OneDrive shared folder programmatically with least user interaction?

时光毁灭记忆、已成空白 提交于 2019-12-11 12:58:50
问题 one question, if it's possible, how to upload files, to a shared OneDrive folder? I'd like to make an app, that would use the OneDrive as storage, but since OneDrive SDK requires user's login, I was wondering if it's possible to first programmatically share, or somehow with least user interaction have my app's users be able to access a folder from my own OneDrive for Business 1TB account and have them chunk upload the file there instead of uploading it to their own account? As I said, ideally

Uploading string as text file to SkyDrive?

陌路散爱 提交于 2019-12-11 07:26:26
问题 I'm trying to use C# with the Live Connect API to upload a blank (or one that says "test") text file to SkyDrive. The code I have so far: LiveConnectClient client = await LiveSignin(); string folderID = await getFolder(client); client.BackgroundUploadAsync(folderID, "pins.txt", "", OverwriteOption.Rename); where LiveSignin() is a function that handles the sign in code and returns a LiveConnectClient, and getFolder(LiveConnectClient client) is a function that gets the folder ID that I'm trying

How to OneDrive API file uploads with node.js?

浪尽此生 提交于 2019-12-11 07:01:55
问题 After a time I finally figure out how to use oAuth2 and how to create a access token with the refresh token. But I can´t find node.js samples for upload files the only thing I found was this module https://www.npmjs.com/package/onedrive-api But this didn´t work for me because I get this error { error: { code: 'unauthenticated', message: 'Authentication failed' } } Also if I would enter accessToken: manually with 'xxxxxxx' the result would be the same. But I created before the upload the

Microsoft Graph download file content returns 404

。_饼干妹妹 提交于 2019-12-11 06:58:13
问题 I tried to download a file with Grpah API. Tested with API browser, https://graph.microsoft.io/en-us/graph-explorer# Ran following request, got list of file/folder item information, https://graph.microsoft.com/v1.0/me/drive/root/children And for one of the file item, I was able to get item information. https://graph.microsoft.com/beta/me/drive/items/_an_item_id But following returns HTTP 404. https://graph.microsoft.com/beta/me/drive/items/_an_item_id/content What will be the cause for this

Is it possible to upload something to SkyDrive via .NET?

我是研究僧i 提交于 2019-12-11 06:07:15
问题 I've spotted this question: Does Microsoft SkyDrive have an API? But not having an API doesn't mean there isn't some way of uploading files to the SkyDrive! 回答1: Break out an HTTP recorder and learn the "API". HttpFox works. I use HTTPScoop on OSX. 来源: https://stackoverflow.com/questions/904929/is-it-possible-to-upload-something-to-skydrive-via-net

How to upload a large document in c# using the Microsoft Graph API rest calls

人走茶凉 提交于 2019-12-11 06:05:35
问题 I am using an external .Net Web App and would like to know how to upload a large file to the document library using Microsoft Graph. I am able to upload up to 4mb but anything above it is throwing an error. I know there is a createUploadSession however not sure how to implement it. Any help would greatly appreciate. This is what I am doing to upload up to 4mb successfully: string requestUrl = "https://graph.microsoft.com/v1.0/drives/{mydriveid}/items/root:/" + fileName + ":/content";