onedrive

invalid_client error with Python OneDrive SDK

与世无争的帅哥 提交于 2020-01-16 04:40:07
问题 I am using the OneDrive Python SDK to interact with OneDrive, however the authentification doesn`t work. When running the template code give on the github page with my app credentials, i can authentificate the app in the browser and the answer-code gets passed back to my python programm. Then i get an error, saying invalid client. 127.0.0.1 - - [28/Jun/2016 15:34:42] "GET /?code=Mca303484-04b1-e70c-cfb4-7e902c7a4c9b HTTP/1.1" 200 - Traceback (most recent call last): File "C:/Users/Tim

Not able to download a file from OneDrive

百般思念 提交于 2020-01-15 09:41:09
问题 According to Microsoft Graph's documentation, the API to download file contents of a file in my OneDrive is: /beta/me/drive/items/01UG2T5D6KU5GACQUPCFE3AMTN47BTTSA6/content however it is returning Failure - Status Code 0, { "isTrusted": true } If I just do /beta/me/drive/items/01UG2T5D6KU5GACQUPCFE3AMTN47BTTSA6 it returns the correct file metadata - so this means the file exists so any clues why Graph cannot fetch the content 回答1: You could use GET /drives/{drive-id}/items/{item-id}/content

How to upload files to one drive using ssis?

别说谁变了你拦得住时间么 提交于 2020-01-15 06:52:46
问题 I am looking for a way to upload files to One Drive using SSIS. I've researched and there are some third party tools like CozyRoc, KingswaySoft which provide one drive connection manager. Anyone out there who already have experience doing this? If so please share! 回答1: I found a much easier way to do this without the need of any third party software. Download one drive to your local machine and then login. You can upload, download, delete files.To map the One Drive for Business cloud drive on

OneDrive API Python SDK - points to login.live.com not mydomain.sharepoint.com

坚强是说给别人听的谎言 提交于 2020-01-13 19:49:29
问题 I am trying to use the OneDrive API Python SDK to upload files to an Office 365 E3 account SharePoint folder. As described for OneDrive for business / SharePoint files I am using Azure AD that is included in my Office 365 E3 account for auth and have created a native client application app in Azure AD management. I would expect that I need to point auth to Office 365: mydomain.sharepoint.com However, it appears the OneDrive API Python SDK (auth_provider.py) points auth to: AUTH_SERVER_URL =

OneDrive API Python SDK - points to login.live.com not mydomain.sharepoint.com

谁都会走 提交于 2020-01-13 19:49:28
问题 I am trying to use the OneDrive API Python SDK to upload files to an Office 365 E3 account SharePoint folder. As described for OneDrive for business / SharePoint files I am using Azure AD that is included in my Office 365 E3 account for auth and have created a native client application app in Azure AD management. I would expect that I need to point auth to Office 365: mydomain.sharepoint.com However, it appears the OneDrive API Python SDK (auth_provider.py) points auth to: AUTH_SERVER_URL =

OneDrive Code Flow Public clients can't send a client secret - Node.js

余生颓废 提交于 2020-01-07 05:12:04
问题 hey guys I want to create access to my onedrive account to upload file via node.js from my home pc windows. I created a app at https://apps.dev.microsoft.com Also I created a client secret there and added a web platform and changed the redirect url from localhost to https://login.live.com/oauth20_desktop.srf Then I used this link in my browser https://login.live.com/oauth20_authorize.srf?client_id=ab82982b-4dxxxxxxxxxxxxxxxxx&scope=files.readwrite.all&response_type=code The Url from my

Getting error with a HTTP Post request?

两盒软妹~` 提交于 2020-01-07 04:22:33
问题 I am trying create a new share link for onedrive file access. This is what I am supposed to do, POST /drive/items/{item-id}/action.createLink Content-Type: application/json { "type": "view" } I have created a post request in ruby as follow, require 'net/http' require 'json' uri = URI.parse("https://api.onedrive.com/v1.0") http = Net::HTTP.new(uri.host, uri.port) http.use_ssl = true req = Net::HTTP::Post.new("https://api.onedrive.com/v1.0/drive/items/file.88e469b2d4c51142.88E469B2D4C51142!113

Get items permissions in OneDrive for Business using microsoft Graph API

冷暖自知 提交于 2020-01-07 01:49:07
问题 Context I'm trying to get the permissions granted on items in personal OneDrive for Business drives using the Graph RESTful API . Querying the OneDrive for Business: GET: graph.microsoft.com/v1.0/drives/<driveID>/items/<itemID>/permissions. and : GET :graph.microsoft.com/v1.0/drives/<driveID>/root/permissions/<itemID> I'm getting the following error : "code": "-2130575138, Microsoft.SharePoint.SPException", "message": "MountPoint security error: host web isn't a personal site" However, if I

Upload to my_documents or my_photos folder OneDrive

回眸只為那壹抹淺笑 提交于 2020-01-06 19:51:58
问题 I can upload to the top level directory in OneDrive with a PUT request at the URI: I can upload a specific folder if I know it's specific ID: "https://apis.live.net/v5.0/folder.5f5fb682f4910ce0.5F5FB682F4910CE0!189/files/someFile.txt?access_token=xyz123" But how do I upload to a folder using it's friendly name, e.g. my_photos. The OneDrive documentation isn't helpful - it seems to gloss over this. It mentions friendly names, but I don't know how to use them as part of a URI PUT request. edit:

Indy 10 Multipart upload to OneDrive Error

假装没事ソ 提交于 2020-01-06 18:10:32
问题 I am trying to do Multipart upload to OneDrive using POST and get 'HTTP/1.1 400 Bad Request'. IdLogFile: Stat Connected. Sent 10.02.2017 12:50:08: POST /v1.0/drive/root::/children HTTP/1.0`<EOL>`Content-Type: multipart/related; boundary="Boundary"`<EOL>`Content-Length: 254`<EOL>`Authorization: Bearer EwA...%3d`<EOL>`Host: api.onedrive.com`<EOL>`Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8`<EOL>`Accept-Encoding: identity`<EOL>`User-Agent: Mozilla/3.0 (compatible;