Invalid Freelancer UI

I integrate the freelancer API into an iOS application and during the authentication process (getRequestToken), I get the following error:

<errors xmlns="http://api.freelancer.com/schemas/xml-0.1">
<error>
    <code>5002</code>
    <msg>General Token Authentication Error</msg>
    <longmsg>Authentication Failed. Reason: invalid consumer</longmsg>
</error>

. I am adding request parameters needed for oauth request in request url. URL http://api.sandbox.freelancer.com/RequestRequestToken/requestRequestToken.json?oauth_callback= 'oob' & oauth_consumer_key = ' * ' & oauth_signature_method = 'HMAC-SHA1' & oauth_signature = 'Vm2% 25m2fktf2f2fk2f2fk2f2fc2f2 252FK7Bw% 253D '& oauth_timestamp =' 1337768929 '& oauth_nonce =' EE982DEB-B6D0-47DD-9193-6CCA3F25446E '& oauth_version =' 1.0 '. Any help would be appreciated.

thank

+3
source share
1 answer

I recommend you check out some Oauth library for authentication.

Maybe you can take http://code.google.com/p/oauth/

This will help you greatly.

0
source

All Articles