I am working with authentication token generate uber api.
`
curl -X POST 'https://login.uber.com/oauth/v2/token' \
-d 'client_id=<CLIENT_ID>' \
-d 'client_secret=<CLIENT_SECRET>' \
-d 'grant_type=client_credentials' \
-d 'scope=eats.deliveries direct.organizations'
` I am getting this error. while using this.
error :- `
Array
(
[error] => invalid_scope
[error_description] => scope(s) are invalid
)
`
I Try This PHP Authentication Code :--
`
$post = array(
'client_secret' => $client_secret,
'client_id' => $client_id,
'grant_type' => 'client_credentials',
'scope' => 'eats.deliveries direct.organizations',
);
`
Error show in 'Scope' Parameters