Checkin API
Access to the following functioanlity is only possible through the authentication token which is received after successful authentication as explained in the check-in API section.
Get Synchronise Data
Using this request you can get all visitors, already registered visitors and checkin zones (CRUD scheme)
/checkin?getSynchronise=true | GET |
Request params:
token | Admin token |
id | Admin account ID |
event_id | Event (exhibition) ID |
timestamp | timestamp in UNIX format (leave 0 to get all data) |
Request example:
/checkin?getSynchronise=true&token=1522d9c8c03384ffe121567e993b24de&id=34469&event_id=7×tamp=0 |
Response example:
"created": {
"visitors": [
{
"id": 18517
,
"first_name": "Fokardi"
,
"last_name": "Labutna"
,
"email": "fl@testemail.com"
,
"code": 2147483647
,
"exhibitor_id": 672
},
{
"id": 18637
,
"first_name": "Calvin"
,
"last_name": "Clain"
,
"email": "Calvin.Clain@testemail.com"
,
"code": 2147483647
,
"exhibitor_id": 0
}
],
"zones": [
{
"id": 4,
"title": "Zone 1"
},
{
"id": 6,
"title": "Zone 3"
}
],
"register_visitors": [
{
"id": 174,
"admin_id": 601,
"account_id": 17781,
"status": "in",
"zone": null,
"time": 1447840484
},
{
"id": 175,
"admin_id": 601,
"account_id": 19580,
"status": "in",
"zone": null,
"time": 1447850079
}]
]}
Check In
To create a new row of check-in data in the database, please do the following:
/checkin?checkin=true | GET |
Request params:
token | Admin token |
id | Admin account ID |
event_id | Event (exhibition) ID |
time | timestamp in UNIX format (checkin time) |
account_id | Account ID that was scanned |
zone | Zone ID |
Request example:
/checkin?checkin=true&token=15c2d9c8c03384ffe1215622993b24de&id=34469&event_id=7&account_id=12345&zone=1&time=1539178055 |
Response example:
{"checkin":{"id":"28493","status":"in"}}
Face Recognition
/api/recognition | POST |
Request params:
token | Admin token |
id | Admin account ID |
event_id | Event (exhibition) ID |
account_id | Account ID to which the photo will be added with face recognition function |
img | Photo in PNG or JPG format (Which contain one face) |
Response example:
{"result":"1","data":"","messages":[{"c":"ok","m":"Photo contains one person"}]}