OneDrive links require "scope" parameter now

This commit is contained in:
SupSuper 2021-05-08 01:14:52 +01:00
parent f9555b6e95
commit fbe837a62e

View file

@ -288,7 +288,8 @@ public string CreateShareableLink(string id, OneDriveLinkType linkType = OneDriv
string json = JsonConvert.SerializeObject(new
{
type = linkTypeValue
type = linkTypeValue,
scope = "anonymous"
});
string response = SendRequest(HttpMethod.POST, $"https://graph.microsoft.com/v1.0/me/drive/items/{id}/createLink", json, RequestHelpers.ContentTypeJSON,