I am trying to get the collector list and keep getting a 401 response "The authorization token was not provided."
I can't understand what am I doing wrong:
$auth_data = [
'Authorization : bearer ' . $accessToke,
'contentType : application/json',
];
$cURLConnection = curl_init();
curl_setopt($cURLConnection, CURLOPT_URL, 'https://api.surveymonkey.com/v3/surveys/119550392/collectors');
curl_setopt($cURLConnection, CURLOPT_RETURNTRANSFER, true);
curl_setopt($cURLConnection, CURLOPT_HTTPHEADER, $auth_data);
$list = curl_exec($cURLConnection);
curl_close($cURLConnection);
echo "<pre>";
print_r($list);
echo "</pre>";
thanks