mirror of
https://github.com/abraunegg/onedrive
synced 2024-06-15 20:25:18 +02:00
parent
b2bf6aa475
commit
4c8e2cb3af
|
@ -1029,6 +1029,8 @@ final class OneDriveApi
|
|||
} else {
|
||||
resourceItem = "/me/drive/root";
|
||||
}
|
||||
// Debug output for the subscription resource item
|
||||
log.vdebug("Setting subsription resourceItem as: ", resourceItem);
|
||||
|
||||
// create JSON request to create webhook subscription
|
||||
const JSONValue request = [
|
||||
|
@ -1038,6 +1040,9 @@ final class OneDriveApi
|
|||
"expirationDateTime": expirationDateTime.toISOExtString(),
|
||||
"clientState": randomUUID().toString()
|
||||
];
|
||||
|
||||
// Debug output of the full required for the webhook subscription creation
|
||||
log.vdebug("Create subsription request: ", request.toString());
|
||||
http.addRequestHeader("Content-Type", "application/json");
|
||||
JSONValue response;
|
||||
|
||||
|
|
Loading…
Reference in a new issue