2017-05-04 3 views
0

私は、次のcurlコマンドを(作業)している:Guzzleでカールが発生しているアクセストークンを取得する方法はありますか?

curl https://[client_id]:[client_secret]@domain.tld/oauth/token \ 
    -X POST \ 
    -d "grant_type=client_credentials&scope=manage_my_profile:blah manage_settings:cool" 

にはどうすればaccess_tokenはを取得するには、コールを変換するのでしょうか?

グズルクライアントメソッドで次のように呼び出す方法はありますか?

$curl "https://domain.tld/products" \ 
     -H "Authorization: Bearer [my-access-token-retieved-before]" 

答えて

0

がつがつ食うにはnice documentation with all the options describedを持っているので、あなたは、最初のコードを自分で書くようにしてください。そして、何かがうまくいかない場合は、より詳細な質問をしてください。

関連する問題