The following sample code was kindly provided by one of our customers. We hope it will be useful to you in building your integration with the Widgety Cruises API.
$cruiseAPI = "https://www.widgety.co.uk/api/cruises.json?app_id=$appId&token=$appToken";
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, $cruiseAPI);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($curl, CURLOPT_HTTPHEADER, array('Accept: application/json;api_version=2' ));
$resp=curl_exec($curl);
curl_close($resp);
var_dump($resp);
Comments
0 comments
Please sign in to leave a comment.