Hello guys,
I need to use route from PIPEDRIVE API, to create and update call logs, but always returns this error:
{“success”:false,“error”:“Scope and URL mismatch”,“errorCode”:403}
The Pipedrive Official client this not have updated to use this routes.
I wrote the following PHP code:
//The URL of the resource that is protected by Basic HTTP Authentication.
$url = 'https://api.pipedrive.com/v1/callLogs';
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
'Accept: application/json',
'Authorization: Bearer ' . Pipedrive\Configuration::$oAuthToken->accessToken
));
$response = curl_exec($ch);
echo $response;
But this code not working when i use oAuth authentication.
This works fine when use api_token, see:
https://api.pipedrive.com/v1/callLogs?start=1&api_token=570271f02b8ab198e957bXXXXXXXXXX6776586d
Can you help us ?