0
我oneDrive工作(我可以列出或上傳文件沒有問題)OneDrive API:創建訂閱
現在,我發送POST請求api.onedrive.com
POST /v1.0/drive/items/A1EAE8A1F0669564!144/subscriptions HTTP/1.1
Host: api.onedrive.com
Authorization: bearer EwAQA61DBAAU...7lYJ2MtQEIPw7FMEAg==
Content-Type: application/json
Cache-Control: no-cache
{ "notificationUrl": "https://odwebhooktest.azurewebsites.net/notification/listen", "expirationDateTime": "2018-01-01T11:23:00.000Z" }
這個請求是相同的文檔https://dev.onedrive.com/webhooks/create-subscription.htm
但我收到的響應
{"error":{"code":"invalidRequest","message":"Bad Argument"}}
我做錯了什麼?
你可以附加回應標題到這個問題嗎?它會讓我們對發生的事情有更多的瞭解。您也可以嘗試將到期日設置爲將來不太遠的值(例如3個月),然後查看是否有效。 – Brad