无效签名 - 创建Flickr Photoset

时间:2013-08-18 19:41:13

标签: api oauth clojure flickr

我正在尝试几个小时才能获得有效的api电话flick。以下链接由我的clojure程序构建:

  

http://api.flickr.com/services/rest/?method=flickr.photosets.create&oauth_signature=   {SIG}&安培;组oauth_token = {令牌}&安培; oauth_consumer_key = {键}&安培; oauth_signature_method = HMAC-SHA1&安培; oauth_timestamp = {时间}&安培; oauth_nonce = {随机数}&安培; oauth_version = 1.0&安培;标题= {标题}&安培; primary_photo_id = {PHOTOID}&安培;格式= JSON&安培; nojsoncallback = 1"

这就是浏览器返回的消息:

  

oauth_problem = signature_invalid&安培; debug_sbs = GET&安培; HTTP%3A%2F%2Fapi.flickr.com%2Fservices%2Frest%2F&安培;格式%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-标题

使用方法“flickr.photosets.getPhotos”和“flickr.photosets.getList”调用正在运行。

感谢您的帮助!

1 个答案:

答案 0 :(得分:0)

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