Skip to content

Instantly share code, notes, and snippets.

@joseph-farruggio
Created September 23, 2017 00:36
Show Gist options
  • Save joseph-farruggio/3d37e45414b61e36ecb8e9686028667e to your computer and use it in GitHub Desktop.
Save joseph-farruggio/3d37e45414b61e36ecb8e9686028667e to your computer and use it in GitHub Desktop.
Birdeye Get Reviews
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://api.birdeye.com/resources/v1/review/businessId/".$businessId."?sindex=".$sIndex."&count=".$reviewCount."&api_key=".$apiKey);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
curl_setopt($ch, CURLOPT_HEADER, FALSE);
curl_setopt($ch, CURLOPT_POST, TRUE);
curl_setopt($ch, CURLOPT_HTTPHEADER, array(
"Content-Type: application/json",
"Accept: application/json"
));
$response = curl_exec($ch);
curl_close($ch);
var_dump($response);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment