onedrive

Access SkyDrive using PHP and OAuth

好久不见. 提交于 2019-12-20 10:47:05
问题 I would like to access skyDrive using PHP. I want to retreive list of files and folders, download, upload and delete files. I've got a microsoft dev clientID and clientSecret. Can anybody get me started with connecting to skyDrive with OAuth and making use of the API? Thanks a lot! 回答1: This is actually quite a broad question. Here's hopefully something that will get you started. Have a look at SkyDrives REST API. You could use PHP cURL to perform the GET's and POST's. Use json_decode() to

OneDrive Python SDK - create_link for fetching embedded URL

风流意气都作罢 提交于 2019-12-20 05:25:13
问题 OneDrive cloud provides a functionality to get embedded iFrame tags with a publicly accessible URL inside. I'm trying to achieve the same thing using Python OneDrive SDK There are various features as shown on the documentation page like, uploading, downloading, renaming a file, etc. What I'm trying to achieve here is create an embedded iFrame and get it in response. Something like this. There is a function inside one of the classes of the SDK called create_link. This function is located

How to get all the items contained inside a office365 onedrive

大憨熊 提交于 2019-12-20 04:37:03
问题 I want to get all the files and folders contained inside a office365 onedrive folder in one rest API call, is there any option to do it? 回答1: There isn't a specific API call to retrieve a flat representation of a Drive. You can achieve a similar effect however using the drive's search method. Simply pass an empty query string and it will return metadata for each file (regardless of it's directory): https://graph.microsoft.com/v1.0/me/drive/root/search(q='') 来源: https://stackoverflow.com

how to handle multiple tenants with onedrive picker

倾然丶 夕夏残阳落幕 提交于 2019-12-19 11:06:10
问题 I am facing a problem with onedrive picker with https://js.live.net/v5.0/OneDrive.js I have different redirect url's like http://dev.example.com http://dev1.example.com by giving these two urls i am facing problem like this when i give redirect url it is not working. and i tried using https://js.live.net/v7.0/OneDrive.js while i am using this one in pop only the redirect url is loading and redirecting and closing the pop up i am not getting the call back success <script type="text/javascript"

Graph Excel REST API - Azure AD 2.0 Endpoint - Is OneDrive Personal Supported?

天涯浪子 提交于 2019-12-19 10:26:47
问题 I would like to access/manipulate Excel workbooks stored in OneDrive Personal using the Microsoft Graph REST API. I am able to access/manipulate Excel workbooks stored in OneDrive for Business. I am able to authenticate my OneDrive Personal account (get access tokens, permission scopes, etc.) and I am able to do other (non-Excel-related) Graph REST operations, such as view file properties. The Microsoft Graph Explorer https://graph.microsoft.io/en-us/graph-explorer# only supports OneDrive for

MS Graph API: OneDrive resource not found

删除回忆录丶 提交于 2019-12-19 10:17:03
问题 I'm building a Windows service that connects to OneDrive for Business via the Graph API using this method: https://graph.microsoft.io/en-us/docs/authorization/app_only I've successfully authenticated my application and have a token for making calls to Graph API. I have given my Azure AD application permissions to both Windows Azure Active Directory and Microsoft Graph (all application and delegated permissions have been selected for both). My goal is to get the contents of a folder that

Microsoft Graph: Uploading files to shared library instead of user's library?

[亡魂溺海] 提交于 2019-12-19 04:59:16
问题 In the documentation about Upload, these request options are listed: PUT /me/drive/items/{parent-id}:/{filename}:/content PUT /me/drive/root:/{parent-path}/{filename}:/content PUT /me/drive/items/{parent-id}/children/{filename}/content PUT /groups/<id>/drive/items/<parent-id>/children/<filename>/content In the documentation about Resumable Uploads, Create an upload session show these options: POST /me/drive/root:/{path-to-item}:/createUploadSession POST /me/drive/items/{parent-item-id}:/

Tenant does not have a SPO license

三世轮回 提交于 2019-12-19 03:56:16
问题 I have an error while trying to use Microsoft Graph to write a script to upload an Excel file to OneDrive then read the Excel file. I followed Microsoft documentation to obtain the access token without user. I successfully got an access token but I got an error while using the access token to call the OneDrive API. Here is the response: { "error": { "code": "BadRequest", "message": "Tenant does not have a SPO license.", "innerError": { "request-id": "5ec31d17-3aea-469f-9078-de3608f11d0d",

Microsoft office 365 Groups: Guest user are unable to do drive call using graph endpoint [closed]

戏子无情 提交于 2019-12-19 03:22:56
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed last year . Our application reads group drive content by doing Get call on the drive item. This used to work fine for both internal members and guest users. Its working now for internal members but not working anymore for guest users. Following is the sample call. https://graph.microsoft.com/v1.0/drives/b!uey_5Lpf8Eu0

Resumable upload returns Unauthorized when uploading chunk

旧巷老猫 提交于 2019-12-18 09:26:34
问题 Today I have a problem with the resumable upload feature of OneDrive via the Microsoft Graph API, as described here. I have integration tests which previously worked, which now fail. I successfully call createUploadSession and get an uploadUrl to use. I've replaced actual tokens with "XXX" here. POST https://graph.microsoft.com/V1.0/groups/273c2c33-8533-445d-ae65-4b63be296995/drive/root:/c2fa1a83-74f3-444b-9263-c9539ee3eae2.txt:/createUploadSession HTTP/1.1 Authorization: Bearer XXX { "item":