gpt4 book ai didi

azure - 微软图形API : Getting channels of a Team(Group) is not working

转载 作者:行者123 更新时间:2023-12-03 00:43:09 26 4
gpt4 key购买 nike

您好,我正在尝试使用 Graph api(最近更新)获取 Microsoft 团队的 channel ,如下所示

var settings = {
"async": true,
"crossDomain": true,
"url": "https://graph.microsoft.com/beta/groups/f389913f-b38d-4784-a37c-9ae3259275dc/channels",
"method": "GET",
"headers": {
"authorization": "token`enter code here`",
"cache-control": "no-cache",
"postman-token": "f4e5037c-913a-bc76-10a2-a0adb9064c11"
}
}

$.ajax(settings).done(function (response) {
console.log(response);
});

但是我收到以下错误。

{
"error": {
"code": "AccessDenied",
"message": "Failed to execute Skype backend request GetThreadRequest. Request Url: https://apac-client-ss.msg.skype.com/v1/threads/19:<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="0e36366c3a6c3f686f3b3c3c3f3a6c39686c6c3d686a366a3f3e6c6a3d396d6b6f4e7a667c6b6f6a207d65777e6b" rel="noreferrer noopener nofollow">[email protected]</a>?view=msnp24Equivalent, Request Method: GET,. The server failed to respond correctly. Response Code: Forbidden, Reason: SkypeToken is from a disallowed region.. Response Headers: Pragma: no-cache\r\nContextId: tcid=7407026678545725096,server=EAP010230200016\r\nCache-Control: no-store, must-revalidate, no-cache\r\nDate: Fri, 12 May 2017 12:29:34 GMT\r\nServer: Microsoft-HTTPAPI/2.0\r\n",
"innerError": {
"request-id": "46e772e4-9611-4f78-82ec-a43289ce5d17",
"date": "2017-05-12T12:29:34"
}
}
}

这有什么问题吗?引用:https://developer.microsoft.com/en-us/graph/docs/api-reference/beta/api/group_list_channels我还授予了权限(Group.ReadWrite.All)。

最佳答案

这是由于此新 API 的分阶段部署所致,该 API 尚未推广到您所在的区域。如果您重试,它现在应该可用。对于给您带来的不便,我们深表歉意。

请注意,您可以使用 Microsoft Graph Explorer使用这些 API,并帮助确定您的代码是否存在问题或者 API 本身是否存在问题。您可以将其与示例帐户一起使用,或者 - 更好 - 使用您正在使用/测试的特定帐户登录。

关于azure - 微软图形API : Getting channels of a Team(Group) is not working,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43938017/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com