I am trying to make a request to get the static map OR trip receipt of a past uber ride.
$headers = array(
"Authorization: Bearer {$this->token}",
'Accept-Language: en_US',
'Content-Type: application/json'
);
curl = curl_init();
curl_setopt($curl, CURLOPT_URL, 'https://api.uber.com/v1.2/requests/my-request-id-xxx/receipt');
curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, TRUE); // So it doesnt print out results
$curl_results = curl_exec($curl);
curl_close($curl);
// Uber Responds with JSON
$curl_results = json_decode($curl_results, TRUE); print_r($curl_results);
The response is this:
Array
(
[message] => Forbidden
[code] => forbidden
)
I've refreshed my token and also received new tokens and triple checked to make sure I had selected the correct scopes. I understand that this is a privilege scope and the account I am trying to access is my own account. My only explanation is to what could be happening is that under the API account my email is marked as "Owner" rather than "developer". Could this be the reason why I am being denied.. or am I making another mistake?