我有以下curl命令(工作):
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?
然后如何在guzzle客户端方法中调用以下内容?
$curl "https://domain.tld/products" \
-H "Authorization: Bearer [my-access-token-retrieved-before]"