Created
September 23, 2017 00:36
-
-
Save joseph-farruggio/3d37e45414b61e36ecb8e9686028667e to your computer and use it in GitHub Desktop.
Birdeye Get Reviews
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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