2011-11-16 5 views
0

でアクセストークンを取得し、アクセストークンを取得し、: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" を取得します!

+0

わかりやすくするために改行を追加しました。 –

答えて

0

私はこのプロセスでバグを発見しましたが、今や破壊されています。もう一度リクエストを試みるとスムーズに作業する必要があります。

+0

Simonに感謝します。でも、私はまだ同じエラーが発生します。たぶん私の要求は本当に不完全ですが、私はどこに見えません! –

+0

うん...今働いている。ありがとうございました :) –

関連する問題