header - how to set the authorization token based on this curl? -


i want add token authorisation header. here curl backend ask me set before interaction:

curl -h 'authorization: token token="replace-with-token"' http://domain.com/topic 

here code:

 [config sethttpadditionalheaders:@{@"authorization":@"token=\"4959a0bc00a15e335fb6\""}]; 

i keep getting "http token: access denied." 1 know reason?

i believe this?:

[config sethttpadditionalheaders:@{@"authorization":@"token token=\"4959a0bc00a15e335fb6\""}]; 

Comments