/facebook-recommendations/get
The following API call allows you to get the facebook recommendations left by a customer as raw data.
Parameters
Name |
Type |
Required |
Example |
Description |
businessId |
integer |
no |
6418 |
Business id (or multiple comma-separated ids.) |
clientId |
string(40) |
yes |
04f78...9f9f3 |
Client id is a unique user identifier provided by GatherUp. |
from |
string(YYYY-MM-DD) |
no |
2013-01-23 |
Received from |
to |
string(YYYY-MM-DD) |
no |
2015-01-23 |
Received to |
hash |
string(64) |
yes |
bd13a40...303f3c5 |
Hash is a digital request signature. Learn how to generate hash here.
|
page |
integer |
no |
1 |
Page |
Request
POST https://app.gatherup.com/api/facebook-recommendations/get
[Content-Type: application/json]
{
"clientId": "80338307b78b8d84c8b4d40e63e235cc312fcebe",
"from": "2019-09-01",
"to": "2019-09-15"
"hash": "3b288032e87d12c08c95dc8a96128f19ec1ec207af383328413d18f9e0aaf1fd",
"businessId": 33796
"page": "1",
}
Response
{
"page": 1,
"pages": 1,
"perPage": 500,
"count": "4",
"recommendations": [
{
"id": "256",
"businessId": "33796",
"author": "Cho Mi Sook",
"recommendation": "positive",
"time": "2019-09-14 00:00:00",
"content": "very good"
},
{
"id": "185",
"businessId": "33796",
"author": "Tammy Axel Schmidt",
"recommendation": "positive",
"time": "2019-09-08 00:00:00",
"content": "Excellent pizza— and gluten free crust! YUMMY"
},
{
"id": "186",
"businessId": "33796",
"author": "Mike Dietrich",
"recommendation": "positive",
"time": "2019-09-07 00:00:00",
"content": "pizza was great. sat at bar service was great."
},
{
"id": "193",
"businessId": "33796",
"author": "Lori Matthews",
"recommendation": "positive",
"time": "2019-09-04 00:00:00",
"content": "Excellent food, atmosphere and service"
},
],
"errorCode": 0,
"errorMessage": "Success"
}
Errors
errorCode |
errorMessage |
-1 |
Unknown error |
1 |
Invalid hash sign |
2 |
Invalid clientId |
3 |
Server error - please contact support |