onedrive

OneDrive for Business API - Daemon Tenant with App Only Token

倖福魔咒の 提交于 2019-11-29 12:54:45
Is it possible to use OneDrive Business API with App Only Token for Daemon Apps? I have tried technique purposed in this post , but i couldnt access API. In fact there is nothing in OneDrive Business API documentation which indicates how to impersonate tenant users, for example /drives/{upn}/root or something. Best, It does work with app only tokens for daemon apps. You can use the user's UPN as the drive-id, as you mentioned in your question. We're getting the documentation updated to include that this works. 来源: https://stackoverflow.com/questions/33755470/onedrive-for-business-api-daemon

Correct way to use OneDrive API to sync files

落爺英雄遲暮 提交于 2019-11-29 12:53:45
I can't find any documentation that outlines the correct way to use OneDrive to store and keep app files syncrhonised across devices in C# I have read the documentation at OneDrive Dev Center but I don't understand the http code. (self taught C# only). I kind of understand that I use the delta method to get changed files from OneDrive, to then save locally, but I can't figure out exactly how, so have gotten around it by checking local vs OneDrive manually using the GetAsync<> methods. My current implementation (below for reference) seems to me to be rather clunky compared to what is probably

How can I check local OneDrive folder is in sync?

偶尔善良 提交于 2019-11-29 10:33:37
I need to be able to check if the local OneDrive folder is in sync/up to date. Can I check this by looking at any of the file/folder properties(in C# code) Without using any of One Drive APIs? I was stuck with that and tought to check the main folder Icon. EDITED The point is to extract the synced folder icon and get the overlay CLSID. You first need a class to extract the info you need : using System; using System.Collections.Generic; using System.Drawing; using System.IO; using System.Runtime.InteropServices; using Microsoft.Win32; namespace MyApp.Classes { public class ExtractIconInfo {

Excel's fullname property with OneDrive

浪子不回头ぞ 提交于 2019-11-28 23:26:55
问题 If I want to use the open Workbook object to get the fullname of an Excel file after saving it, but that file has been synchronized to OneDrive, I get a "https" address instead of a local one, which other programs cannot interpret. How do I get the local filename of a file like this? Example: Save a file to "C:\Users\user\OneDrive - Company\Documents". OneDrive does its synchronization. Querying Workbook.FullName now shows as "https://..." 回答1: It's possible to improve on Virtuoso's answer to

OneDrive - Wrong size for PNG files

為{幸葍}努か 提交于 2019-11-28 12:47:51
问题 When uploading certain PNG files the size is incorrectly reported on the OneDrive website and in the Photo object returned by the REST API. This can be reproduced using the following PNG file: http://www2.zippyshare.com/v/11270772/file.html The file size is 20.3 KB , OneDrive displays it as 38.4 KB It seems this only happens with PNG files that would be downsized/converted when the downsize_photo_uploads query param is absent or set to true. But the problem is not just limited to uploads

OneDrive for Business API item/file download content 401

左心房为你撑大大i 提交于 2019-11-28 12:02:50
问题 My question seems similar to OneDrive for Business REST API - PUT,POST - 401 Unauthorized However, instead of uploading, I am trying to download a file. What's strange is that I do get the file contents and data, but the response code is a 401. Any idea why? Of course, I would like to be receiving a 200 and not have to ignore the response code. As far as my Azure AD app permissions go, I am allowing pretty much all read permissions under delegated permissions for Office 365. I have listed all

Trigger java code to download file from onedrive when file is uploaded to onedrive

主宰稳场 提交于 2019-11-28 11:50:49
问题 I want to trigger a java code residing as an image in Azure container registry or docker hub. This code is to download/read file from onedrive when file is been uploaded to onedrive. I tried azure services like Azure logic apps but there is no action to trigger java code. I tried using restapi but couldnt identify the URL to use for GET request. I read about microsoft graph api but I dont have to use it as I have to make it generic in case in future file path changes from onedrive to any

OneDrive for Business API - Daemon Tenant with App Only Token

偶尔善良 提交于 2019-11-28 06:52:51
问题 Is it possible to use OneDrive Business API with App Only Token for Daemon Apps? I have tried technique purposed in this post, but i couldnt access API. In fact there is nothing in OneDrive Business API documentation which indicates how to impersonate tenant users, for example /drives/{upn}/root or something. Best, 回答1: It does work with app only tokens for daemon apps. You can use the user's UPN as the drive-id, as you mentioned in your question. We're getting the documentation updated to

Correct way to use OneDrive API to sync files

萝らか妹 提交于 2019-11-28 06:36:49
问题 I can't find any documentation that outlines the correct way to use OneDrive to store and keep app files syncrhonised across devices in C# I have read the documentation at OneDrive Dev Center but I don't understand the http code. (self taught C# only). I kind of understand that I use the delta method to get changed files from OneDrive, to then save locally, but I can't figure out exactly how, so have gotten around it by checking local vs OneDrive manually using the GetAsync<> methods. My

Upload file to MS SharePoint using Python OneDrive SDK

允我心安 提交于 2019-11-27 23:14:07
Is it possible to upload a file to the Shared Documents library of a Microsoft SharePoint site with the Python OneDrive SDK ? This documentation says it should be (in the first sentence), but I can't make it work. I'm able to authenticate (with Azure AD) and upload to a OneDrive folder, but when trying to upload to a SharePoint folder, I keep getting this error: "Exception of type 'Microsoft.IdentityModel.Tokens. AudienceUriValidationFailedException ' was thrown." The code I'm using that returns an object with the error: (...authentication...) client = onedrivesdk.OneDriveClient('https://