2
我有点困惑,当我得到的错误:头的GetResponse的API版本-3在C#(MVC-5)
Problem during authentication process, check headers!
Unable to authenticate user, incorrect token
肯定是有什么毛病请求头。
任何人都可以告诉我发送请求到GetResponse
API的正确方法吗?
我使用这种方式:
var request = new RestRequest("/campaigns", Method.GET);
request.AddHeader("X-Auth-Token", "api-key " + auth.myAuthorizationKey);
头看起来像这样的请求,而调试:
{X-Auth-Token=api-key d042eeae34ce076913681cc5c872741e2c5f88d2}
你为什么加入'API-key'在令牌? –
,因为它位于验证标题 –
下的[documentation](https://apidocs.getresponse.com/en/v3)中。我知道auth.AuthorizationKey Value有问题。在api-key中,我们必须通过TOKEN或API KEY? API KEY是在帐户 - > API和oAuth页面上显示的一个。 –