onedrive

Indy 10 Multipart upload to OneDrive Error

泄露秘密 提交于 2020-01-06 18:10:24
问题 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;

How to get user information when authenticating with OneDrive SDK

社会主义新天地 提交于 2020-01-06 05:08:40
问题 I am building an Azure App Service that has both Windows Desktop (not UWP) and iOS clients. I want to use Microsoft Account Authentication to authenticate users. As a result of a previous question here I can now authenticate users using the OneDrive SDK but have fallen at the next hurdle. The One Drive SDK does not appear to provide access to user details such as their given name and email address. Please can someone point me in the direction of an example or instructions for authenticating a

How to get user information when authenticating with OneDrive SDK

本秂侑毒 提交于 2020-01-06 05:08:29
问题 I am building an Azure App Service that has both Windows Desktop (not UWP) and iOS clients. I want to use Microsoft Account Authentication to authenticate users. As a result of a previous question here I can now authenticate users using the OneDrive SDK but have fallen at the next hurdle. The One Drive SDK does not appear to provide access to user details such as their given name and email address. Please can someone point me in the direction of an example or instructions for authenticating a

CMIS support for Sharepoint and OneDrive

走远了吗. 提交于 2020-01-06 04:33:36
问题 I would like to have a quick info whether Microsoft Sharepoint and OneDrive has CMIS support ? If not which will be the best library to integrate Sharepoint and OneDrive using Java ?! Please help 回答1: Microsoft SharePoint on premise (2010 & 2013) supports CMIS for searching documents though limited to library level. But I have doubts regarding OneDrive files. Though OneDrive is hosted as SharePoint MySite, these documents are not accessed through SharePoint library. Follow this link to know

download file from OneDrive using Microsoft.SharePoint.Client

无人久伴 提交于 2020-01-06 04:14:06
问题 I have a winforms application and I need to download files from a Sharepoint OneDrive directory. Currently, given my code below, I am able to read the file Title, but I can't find anything to help me with downloading the code using Microsoft.SharePoint.Client . string username = "appuser@abcuseraccount.com"; String pwd = "x!@ex"; ClientContext context = new ClientContext("https://abcuser.sharepoint.com/Main/financial/"); SecureString password = new SecureString(); foreach (char c in pwd

How can I use the OneDrive Web picker when my redirect URLs include unique user ids?

六眼飞鱼酱① 提交于 2020-01-05 10:14:04
问题 I am trying to add the OneDrive Web picker SDK (Javascript) to my website. There is a "redirect URL" that must be added for each page on which the picker is located. The problem I'm having is that my URL is, e.g., www.mysite.com/user/382982389745 . Now, I can't reasonably be expected to add a redirect URL for each user in my database. So, how can I handle this issue since the redirect URL must match exactly to the page that has the file picker? 回答1: Hi am facing the same Problem, After

Cannot share an autoopen-tagged document in read-only mode

人盡茶涼 提交于 2020-01-04 05:15:18
问题 I have an Excel file in my OneDrive, I want to create a URL link such that: 1) when my colleagues open the URL in a browser, it could open the file in Excel Online in the read-only mode , 2) and the task-pane of Script Lab is auto-opened. I have followed this to tag my document, then uploaded it to OneDrive. Then, I used Share to share this document in OneDrive as follows. Note that I well set "Anyone with the link can view" Here is the link: https://1drv.ms/x/s!AmAcI5jpNEmng2vYPFkfDRVMDFCP?e

Cannot share an autoopen-tagged document in read-only mode

自古美人都是妖i 提交于 2020-01-04 05:15:06
问题 I have an Excel file in my OneDrive, I want to create a URL link such that: 1) when my colleagues open the URL in a browser, it could open the file in Excel Online in the read-only mode , 2) and the task-pane of Script Lab is auto-opened. I have followed this to tag my document, then uploaded it to OneDrive. Then, I used Share to share this document in OneDrive as follows. Note that I well set "Anyone with the link can view" Here is the link: https://1drv.ms/x/s!AmAcI5jpNEmng2vYPFkfDRVMDFCP?e

OneDrive for Business REST API - PUT,POST - 401 Unauthorized

瘦欲@ 提交于 2020-01-03 06:46:05
问题 We've a trial version of Microsoft azure and are playing with the One drive for Business CRUD operations via the REST API from java client as per the link. After getting the token, I'm able to list any folder, download file and get attributes of a file using GET successfully. But, the operations such as PUT , POST which are required for create folder, upload file, rename file/folder, etc are not working. I get back "401 UnAuthorized" error. Error Response json : {"error":{"code":"-2147024891,

Office 365 unified API (preview) requests 401 error

江枫思渺然 提交于 2020-01-03 06:01:08
问题 I'm trying to make some intersting things with Office 365 unified API (preview) and stuck on the moment with authorization. I made app with all permissions that I need I'm trying to log in users with URL "https://login.windows.net/common/oauth2/authorize?response_type=code&client_id={CLIENT_ID}&resource=https://graph.microsoft.com/" Evething works well. I even can get access_token with all scopes by request to https://login.windows.net/common/oauth2/token. BUT! I have problem, I cant get any