onedrive

Graph API to access oneDrive for business items/ffiles

陌路散爱 提交于 2019-12-10 11:58:52
问题 I am working on a document management application, which users should be able to access folders in oneDrive, sometime work on the same document/file, edit, copy document in application and upload document from application to the oneDrive. And it means that folder should be available to all users who has right. I could make all works when I am using my own personal account, for example I am using this url for getting list of files from a folderX:"https://graph.microsoft.com/v1.0/me/drive/root:

Saving a Shared Docx from Onedrive To Original Onedrive Location in MS Word

守給你的承諾、 提交于 2019-12-10 11:26:57
问题 I was wondering if someone could help me with a problem I'm having integrating Onedrive with MS Word. I’m working on a C# MVC web application that uploads a document from our system to onedrive using the Live SDK, then uses the MS Word URI scheme to open the document in word for mac or pc. E.g. ms- word:ofe|u|https://d.docs.live.net/a2127392r369g83a/FOLDER_NAME/FILE_NAME (MS Word URI schema: https://msdn.microsoft.com/en-us/library/office/dn906146.aspx) Under normal conditions this works fine

iOS OneDrive (skydrive) app displays permissions dialog every time it runs

筅森魡賤 提交于 2019-12-10 10:37:34
问题 I'm developing an iOS app that gives users access to their OneDrive/SkyDrive and I've run into a very annoying issue: The very first time a user links the app to their OneDrive, everything goes as expected: They have to enter a user id and password Then they have to agree to let the app access their info Then they get to browse their OneDrive That's all good. But, if the app closes, and you try to access the OneDrive again, rather than skipping straight to #3, and being able to access the

Exceptions in calls to OneDrive graph API

余生长醉 提交于 2019-12-10 10:04:49
问题 Today we started to get exceptions in a previously normally working solution like the below from the Graph API calls to v1 endpoints of group's "OneDrive" (GET /v1.0/groups/xxxxx/drive/root:/.) " Microsoft.Graph.ServiceException: Code: unauthenticated. Message: Role Claim does not exist for Service Asserted App V1. Inner error at Microsoft.Graph.HttpProvider." Any clues where to look at for troubleshooting? 来源: https://stackoverflow.com/questions/51059669/exceptions-in-calls-to-onedrive-graph

OneDrive for Business :“invalid_request”,“error_description”:"AADSTS90014: The request body must contain the following parameter: 'grant_type

谁说我不能喝 提交于 2019-12-10 03:02:30
问题 I m trying to integrate the OneDrive for Busines to a Web Form App. For this i am using the documentation given at this url https://dev.onedrive.com/auth/aad_oauth.htm In web Form App I have two Page First one is Login page which have a button for login In button login click i am making a GET Request to OneDrive for Business API using the following code HttpClient client = new HttpClient(); Redirecturi = Uri.EscapeDataString(Redirecturi); string url = string.Format("https://login.windows.net

How to upload file to OneDrive through console app?

隐身守侯 提交于 2019-12-09 20:56:07
问题 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. 回答1: 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

OneDrive upload via php [closed]

拟墨画扇 提交于 2019-12-09 18:58:30
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 7 months ago . I'm looking for a code example for uploading a file to Microsoft OneDrive via php. I have created a microsoft account and created an app. Thanks allot Avi 回答1: Try use https://github.com/lovattj/php-skydrive Upload example: <?php require_once 'functions.inc.php'; $token =

Access publicly shared OneDrive folder via API

谁说胖子不能爱 提交于 2019-12-09 03:23:09
问题 I have a publicly shared OneDrive folder with some various sub-folders and files. I.e. I have shared it via a link, so anyone with this link can access them. Is there a way I can access these files from either client-side JavaScript or some server-side code via a REST API of some sort? Without having to use any sort of user-specific credentials? What I've been trying I've been looking at the Accessing Shared Content page, and it looks like what I want, but can't figure out how to use it. I've

Upload to Onedrive with C# using Graph API

依然范特西╮ 提交于 2019-12-08 21:58:24
I am trying to upload a file to Onedrive using RestSharp and Graph API. Basically I want to upload an Excel file. However, even the file saves, there is problem with the content. I am using: https://graph.microsoft.io/en-us/docs/api-reference/v1.0/api/item_uploadcontent using the code: string newToken = "bearer ourtoken"; var client = new RestClient("https://xxx-my.sharepoint.com/_api/v2.0/"+ oneDrivePath + Path.GetFileName(filePathWithName) + ":/content"); var request = new RestRequest(Method.PUT); request.RequestFormat = DataFormat.Json; request.AddHeader("Authorization", newToken); request

Upload to Onedrive with C# using Graph API

蓝咒 提交于 2019-12-08 21:58:22
I am trying to upload a file to Onedrive using RestSharp and Graph API. Basically I want to upload an Excel file. However, even the file saves, there is problem with the content. I am using: https://graph.microsoft.io/en-us/docs/api-reference/v1.0/api/item_uploadcontent using the code: string newToken = "bearer ourtoken"; var client = new RestClient("https://xxx-my.sharepoint.com/_api/v2.0/"+ oneDrivePath + Path.GetFileName(filePathWithName) + ":/content"); var request = new RestRequest(Method.PUT); request.RequestFormat = DataFormat.Json; request.AddHeader("Authorization", newToken); request