でアクセストークンを取得し、アクセストークンを取得し、:http://developers.flattr.net/v2/アプリを認証し、私は私のアプリを認証で立ち往生少し午前flattr API v2の
ステップ1を、認証が正常に動作します。私は、コードを取得し、私のアプリケーションは正しいスコープで私の設定/アプリケーションに記載されています。
それから私は、次のcurlコマンドを経由してアクセストークンを取得しよう:
curl -v --user MY_KEY:MY_SECRET -H "Content-Type: application/json"\
-X POST -d '{"grant_type": "authorization_code",\
"redirect_uri": "http://localhost/", "code": "MY_CODE"}'\
https://flattr.com/oauth/token
残念ながら、私はいつも
< HTTP/1.1 400 Bad Request
< Strict-Transport-Security: max-age=500
< Set-Cookie: PHPSESSID=d9972s9r5a7t4p0ch4chc4dqh2; path=/; domain=.flattr.com; HttpOnly
< Expires: Thu, 19 Nov 1981 08:52:00 GMT
< Cache-Control: no-store
< Pragma: no-cache
< Content-Type: application/json; charset=utf-8
< Content-Length: 291
< Connection: close
< Date: Wed, 16 Nov 2011 22:38:30 GMT
< Server: lighttpd
<
* Closing connection #0
* SSLv3, TLS alert, Client hello (1):
{"error":"invalid_request","error_description":"The request is missing a required parameter, includes an unsupported parameter or parameter value, repeats a parameter, includes multiple credentials, utilizes more than one mechanism for authenticating the client, or is otherwise malformed."}
おかげで "INVALID_REQUEST" を取得します!
わかりやすくするために改行を追加しました。 –