OneDrive API client using Microsoft Graph API
- OneDrive API client wrapper as OneIndex, PyIndex etc.
- Cache while first request income and auto refreshing.
- In memory cache with permanent local cache file (Experiment).
- Multi OneDrives within one endpoint, specify one drive by using query.
- Run without other requirements, just configure once and run it.
- Volume mounts and mount type setting.
- Using delta API or subscription/notification to update folder cache.
- File upload and ongoing download support.
- Buildin web graph user interface support.
- Administration controls support.
To connect with Microsoft Graph, you'll need a work/school account or a Microsoft account.
- Go to the Microsoft Application Registration Portal.
- When prompted, sign in with your account credentials.
- Find My applications and click Add an app.
- Enter your app's name and click Create application.
Minimize setting template
{
"oneDrives": [
{
"microsoftEndPoints": {
"azureAdPortalEndPointUrl": "https://portal.azure.com",
"azureAdEndPointUrl": "https://login.microsoftonline.com",
"microsoftgraphApiEndPointUrl": "https://graph.microsoft.com"
},
"azureAdAppRegistration": {
"clientId": "Your Azure AD App Client ID",
"redirectUris": ["Your Azure AD App Redirect URL"],
"clientSecret": "Your Azure AD App Client Secret"
},
"azureAdAuthFlowContext": {
"grantScope": "Files.ReadWrite User.Read offline_access"
},
"oneDriveDescription": {
"rootPath": "root",
"refreshInterval": 3600
}
}
]
}
https://portal.azure.com
https://portal.azure.cn (Azure AD China operated by 21Vianet)
https://portal.microsoftazure.de (Azure AD Germany)
https://login.microsoftonline.com
https://login.chinacloudapi.cn (Azure AD China operated by 21Vianet)
https://login.microsoftonline.de (Azure AD Germany)
https://graph.microsoft.com
https://microsoftgraph.chinacloudapi.cn (Microsoft Graph China operated by 21Vianet)
https://graph.microsoft.de (Microsoft Graph Germany)