onedrive

upload to a specific folder skydrive

扶醉桌前 提交于 2019-12-12 06:01:02
问题 i want to upload a list of .txt, and keep them in a custom folder on skydrive like Someone's Account -> Skydrive -> custom folder ('testfile') i have tried LiveOperationResult res = await client.BackgroundUploadAsync("me/skydrive/testfile", new Uri("/shared/transfers/" + t, UriKind.Relative),OverwriteOption.Overwrite); , but it doesn't work at all, it give me an error of: The URL contains the path 'testfile', which isn't supported. if i need to get folder ID to upload the file, how do i get

Resource not found for the segment user - Application Token

故事扮演 提交于 2019-12-12 05:39:56
问题 I am able to authenticate and get an application token to use the Microsoft Graph API. I have set all of the delegated and admin permissions to have access to the users. I have also used the graph explorer to verify what permissions I need: https://developer.microsoft.com/en-us/graph/graph-explorer# I verified my user GUID (my ID) through Azure AD as well as the Graph Explorer using their https://graph.microsoft.com/v1.0/me/ call while signed in. Given I'm using the application token so I

How to detect WHICH folders OneDrive for Business are syncing

こ雲淡風輕ζ 提交于 2019-12-12 04:34:22
问题 I am trying to figure out exactly which folders are being synced when using OneDrive for Business. When trying to solve sync issues I used the below fix and now it seems that the folders I used to sync are no longer synced - is that correct? Before I tried to fix the sync issue I stopped the following services: GROOVE.EXE integratedoffice.exe MSOIDSVC.EXE MSOIDSVCM.EXE MSOSYNC.EXE Then I deleted cachefiles: %userprofile%\AppData\Local\Microsoft\Office\Spw %userprofile%\AppData\Local\Microsoft

OneDrive API - Refer to Sharepoint file to upload or download - invalid audience error

笑着哭i 提交于 2019-12-12 03:48:02
问题 I want to programatically interact with files in Office 365 E3 Sharepoint Site. I am using Azure AD and ADAL Python library to authenticate access to Sharepoint Site file. import adal import urllib import requests import urllib2 ## set variables username = 'curtis@tenant.onmicrosoft.com' password = 'OFoarry8Oe$' authorization_url = 'https://login.windows.net/tenant.onmicrosoft.com' # Authority redirect_uri = 'https://login.microsoftonline.com/login.srf' client_id = 'dcbf844f-d2c3-42d1-8a7d

office 365 onedrive does not support paging

无人久伴 提交于 2019-12-12 03:35:46
问题 I have read the document of office 365 about onedrive. I have send two http requests: 1)https://graph.microsoft.com/v1.0/me/drive/root/children?$orderby=name&$top=5&$skip=0 2)https://graph.microsoft.com/v1.0/me/drive/root/children?$orderby=name&$top=5&$skip=5 but I have received the same result,anyone could tell me whether office 365 onedrive supports paging? 回答1: OneDrive's paging model is a little different to skip+take. Essentially you'll make a query like: GET https://graph.microsoft.com

server_internal_error on MOVE and DELETE?

蹲街弑〆低调 提交于 2019-12-12 03:07:48
问题 We have noticed today that we are getting server_internal_error on MOVE and DELETE. The same code works in the past. Is this a temporary issue on the server side, or is there a recent API change that is causing this? The problem occurs regardless of the client platform. In fact, we are able to reproduce it using the APIExplorer sample code from the Windows version of the SDK. 回答1: There was an issue with the service that has since been resolved. When encountering trouble with the service you

Access shared files in OneDrive for Business with Office 365 client libraries

假如想象 提交于 2019-12-12 02:40:06
问题 Is there a way to access shared files on OneDrive for Business with the Office 365 client libraries? There are many examples on how to access MyFiles, like this great one on github. The Graph API has access through: https://graph.microsoft.com/v1.0/drives/[DRIVEID]/items/[FOLDERID]/children I have not found a way to access the same with the SharePointClient, only: var filesResult = await client.Files.ExecuteAsync(); 回答1: There is a C# SDK for OneDrive for Business that you can use to pull

Uploading files to Onedrive using REST API

孤人 提交于 2019-12-12 02:15:56
问题 I am trying to upload a file into OneDrive using its REST API. This is what I am trying to accomplish based on documentation available at OneDrive Rest API: POST https://apis.live.net/v5.0/me/skydrive/files?access_token=ACCESS_TOKEN Content-Type: multipart/form-data; boundary=A300x --A300x Content-Disposition: form-data; name="file"; filename="HelloWorld.txt" Content-Type: application/octet-stream Hello, World! --A300x-- This is what I have: Uri destination = new Uri(string.Format("https:/

Unable to open OneNote webUrl in iPhone?

拥有回忆 提交于 2019-12-12 01:45:41
问题 I am using OneNote API for creating note in OneNote from my ios application. After creating note api returns two url clientUrl and webUrl. clientUrl => Link open page in the installed client webUrl => Link to open page in OneNote Online Now the problem is webUrl is successfully opening in iPad but not in iPhone. In iPhone i am getting safari can not open the page . This is the code i did for opening webUrl. NSURL *url = [NSURL URLWithString:webUrl]; UIApplication *application = [UIApplication

Chunk download with OneDrive Rest API

偶尔善良 提交于 2019-12-12 01:14:45
问题 this is the first time I write on StackOverflow. My question is the following. I am trying to write a OneDrive C++ API based on the cpprest sdk CasaBlanca project: https://casablanca.codeplex.com/ In particular, I am currently implementing read operations on OneDrive files. Actually, I have been able to download a whole file with the following code: http_client api(U("https://apis.live.net/v5.0/"), m_http_config); api.request(methods::GET, file_id +L"/content" ).then([=](http_response