[英]dotmailer request token from REST API
我很難在Dotmailer上調用REST API。
他提供了用於調用OAuth的文檔並獲取令牌。 但是它總是拋出相同的錯誤。
輸入為
發布方法URI: https { "client_id" : "apiuser-XXXXXXXXXXX@apiconnector.com", "redirect_uri" : null, "client_secret" : "XXXXXXXXXXXX", "grant_type": "authorization_code", "code":"MyServerCode", "test_mode":true }
JSON輸入為{ "client_id" : "apiuser-XXXXXXXXXXX@apiconnector.com", "redirect_uri" : null, "client_secret" : "XXXXXXXXXXXX", "grant_type": "authorization_code", "code":"MyServerCode", "test_mode":true }
輸出是
{ "error": "invalid_request", "error_description": "There was a problem with the 'grant_type' parameter: The parameter is required." }
任何人都知道錯誤。
提前致謝...
我認為Dotmailer OAuth有一些問題。
我還可以使用基本身份驗證方法來訪問dotmailer API。
基本URI = https://api.dotmailer.com/v2/
標頭
Content-type: application/json Authorization: Basic base64_convertion(username:password).
樣品
Content-type: application/json Authorization: Basic XXXXXXXXXXXXXXXX.
使用WADL方法。
https://api.dotmailer.com/v2/help/wadl
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.