fix: need Sites scope

pull/274/head
qkqpttgf 2021-03-28 16:38:37 +08:00 committed by GitHub
parent 32649ccc62
commit 1295ad92ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -16,7 +16,7 @@ class Onedrive {
} }
$this->oauth_url = 'https://login.microsoftonline.com/common/oauth2/v2.0/'; $this->oauth_url = 'https://login.microsoftonline.com/common/oauth2/v2.0/';
$this->api_url = 'https://graph.microsoft.com/v1.0'; $this->api_url = 'https://graph.microsoft.com/v1.0';
$this->scope = 'https://graph.microsoft.com/Files.ReadWrite.All offline_access'; $this->scope = 'https://graph.microsoft.com/Files.ReadWrite.All https://graph.microsoft.com/Sites.ReadWrite.All offline_access';
$this->client_secret = urlencode($this->client_secret); $this->client_secret = urlencode($this->client_secret);
$this->scope = urlencode($this->scope); $this->scope = urlencode($this->scope);
$this->DownurlStrName = '@microsoft.graph.downloadUrl'; $this->DownurlStrName = '@microsoft.graph.downloadUrl';