2015-09-05 94 views
1

我正在使用twitter數字api爲我的應用程序。我得到AuthenticationCompletion後,我在curl命令行中複製粘貼身份驗證頭(以測試我是否成功驗證身份)。微博數字api授權

這裏是我的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」:「Bad Authentication data 。「}]作爲迴應。

我試着在授權標題中刪除並添加雙引號的轉義序列。

有沒有人知道我在這裏做錯了什麼。

謝謝

+0

你能幫我填補空白的數據嗎?你在填寫oauth_signature什麼? oauth_nonce?等等.. –

回答

0

我的不好,有一個額外的報價在標題的結尾。修復。