Skip to content

Commit

Permalink
Update onedrive.d
Browse files Browse the repository at this point in the history
* Cherry pick 5a4a351

Fix by @JC-comp
  • Loading branch information
abraunegg committed Oct 22, 2023
1 parent 5fddd74 commit 5dedd26
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/onedrive.d
Original file line number Diff line number Diff line change
Expand Up @@ -622,8 +622,9 @@ class OneDriveApi {
JSONValue getPathDetailsByDriveId(string driveId, string path) {
checkAccessTokenExpired();
string url;
// Required format: /drives/{drive-id}/root:/{item-path}
url = driveByIdUrl ~ driveId ~ "/root:/" ~ encodeComponent(path);
// https://learn.microsoft.com/en-us/onedrive/developer/rest-api/concepts/addressing-driveitems?view=odsp-graph-online
// Required format: /drives/{drive-id}/root:/{item-path}:
url = driveByIdUrl ~ driveId ~ "/root:/" ~ encodeComponent(path) ~ ":";
return get(url);
}

Expand Down

0 comments on commit 5dedd26

Please sign in to comment.