So i'm trying to track if an email returns a bounce (address not found)
Here's my code:
#Find bounce report.
$curl = curl_init();
curl_setopt_array($curl,
array(
CURLOPT_RETURNTRANSFER => 1,
CURLAUTH_ANY,
CURLOPT_URL => 'https://api.sendgrid.com/v3/suppression/bounces/'.$bouncemail.'/',
CURLOPT_HEADER => 'Authorization: Bearer <<REDACTED>>'
));
$bounce_report = curl_exec($curl);
curl_close($curl);
I can't seem to find what i'm doing wrong here.
This is what i get:
authorization required
Maybe some of you can see it?
Kind regards