Add Google Reviews to Your Website code example
Example: custom google reviews
<?php
$apiKey = "YOUR_API_KEY";
$ch = curl_init();
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HEADER, false);
$dataQuery = [
'url' => 'https://www.yelp.at/biz/teddy-s-red-tacos-los-angeles-2',
'type' => '',
];
curl_setopt($ch, CURLOPT_URL, 'https://app.reviewapi.io/api/v0/reviews?' . http_build_query($dataQuery));
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
"Content-Type: application/json",
"apikey: $apiKey",
));
$responseData = curl_exec($ch);
curl_close($ch);
$resultData = json_decode($responseData);
var_dump($resultData);
?>