我正在将自由职业者API集成到iOS应用程序中,并且在身份验证过程中(getRequestToken),我收到以下错误:
<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>
.我正在请求 URL 中附加 oauth 请求所需的查询参数。网址是 http://api.sandbox.freelancer.com/RequestRequestToken/requestRequestToken.json?oauth_callback='oob'&oauth_consumer_key='*'&oauth_signature_method='HMAC-SHA1'&oauth_signature='V58tFJMmk2%252FI6kcZl1m%252BaA%252FK7Bw%253D'&oauth_timestamp='1337768929'&oauth_nonce='EE982DEB-B6D0-47DD-9193-6CCA3F25446E'&oauth_version='1.0' .任何帮助将不胜感激。
谢谢
我建议您查看一些Oauth库来进行身份验证。
对于一个也许你可以看看http://code.google.com/p/oauth/
这将对您有很大帮助。