onedrive

Create multiple OneDrive drives

会有一股神秘感。 提交于 2019-12-06 07:55:53
The new(ish) OneDrive API docs talk about multiple drives: /drives List Drives available to the authenticated user. However I only have a single (default) drive for my account. I can't find any info about how to create additional drives, or whether this is even possible at the moment. Maybe you get the option somewhere if you buy extra storage or use OneDrive for Business? Having said that this says: The /drives/{drive-id} syntax is not supported for OneDrive for Business. You should always use the default drive syntax: /drive/. Is it possible to create additional drives (manually or via the

Is it possible to sign into a Microsoft Account with the Windows 8 Phone emulator?

寵の児 提交于 2019-12-06 06:59:38
问题 I recently tried to sign into my Microsoft Account to test out some features which require it(Skydrive, Store, lots of other things). However, when I try to sign in and such I get this error: "We've run into a problem signing in.... 0x8000FFFF" Is it just unsupported? How do you test things such as the Skydrive API without having a physical Windows 8 phone? 回答1: It's sadly not possible on the public released SDK. It was previous possible in the pre-released versions of the SDK, and during the

Saving a Shared Docx from Onedrive To Original Onedrive Location in MS Word

拥有回忆 提交于 2019-12-06 06:42:00
I was wondering if someone could help me with a problem I'm having integrating Onedrive with MS Word. I’m working on a C# MVC web application that uploads a document from our system to onedrive using the Live SDK, then uses the MS Word URI scheme to open the document in word for mac or pc. E.g. ms- word:ofe|u| https://d.docs.live.net/a2127392r369g83a/FOLDER_NAME/FILE_NAME (MS Word URI schema: https://msdn.microsoft.com/en-us/library/office/dn906146.aspx ) Under normal conditions this works fine, and allows the document to be opened in word. The user can edit the doc, click save, and it will be

Create file to Onedrive programmatically from C#?

核能气质少年 提交于 2019-12-06 01:39:56
问题 I want to create a doc, docx, pptx or excel file from C# direct to my Onedrive account. I have try this but it's not working for me. Anybody have any idea what I did wrong ? Thanks public async Task<ActionResult> CreateWordFile() { LiveLoginResult loginStatus = await authClient.InitializeWebSessionAsync(HttpContext); if (loginStatus.Status == LiveConnectSessionStatus.Connected) { var fileData = new Dictionary<string, object>(); fileData.Add("name", "Document.docx"); fileData.Add("Content-Type

Exceptions in calls to OneDrive graph API

ⅰ亾dé卋堺 提交于 2019-12-05 18:30:43
Today we started to get exceptions in a previously normally working solution like the below from the Graph API calls to v1 endpoints of group's "OneDrive" (GET /v1.0/groups/xxxxx/drive/root:/.) " Microsoft.Graph.ServiceException: Code: unauthenticated. Message: Role Claim does not exist for Service Asserted App V1. Inner error at Microsoft.Graph.HttpProvider." Any clues where to look at for troubleshooting? 来源: https://stackoverflow.com/questions/51059669/exceptions-in-calls-to-onedrive-graph-api

Direct download link to OneDrive file?

流过昼夜 提交于 2019-12-05 16:56:31
A OneDrive sharable link looks like this: https://1drv.ms/w/s!AqmFiI7maXrRgT7PGcK_7JyZlBco . How do I get the direct download link version of this? I know with a onedrive.live/redir?<...> link I can just replace the 'redir' with 'download', but how do I do that for a link that looks like the one above? Thanks. If you follow the instruction here you can generate a URL that will act on the shared item, including being able to get its content. In your case the URL would look like https://api.onedrive.com/v1.0/shares/u!aHR0cHM6Ly8xZHJ2Lm1zL3cvcyFBcW1GaUk3bWFYclJnVDdQR2NLXzdKeVpsQmNv/root/content

How to get client secret from azure active directory for native app for using one drive business API?

本小妞迷上赌 提交于 2019-12-05 16:40:42
问题 I am developing an outlook plugin.I want use one drive API's in it.I easily got the client Id and client secret for using API's for one drive personal accounts.But, when I registered my application for one drive business API's in azure active directory, it created only a client Id for me, but didn't create any client secret.I chose native app while registering, as my app is a native app.I can't authenticate the user without the client secret.Please let me know , how to get the client secret

How to authorize service to use Microsoft Graph user account without user interaction?

和自甴很熟 提交于 2019-12-05 15:58:34
I want my server application to interact with it's own Excel files using Microsoft Graph. That is, the files belong to the application, not a particular user of the application. I have registered an application with Azure ID and granted "Have full access to all files user can access" permission for Microsoft Graph. I am trying to use OAuth Resource Owner Password Credentials Grant. I can get an authorization token like this: POST https://login.microsoftonline.com/common/oauth2/token Content-Type: application/x-www-form-urlencoded grant_type=password &resource=https://graph.microsoft.com

OneDrive auto login after initial authorisation

百般思念 提交于 2019-12-05 14:47:14
I want to be able login user automatically in my WPF C# app after he/she accepts it and login manually for the first time. Currently my code to login using prompt window works: try { _msaAuthenticationProvider = new MsaAuthenticationProvider("XXXX", "https://login.live.com/oauth20_desktop.srf", new[] {"onedrive.readonly", "wl.signin", "wl.offline_access" }); await _msaAuthenticationProvider.AuthenticateUserAsync(); _oneDriveClient = new OneDriveClient("https://api.onedrive.com/v1.0", _msaAuthenticationProvider); Item item = await _oneDriveClient .Drive .Root .Request() .GetAsync(); Print(

Upload new file to onedrive using microsoft graph c# asp.net

我的未来我决定 提交于 2019-12-05 14:44:22
Trying to upload a file to onedrive that does not already exist. I have managed to get it to update an existing file. But can't seem to figure out how to create a brand new file. I have done this useing the Microsoft.Graph library. Here is the code that works to update an existing file: public async Task<ActionResult> OneDriveUpload() { string token = await GetAccessToken(); if (string.IsNullOrEmpty(token)) { // If there's no token in the session, redirect to Home return Redirect("/"); } GraphServiceClient client = new GraphServiceClient( new DelegateAuthenticationProvider( (requestMessage) =>