Add a visitor to a certain service queue
curl https://api.ezturns.com/visitors/add \
-d '{"key": "xxxxxxxxxxxx", "service": "T"}' \
-H "Content-Type: application/json"
Add a visitor to a certain service queue and assign an ID
curl https://api.ezturns.com/visitors/add \
-d '{"key": "xxxxxxxxxxxx", "service": "A", "id": "John Doe"}' \
-H "Content-Type: application/json"
Generates a report of incoming visitors and window calls in a requested time period
curl https://api.ezturns.com/report \
-d '{"key": "xxxxxxxxxxxx", "st": start_time_unix_seconds, "et": end_time_unix_seconds}' \
-H "Content-Type: application/json"
Returns:
{
"header": [FIELD_1, FIELD_2, ... FIELD_N],
"units": [UNITS_FIELD_1, UNITS_FIELD_2, ... UNITS_FIELD_N],
"data": [
/*First visitor*/
[ITEM_1, ITEM_2, … , ITEM_N],
/*Second visitor*/
[ITEM_1, ITEM_2, … , ITEM_N],
…
/*Last visitor*/
[ITEM_1, ITEM_2, … , ITEM_N]
]
}