onedrive

Invalid Audience URI error Service to Service application, onedrive for business

▼魔方 西西 提交于 2021-02-11 16:56:14
问题 I am attempting to retrieve files from an Office 365 for Business account. Following instructions here: https://msdn.microsoft.com/en-us/library/azure/dn645543.aspx I have been able to successfully obtain an Access Token for my application. However, when I attempt to use the token to make API Calls, I receive the error "https://[tenant redacted]-my.sharepoint.com/_api/v2.0/drive/ - 401: {"error":"invalid_client","error_description":"Invalid audience Uri 'http:\/\/[redacted]-spreadsheet-test

How to upgrade from OneDrive SDK to Microsoft Graph SDK and keep the old AppFolder

倾然丶 夕夏残阳落幕 提交于 2021-02-11 14:59:27
问题 My UWP app uses app folder ( Files.ReadWrite.AppFolder ) for storing app data on OneDrive. I upgraded the app to use Microsoft Graph SDK instead of the old OneDrive SDK (version 1.x). I didn't get the authentication to work using the old client id registered in https://apps.dev.microsoft.com, so I registered my app in https://aad.portal.azure.com/ and I use MSAL.NET for authentication. The problem is that the upgraded app creates a new app folder on OneDrive ( My App 1 ) instead of using the

Saving data on OneDrive or Google Drive (Heroku)

泄露秘密 提交于 2021-02-11 12:26:24
问题 Hello I am new to using django and heroku and through out me designing my first project I Found out that I need a AWS 3 account/S3 storage to store images/files but I was wondering if I could use either a OneDrive or a Google Drive to save the files/images that the user uploads and if so, is it Like when using a AWS 3 storage. 回答1: Heroku has an “ephemeral” hard drive, this means that you can write files to disk, but those files will not persist after the application is restarted. You would

Saving data on OneDrive or Google Drive (Heroku)

不想你离开。 提交于 2021-02-11 12:25:33
问题 Hello I am new to using django and heroku and through out me designing my first project I Found out that I need a AWS 3 account/S3 storage to store images/files but I was wondering if I could use either a OneDrive or a Google Drive to save the files/images that the user uploads and if so, is it Like when using a AWS 3 storage. 回答1: Heroku has an “ephemeral” hard drive, this means that you can write files to disk, but those files will not persist after the application is restarted. You would

How to migrate a UWP app's authentication from OneDrive SDK to Graph

假如想象 提交于 2021-02-11 06:51:51
问题 So I have this really old UWP app that has been using the Live/OneDrive SDK to provide authentication and identification for at least 7 years now. The app is registered with Microsoft Account Authentication which provides a Client Id and Client Secret to identify the app when an authentication request is made. When I use the SDK for authentication (OnlineIdAuthenticationProvider), it returns a unique Id (CurrentAccountSession.UserId) with which I can determine which of my users is using the

Upload file to Office 365 Onedrive Business account using PHP-Curl

怎甘沉沦 提交于 2021-02-07 10:28:09
问题 I'm trying to upload a JSON file to a new folder in OneDrive Business AC account using cURL. While uploading, I am getting the following error: HTTP status code not expected - got - 401 Here is my code: $uri = "https://graph.microsoft.com/v1.0/me/drive/root/new/sample.json/content?access_token=accesstoken"; function curl_put($uri, $fp) { $output = ""; try { $pointer = fopen($fp, 'r+'); $stat = fstat($pointer); $pointersize = $stat['size']; $ch = curl_init($uri); curl_setopt($ch, CURLOPT

Upload file to Office 365 Onedrive Business account using PHP-Curl

我只是一个虾纸丫 提交于 2021-02-07 10:27:02
问题 I'm trying to upload a JSON file to a new folder in OneDrive Business AC account using cURL. While uploading, I am getting the following error: HTTP status code not expected - got - 401 Here is my code: $uri = "https://graph.microsoft.com/v1.0/me/drive/root/new/sample.json/content?access_token=accesstoken"; function curl_put($uri, $fp) { $output = ""; try { $pointer = fopen($fp, 'r+'); $stat = fstat($pointer); $pointersize = $stat['size']; $ch = curl_init($uri); curl_setopt($ch, CURLOPT

Copy a folder in particular one drive to users one drive using SharePoint site automatically

自作多情 提交于 2021-01-29 16:23:55
问题 Can I create a page in one site where when a user with access to the page will have a popup, the popup contains a few fields for the user to answer? When the popup is properly submitted, it will copy a folder in particular one drive to users one drive using the SharePoint site. it is possible, please share some resources to refer to creating the process. 来源: https://stackoverflow.com/questions/61477417/copy-a-folder-in-particular-one-drive-to-users-one-drive-using-sharepoint-site-a

Resource Not Found for the segment (filename) when uploading file to Onedrive

∥☆過路亽.° 提交于 2021-01-29 14:25:34
问题 Hey im trying to use the Microsoft Graph API to upload some files to my Drive. I am following this link and gave my app the appropriate permissions. After signing in when i attempt to run the code below: URL = "https://graph.microsoft.com/v1.0/users/USERNAME/drive" directory = "directory-on-my-local-machine/" for i in os.listdir(directory ): if i.endswith('.docx'): file_path = os.path.join(directory , i) file_handle = open(file_path, 'rb') print('uploading... ', i) r = requests.put(URL + '/'

Using OneDrive filePicker to access data

北城余情 提交于 2021-01-29 10:24:12
问题 I'm trying to develop a Unity application on Hololens which needs to instantiate some 3D models at runtime. I was thinking of using OneDrive to store unity AssetBundle and load when I need, simply using the local path. The problem that I'm facing is that Hololens has a different file system structure and UWP application can access only certain directories. I've read Trouble with FilePickers in Unity Hololens development, Filepicker for Hololens: List available filepickers? and App to app