1

I'am trying now for hours to get a valid api call for flickr. The following link is build by my clojure program:

"http://api.flickr.com/services/rest/?method=flickr.photosets.create&oauth_signature= {sig}&oauth_token={token}&oauth_consumer_key={key}&oauth_signature_method=HMAC-SHA1&oauth_timestamp={time}&oauth_nonce={nonce}&oauth_version=1.0&title={title}&primary_photo_id={photoid}&format=json&nojsoncallback=1"

And that is the message the browser returns:

oauth_problem=signature_invalid&debug_sbs=GET&http%3A%2F%2Fapi.flickr.com%2Fservices%2Frest%2F&format%3Djson%26method%3Dflickr.photosets.create%26nojsoncallback%3D1%26oauth_consumer_key%3D23XXXXXXXXXXX6e46a05ae55c4%26oauth_nonce%3De6u52XXXXXXXXXpphqner4e0j%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp%3D13XXXXX06%26oauth_token%3D721XXXXXXXX503-356bXXXXXXXf66e%26oauth_version%3D1.0%26primary_photo_id%3D12345678%26title%3Dphotoset-title

Calls with method "flickr.photosets.getPhotos" and "flickr.photosets.getList" are working.

Thanks for any help!

4

1 回答 1

0

签名无效。您得到的结果是您应该发送的正确字符串。请张贴您发送的签名和回寄的签名。您需要比较它们,看看您发送的那个有什么问题。

于 2013-08-18T23:30:12.050 回答