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" ▼
Step 3:Fill out the 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 enterhttp://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▼
Step 4:Click "API Permissions" → "Add Permissions" → "Common Microsoft API (Microsoft Graph)” ▼
Step 5:Request for API permission(Microsoft Graph) → Delegated permissions ▼
Step 6:Add the following API permissions ▼
Add these 6 permissions:
- Files. Read
- Files. ReadWrite
- Files. Read. All
- Files. ReadWrite. All
- offline_access
- 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 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!
📚 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!