2

I am a bit confused that when I get the error:

Problem during authentication process, check headers!
Unable to authenticate user, incorrect token

There is definitely something wrong with request header.

Can any one tell me the correct way of sending a request to GetResponse API?

I am using this way:

var request = new RestRequest("/campaigns", Method.GET);
request.AddHeader("X-Auth-Token", "api-key " + auth.myAuthorizationKey);

The header looks like this in request while debugging:

{X-Auth-Token=api-key d042eeae34ce076913681cc5c872741e2c5f88d2}
halfer
  • 19,824
  • 17
  • 99
  • 186
Asif Mehmood
  • 964
  • 2
  • 14
  • 35

1 Answers1

1

Use APIKEY instead AuthorizationKey

Pavan Teja
  • 3,192
  • 1
  • 15
  • 22
  • Thank you, it worked. As i was new to this API, i thought the AuthorizationKey must be used a token as the Documentation of GetResponse is not that good. – Asif Mehmood Mar 03 '16 at 10:18