twitter digits api授权 [英] twitter digits api Authorization
问题描述
我使用twitter digits api做为我的应用程式。在我获得AuthenticationCompletion后,我复制粘贴身份验证头在curl命令行(以测试如果我验证成功)。
这里是我的curl命令看起来像。 >
curl --get' https:// api.digits.com/1.1/sdk/account.json '--header'授权:OAuth oauth_signature =<>,oauth_nonce =<>,oauth_timestamp =<>,oauth_consumer_key =<>,oauth_token =<>,oauth_version =1.0,oauth_signature_method =HMAC-SHA1'--verbose
总是收到{errors:[{code:215,message:认证数据错误。}]作为回复。
有人知道我在哪里做错了。
感谢
我的错,在标题的结尾有一个额外的报价。 $ b
I am using twitter digits api for my app. After i get AuthenticationCompletion, i copy paste authentication header in curl command line (to test if I am authenticated successfully).
here is my curl command looks like.
curl --get 'https://api.digits.com/1.1/sdk/account.json' --header 'Authorization: OAuth oauth_signature="<>",oauth_nonce="<>",oauth_timestamp="<>",oauth_consumer_key="<>",oauth_token="<>",oauth_version="1.0",oauth_signature_method="HMAC-SHA1""' --verbose
but i always get {"errors":[{"code":215,"message":"Bad Authentication data."}] as response.
I tried removing and adding escape sequence for double quotes in Authorisation header as well.
Does anyone know what and I doing wrong here.
thanks
my bad, there was an extra quote at the end of headers. Fixed it.
这篇关于twitter digits api授权的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!