Running a basic get query via the PHP SDK and getting a "false" as a response

Just running a simple booking request query and it does not seem to respond with the bookings listing. What am I doing wrong:

define('API_SECRET','<api secret here>');
define('API_KEY','<api key here>');

define('API_URL','https://ourdomain.checkfront.co.uk');

$Checkfront = new CheckfrontAPI(
    array(
        'host'=>API_URL,
        'consumer_key'  => API_KEY,
        'consumer_secret' => API_SECRET,
        'auth_type'=>'token'
       
    )
);

$data = array(
     
        'status_id' => 'PAID'
);
$response = $Checkfront->get('booking/index',$data);

var_dump($response);



What we get is "bool(false)" - should this not be a json response of some sort? We definitely have one booking with the status paid. Even if I remove the $data element we have the same response.

Sign In or Register to comment.