使用Microsoft Graph Communication API时发生未知错误

问题描述 投票:0回答:1

我们正在尝试使用Microsoft Graph Communication APIs以基于Create Call using Communication API进行对等呼叫

基于请求有效负载,当我们尝试使用Graph Explorernode.js样本触发相同的查询时,我们确实得到了相同的错误

{
    "error": {
        "code": "UnknownError",
        "message": "",
        "innerError": {
            "request-id": "9342e7a0-2d26-4e59-b7f4-c89a4a52e2d5",
            "date": "2020-06-11T06:47:03"
        }
    }
}

到目前为止,我们已经在App Registration上的Microsoft Azure下创建了该应用,并为Graph Api Calling分配了所需的权限>

enter image description here

我们正在使用的创建调用的请求有效负载基于Microsoft本身提供的Create Call Sample Request

{
    "@odata.type": "#microsoft.graph.call",
    "callbackUri": "http://localhost:31544/",
    "targets": [{
      "@odata.type": "#microsoft.graph.invitationParticipantInfo",
      "countryCode": "91",
      "identity": {
        "@odata.type": "#microsoft.graph.identitySet",
        "user": {
          "@odata.type": "#microsoft.graph.identity",
          "displayName": "Maggie",
          "tenantId": "150d7f46-ce04-4895-b4bd-1112221122",
          "id": "a27c62fb-a420-4fa5-87eb-2221112121"
        }
      }
    }],
    "requestedModalities": ["audio"],
    "mediaConfig": {
      "@odata.type": "#microsoft.graph.serviceHostedMediaConfig"
    }
  }

不知道有效负载或URL出了什么问题,因为每次执行请求时我们都会得到404 unknown error

enter image description here

编辑

  1. 我已经授予了所有必需的权限
  2. enter image description here

  1. 然后我尝试致电以下网址以征得管理员同意

    https://login.microsoftonline.com/common/adminconsent

  2. enter image description here

  1. [之后我尝试在POSTMAN中调用以下URL以获取令牌

    https://login.microsoftonline.com/ {{TenantID}} / oauth2 / v2.0 / token

  2. 使用相同令牌拨打电话,但收到相同错误

  3. https://graph.microsoft.com/beta/me/communications/calls

[我们试图使用Microsoft Graph Communication API,以便在尝试触发时基于基于请求有效负载的Communication API的Create Call来创建对等呼叫。

microsoft-graph azure-ad-graph-api microsoft-graph-sdks microsoft-graph-teams
1个回答
0
投票

doc开始,不支持委派权限

© www.soinside.com 2019 - 2024. All rights reserved.