Flickr的api_sig(API签名) [英] Flickr api_sig (api signature)

查看:555
本文介绍了Flickr的api_sig(API签名)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请帮我计算的 api_sig 。我已经从这里( www.flickr.com/services/api工作URL请求/explore/flickr.photosets.getP ... )。

pls help me with calculating api_sig. I have working URL request from here (www.flickr.com/services/api/explore/flickr.photosets.getP...).

我想通过自己的重新计算api_sig。我是从这个字符串生成MD5哈希值:
" api_key071da8bd47cc06715f12e139
auth_token7215764931-65136290ea10d4b6
formatrest
methodflickr.photosets.getPhotosphoto
set_id7215924989144"

I'm trying recalculate api_sig by myself. I'm generating md5 hash from this string: "api_key071da8bd47cc06715f12e139 auth_token7215764931-65136290ea10d4b6 formatrest methodflickr.photosets.getPhotosphoto set_id7215924989144"

我不知道我应该使用什么样的[秘密code]。它是秘密API密钥或者是"秘密"从photoset?或者是别的什么?

I don't know what should i use like [secret code]. Is it secret API key or is it "secret" from photoset? Or is it something else?

我对MD5哈希值字符串是:
" [秘密]
api_key071da63edd47cc06715f12e139
auth_token757925931-65136290ea10d4b6
formatrestmethodflickr.photosets.getPhotos
photoset_id721746989144"

My string for md5 hash is: "[secret] api_key071da63edd47cc06715f12e139 auth_token757925931-65136290ea10d4b6 formatrestmethodflickr.photosets.getPhotos photoset_id721746989144"

我是什么做错了吗?我得到不同的哈希值。

What am I doing wrong? I am getting different hash.

感谢您提前为您的意见和请原谅我的英语水平。

Thank you in advance for your advice and please excuse my English.

推荐答案

您应该删除字符串中的空格即你应该生成这个MD5字符串: \"api_key071da8bd47cc06715f12e139auth_token7215764931-65136290ea10d4b6formatrestmethodflickr.photosets.getPhotosphotoset_id7215924989144\".然后用其作为api_sig参数。

You should remove the whitespaces from the string i.e. you should just generate a md5-string from this: "api_key071da8bd47cc06715f12e139auth_token7215764931-65136290ea10d4b6formatrestmethodflickr.photosets.getPhotosphotoset_id7215924989144". And then use that as the api_sig parameter.

下面是步骤: https://www.flickr.com /services/api/auth.spec.html#signing

这篇关于Flickr的api_sig(API签名)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆