onedrive

OneDrive OAuth 2.0 and Postman Sanity Check

牧云@^-^@ 提交于 2021-01-28 23:32:52
问题 I am trying to generate a OAuth Token for OneDrive by using Postman. I just wanted to ask for clarification as to what the Auth URL, Access Token URL and scope would be? I have tried it with: Auth URL: https://login.microsoftonline.com/common/oauth2/v2.0/authorize Access Token URL: https://login.microsoftonline.com/common/oauth2/v2.0/token Scopes: wl.signin However, I keep getting an error around the scope is not correct. Just for sanity check are these the correct settings? 回答1: Please refer

OneDrive OAuth 2.0 and Postman Sanity Check

二次信任 提交于 2021-01-28 21:41:19
问题 I am trying to generate a OAuth Token for OneDrive by using Postman. I just wanted to ask for clarification as to what the Auth URL, Access Token URL and scope would be? I have tried it with: Auth URL: https://login.microsoftonline.com/common/oauth2/v2.0/authorize Access Token URL: https://login.microsoftonline.com/common/oauth2/v2.0/token Scopes: wl.signin However, I keep getting an error around the scope is not correct. Just for sanity check are these the correct settings? 回答1: Please refer

cURL POST file to OneDrive

[亡魂溺海] 提交于 2021-01-28 01:54:57
问题 I'm trying to upload a file to a users folder on OneDrive using their API. $cfile = curl_file_create(realpath($_POST['ppt-file'])); //place file in folder $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "https://apis.live.net/v5.0/". $my_folder ."/files?access_token=" . $access_token); curl_setopt($ch, CURLOPT_POST, TRUE); curl_setopt($ch, CURLOPT_POSTFIELDS, $cfile); curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE); $upload_result = trim(curl_exec($ch)); curl_close($ch); I get a response from

Determine OneDrive Sync Status From Batch File

旧时模样 提交于 2021-01-28 00:35:38
问题 I have a OneDrive account and a Dropbox account. I use a batch file to copy my folders & files to the appropriate places. At the beginning of the batch file I use SYSINTERNALS PSSUSPEND command to suspend Dropbox. Then when OneDrive is fully synced, I can resume Dropbox using SYSINTERNALS. I currently use a delay tactic before resuming, but it would be better if I knew exactly when OneDrive was finished. I could reverse the syncs, but I don't know how to determine the sync status for Dropbox

List Microsoft Sharepoint Sites with Microsoft Graph

我怕爱的太早我们不能终老 提交于 2021-01-27 12:23:35
问题 I'm working with Microsoft OneDrive and Microsoft Sharepoint using Microsoft Graph, and as I understood: Url to get file list from logged in user OneDrive is: /v1.0/me/drive/root/children Url to get file list from company Sharepoint Documents is: /v1.0/drive/root/children So my questing is: How to list Sharepoint Sites that user is following and upload files to this Sites 回答1: This isn't possible yet. You need to use the direct SharePoint API end point to access content from SharePoint Sites.

Git repository in OneDrive synced folder

我怕爱的太早我们不能终老 提交于 2021-01-20 18:58:01
问题 I am trying to create a git repository located within a OneDrive synced folder, but I am running into an issue. I use OneDrive to sync folders between my multiple devices via "the cloud". On my development machine (Win 7 64) the OneDrive folder is located under C:\Users\myusername\OneDrive. I created a \git subfolder in that directory and created a git repository for my code (foo.git) within that folder. On the same machine, I can clone that repository to another folder, that is not synced

Git repository in OneDrive synced folder

巧了我就是萌 提交于 2021-01-20 18:56:53
问题 I am trying to create a git repository located within a OneDrive synced folder, but I am running into an issue. I use OneDrive to sync folders between my multiple devices via "the cloud". On my development machine (Win 7 64) the OneDrive folder is located under C:\Users\myusername\OneDrive. I created a \git subfolder in that directory and created a git repository for my code (foo.git) within that folder. On the same machine, I can clone that repository to another folder, that is not synced

Git repository in OneDrive synced folder

亡梦爱人 提交于 2021-01-20 18:56:17
问题 I am trying to create a git repository located within a OneDrive synced folder, but I am running into an issue. I use OneDrive to sync folders between my multiple devices via "the cloud". On my development machine (Win 7 64) the OneDrive folder is located under C:\Users\myusername\OneDrive. I created a \git subfolder in that directory and created a git repository for my code (foo.git) within that folder. On the same machine, I can clone that repository to another folder, that is not synced

Error: Public clients can't send a client secret while try to get access token in Onedrive

穿精又带淫゛_ 提交于 2020-12-08 08:18:51
问题 I am trying to get OneDrive access token by following URL https://login.live.com/oauth20_token.srf?client_id=YOUR_CLIENT_ID&client_secret=YOUR_CLIENT_SECRET&redirect_uri=https://login.live.com/oauth20_desktop.srf&code=AUTHORIZATION_CODE&grant_type=authorization_code but the response is as following {"error":"invalid_request","error_description":"Public clients can't send a client secret."} Can anyone explain this? 回答1: A "public client" is a mobile or desktop application (web services are