来自REST API的dotmailer请求令牌
我很想在Dotmailer中调用REST API。来自REST API的dotmailer请求令牌
他提供了一个用于调用OAuth并获取令牌的文档。 但它总是抛出相同的错误。
输入是
POST方法 URI:https://r1-app.dotmailer.com/OAuth2/Tokens.ashx JSON输入 { "client_id" : "[email protected]", "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
解决了我的问题。 – balasubramani
你好。欢迎来到Stack Overflow。请环顾四周,参加[旅游],并通读[帮助中心]。你也可以阅读关于[问]一个很好的问题。 – Sampada