Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/clojure/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Clojure-oauth凭据和签名_Oauth_Clojure_Flickr - Fatal编程技术网

Clojure-oauth凭据和签名

Clojure-oauth凭据和签名,oauth,clojure,flickr,Oauth,Clojure,Flickr,Iam正在尝试实现oauth(clj oauth),以便与flickr API一起使用 我已经有了访问令牌,只需要凭据,但这里我卡住了 我的代码如下所示: (def credentials (oauth/credentials consumer (:oauth_token access-token-response) (:oauth_token_secr

Iam正在尝试实现oauth(clj oauth),以便与flickr API一起使用

我已经有了访问令牌,只需要凭据,但这里我卡住了

我的代码如下所示:

(def credentials (oauth/credentials consumer
                                    (:oauth_token access-token-response)
                                    (:oauth_token_secret access-token-response)
                                    :GET
                                    "http://api.flickr.com/services/rest/..."
                                    {:status "??")))
我需要调用的url是:

 http://api.flickr.com/services/rest/?method=flickr.photosets.getList&api_key=3c2cfaf22751d55db9e0a4d02be254d7&user_id=92219076%40N07&format=json&nojsoncallback=1&auth_token=72987632743515342-8c99972fdac0b886&api_sig=cca1c874268986779d229f72ab65ee5a
但上面的例子对我来说并不清楚,这是什么:地位? 是否将:状态转换为/?status=“…”

第二个问题是。。。我在哪里可以找到api_标志? 是否应该由oauth/make consumer生成


谢谢你的帮助

对于第一部分,请看我对类似问题的回答


api_sig
是Flickr旧的、现在已弃用的非oauth身份验证的一部分。

好的,我听说oauth/credentials将构建基本字符串并对其签名。但我还是不明白:状态键。。。