If I go directly to the URL with the right params in the URL, I get a success response.
The URL looks like
https://api.theService.com/send?client_id=54&token=7545h5h554&format=json
In PHP, I tried something like
error_reporting(E_ALL);
ini_set('display_errors', 1);
$client_id = 54;
$token = '7545h5h554';
$ch = curl_init('https://api.theService.com/send?client_id='.$client_id.'&token='.$token.'&format=json');
// Send the request
$response = curl_exec($ch);
// Check for errors
if($response === FALSE){
die(curl_error($ch));
}
// Decode the response
$responseData = json_decode($response, TRUE);
echo "<pre>";
echo print_r($responseData);
echo "</pre>";
However I never get a response with the above code.