I cant remove a follower on the person
I use the API to get the follower of the person
this is the response
(
[0] => stdClass Object
(
[user_id] => 10507790
[id] => 1405
[person_id] => 1411
[add_time] => 2019-10-16 08:34:47
)
[1] => stdClass Object
(
[user_id] => 10128840
[id] => 1408
[person_id] => 1411
[add_time] => 2019-10-17 02:51:04
)
)
i use the id like 1405 or 1408
i use the OAuth so i use api-proxy url
https://api-proxy.pipedrive.com/persons/1411/followers/1408
still i cant remove the person follower
PHP CODE
$url = “https://api-proxy.pipedrive.com/persons/1411/followers/1408”
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,$url);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST,"DELETE");
curl_setopt($ch, CURLOPT_TIMEOUT, 30); //timeout after 30 seconds
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_ANY);
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
'Authorization: Bearer '.$access_token
));