Does Onedrive have an open API? Onedrive cloud storage changes the self-built API to build a website

RcloneConfigure the Onedrive cloud storage to change the self-built API, andRequest Google Drive Client ID and Secret Key APISimilarly, you also need to go to the Microsoft Azure Active Directory Management Center to apply for an open API.

How does Microsoft Azure apply for an open API?

Step 1:Open the Microsoft Azure Management Center registration application website▼

Step 2:Click "New Registration" ▼

Does Onedrive have an open API? Onedrive cloud storage changes the self-built API to build a website

Step 3:Fill out the registration application information ▼

Step 2: Fill out the second sheet of registration application information

Enter app name:Rclone

Who can better use this application or access this API?

  • Choose the third one directlyAccounts in any organizational directory (any Azure AD directory – multi-tenant) and personal Microsoft accounts (e.g., Skype, Xbox)"
  • redirect URLselect"WEB", you can enter http://localhost:53682 As a url, it is used to return data to your server when the user authorization of this application is successful.
  • Fill in the information, click "Register", you will come to the interface below▼

Fill in the information, click "Register", you will come to the third page of this interface

Step 4:Click "API Permissions" → "Add Permissions" → "Common Microsoft API (Microsoft Graph)” ▼

Step 4: Click "API Permissions" → "Add Permissions" → "Common Microsoft API (Microsoft Graph)" on the left column

Step 5:Request for API permission(Microsoft Graph) → Delegated permissions ▼

Step 5: Request for API permission (Microsoft Graph) → Delegated permission sheet 5

Step 6:Add the following API permissions ▼

Step 4: Click "API Permissions" → "Add Permissions" → "Common Microsoft API (Microsoft Graph)" on the left column

Add these 6 permissions:

  1. Files. Read
  2. Files. ReadWrite
  3. Files. Read. All
  4. Files. ReadWrite. All
  5. offline_access
  6. User. Read
  • Finally, confirm if all 6 permissions have been added?

Step 7:After adding permissions, you need to create a client secret.

  • On the left navigation, click "Certificate and Password" → "+New Client Password";
  • Fill in the instructions in the window casually, select "24 months" for the deadline, and then click "Add";
  • The password you created will appear below. Be sure to save and record this password on your computer, because this password will only appear once.

Step 7: After adding permissions, you need to create a client secret.On the left navigation, click "Certificate and Password" → "+New Client Password"; Fill in the instructions in the window casually, select "24 months" for the expiration date, and then click "Add"; the password you created will appear below, be sure to save it Record this password on the computer, as this password will only appear once.7th

Step 8:Go back to the main page, click "Overview", copy "Application (Client) ID".

Step 9:Paste the App ID you just copied

Back to the console of our VPS, it now looks like this ▼

Microsoft App Client Id
Enter a string value. Press Enter for the default ("").
client_id> //此处粘贴刚才复制的应用程序ID

Paste what we just copiedApplication (Client) ID, Enter;

Step 9:enter password

Paste here is the password we just saved the record, as follows:

Enter a string value. Press Enter for the default ("").
client_secret> //此处粘贴刚刚保存记录的密码

If an error message "Rclone Error: f appears when Rclone configures OneDriveailed to configure OneDrive:empty token found” problem, please refer to the following tutorial▼

Hope Chen Weiliang Blog ( https://www.chenweiliang.com/ ) shared "Does Onedrive have an open API? Onedrive cloud storage changes the self-built API to build a website", which is helpful to you.

Welcome to share the link of this article:https://www.chenweiliang.com/cwl-27827.html

Welcome to the Telegram channel of Chen Weiliang's blog to get the latest updates!

🔔 Be the first to get the valuable "ChatGPT Content Marketing AI Tool Usage Guide" in the channel top directory! 🌟
📚 This guide contains huge value, 🌟This is a rare opportunity, don’t miss it! ⏰⌛💨
Share and like if you like!
Your sharing and likes are our continuous motivation!

 

Comment

Your email address will not be published. Required fields * Callout

scroll to top