onedrive

Client side paging using Microsoft OneDrive API/SDK

女生的网名这么多〃 提交于 2019-12-08 20:30:04
问题 I am trying to implement client side paging using Microsoft OneDrive API/SDK. For that I need the total count of items as response from the API, and based on the skip and maximum limit value passed to the API, the response should be fetched. In the List Items link, it is mentioned that we can achieve this using the query strings provided here. Based on this assumption, I am building the URL for API call as below: string.Format("https://graph.microsoft.com/v1.0/me/drive/root/children?$skip={0}

How to utilize code flow for OneDrive API?

ε祈祈猫儿з 提交于 2019-12-08 19:44:27
How to allow my C# apps (non- forms , non- web based ) application authenticate & interact with OneDrive? (That is to say, completely programmatically.) So far: -Application registered, have client id & secret. -Enabled both web & phone. -Personal, not Business. -Client token flow appears to be for interactive, so using code . -Tried the OneDrive SDK, but it just kept saying it couldn't authenticate (not why). -Now hand-rolling requests. As web client code: async Task<string> GetStringFromURLAsync(string theURL) { string urlContents = ""; System.Net.Http.HttpClient c = null; try { c = new

How To Retrieve Custom Columns For DriveItems in MS Graph

ぃ、小莉子 提交于 2019-12-08 17:25:44
I'm trying to use the Graph API to retrieve a hierarchy of files in a Sharepoint document library. Since document libraries are stored in "drives" (is it technically correct to call it OneDrive?), I'm using the /drives endpoint to fetch a list of files, like this: https://graph.microsoft.com/beta/drives/{driveid}/root/children I would like to get information from some of the custom columns that exist when viewing these items through Sharepoint. Using ?expand=fields doesn't work because fields only exists in listItem object of the /sites endpoint, not in the driveItem object of /drives endpoint

Get contact's phone numbers and emails using the Windows Live/OneDrive REST API

随声附和 提交于 2019-12-08 16:14:25
问题 Has anyone successfully used the Live SDK (also called OneDrive SDK) to retrieve the email addresses and/or phone numbers of an user's contacts ? The best I have been able to do is the get profiles for a users contacts but it only includes hashed email addresses and no phone numbers, like this for example : { "id": "contact.1e680c06000000000000000000000006", "first_name": "James", "last_name": "Cameron", "name": "James Cameron", "gender": null, "is_friend": false, "is_favorite": false, "user

Multi-Tenant app - OneDrive Business API

三世轮回 提交于 2019-12-08 12:39:09
问题 I need to create an universal app windows 10 that allow users save his files in his own OneDrive Business account. I read that I need to register the app with Azure Active Directory (developer account) and then request permissions for OneDrive for Business. But: Question1 : if app is set as "multi-tenant" in Azure AD, every user will store his files in his own business account onedrive? user logged: xxxx@contoso.onmicrosoft.com ---> onedrive business account contoso.onmicrosoft.com user

multiple file download using SkyDrive API

*爱你&永不变心* 提交于 2019-12-08 11:24:31
问题 I have the following code where I'm trying to download 3 different files from the users SkyDrive Account. I'm using the SkyDrive API for Windows Phone development. client.DownloadCompleted += new EventHandler<LiveDownloadCompletedEventArgs>(OnDownloadCompletedVI); client.DownloadAsync(fileIdVehicleItems); client.DownloadCompleted += new EventHandler<LiveDownloadCompletedEventArgs>(OnDownloadCompletedHI); client.DownloadAsync(fileIdHistoryItems); client.DownloadCompleted += new EventHandler

Connecting Onedrive to webpage

心已入冬 提交于 2019-12-08 10:02:41
问题 I have a MS- Onedrive business account. I need to connect my onedrive to my webpage, to view folders, download files, etc. How can I intergrage Onedrive with my webpage using PHP? Can anyone help me? 回答1: The OneDrive File picker might be your best bet if you simply want to get list of files, folder location, and downloand/update files from OneDrive. This uses the JavaScript API so you'll need to incorporate that into your site. Setup is pretty simple. Register your application at https:/

How To Retrieve Custom Columns For DriveItems in MS Graph

风格不统一 提交于 2019-12-08 08:01:58
问题 I'm trying to use the Graph API to retrieve a hierarchy of files in a Sharepoint document library. Since document libraries are stored in "drives" (is it technically correct to call it OneDrive?), I'm using the /drives endpoint to fetch a list of files, like this: https://graph.microsoft.com/beta/drives/{driveid}/root/children I would like to get information from some of the custom columns that exist when viewing these items through Sharepoint. Using ?expand=fields doesn't work because fields

Microsoft Graph: Search for DriveItems on a SharePoint drive returns no results

两盒软妹~` 提交于 2019-12-08 07:56:51
问题 I have files in a SharePoint Drive and want to develop a full-text search. The following call in the Graph Explorer works, finding my files either by filename or content: https://graph.microsoft.com/v1.0/drives/{my drive id}/root/search(q='my search word') The same call from my Azure hosted ASP.NET app using the Microsoft.Graph-NuGet package allways returns an empty list: await _client .Drives[{my drive id}] .Root .Search({my search word}) .Request() .GetAsync() _client is an authenticated

How to get recently accessed OneDrive for Business files?

我是研究僧i 提交于 2019-12-08 07:12:43
问题 I would like to get a list of both opened (without edit) and modified files. I looked at /Recent api from Microsoft Graph and it does not return the recently viewed files for OneDrive Business, but only the modified files. I also looked at: https://graph.microsoft.com/beta/me/insights/used This api on the paper does exactly what I needed, it returns lastAccessedDateTime "lastUsed": { "lastAccessedDateTime": "2018-05-03T15:31:53.913Z", "lastModifiedDateTime": "2018-04-27T14:50:04.066Z" }, BUT.