0

現在、Microsoft Graph API を使用してメッセージへのサブスクリプションを作成する要求を送信しようとしていますが、エラー 405 Method Not Allowed が発生しています。

なぜこれが起こっているのか誰かが考えていたのだろうかと思っていましたか?

私が送信するリクエストは次のとおりです。

POST https://graph.microsoft.com/beta/subscriptions
Content-type: application/json
Content-length: 208

{
   "changeType": "Created",
   "notificationUrl":"https://webhook.azurewebsites.net/api/send/myNotifyClient",
   "clientState": "subscription-identifier",  
   "resource": "me/messages"
}

そして、ここに応答があります:

{
 "error": {
  "code": "MethodNotAllowed",
  "message": "Method not allowed.",
  "innerError": {
   "request-id": "a61ece92-7b7f-4693-b047-80c419ebde23",
   "date": "2016-01-06T11:13:02"
  } 
 }
}

応答ヘッダー:

Access-Control-Allow-Origin → *
Allow → GET
Cache-Control → private
Content-Type → application/json
Date → Wed, 06 Jan 2016 11:13:02 GMT
Duration → 58.558
OutBoundDuration → 0
Server → Microsoft-IIS/8.5
Transfer-Encoding → chunked
X-Powered-By → ASP.NET
client-request-id → a61ece92-7b7f-4693-b047-80c419ebde23
request-id → a61ece92-7b7f-4693-b047-80c419ebde23
x-ms-ags-diagnostic → {"ServerInfo":{"DataCenter":"NorthEurope","Slice":"SliceB","ScaleUnit":"001","Host":"AGSFE_IN_4","ADSiteName":"DUB"}}
4

1 に答える 1

1

サブスクリプション エンティティ セット/機能は、現在、Azure Active Directory ユーザーのみがアクセスできます。要求は Microsoft アカウント (Live Id) アクセス トークンと共に送信されましたが、現在、そのようなアカウントのサブスクリプションはサポートされていません。

于 2016-01-07T19:46:33.913 に答える