简体   繁体   中英

The Microsoft Graph API: List post attachments API doesn't work

I followed this document and wrote the code as below, but it response 405(method not allowed), error message is "The OData request is not supported.".

function getAttachment(groupId, threadId, postId) {
    HttpClient.get({
        url: "https://graph.microsoft.com/v1.0/groups/" + groupId + "/threads/" + threadId + "/posts/" + postId + "/attachments"
    }).then(function (resp) {

    });
};

Is there something wrong in the code?

Your code is correct, it's a bug in the Graph API. A fix for it is being rolled out and should be widely available in about a month.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM