Closed brackendawson closed 8 years ago
Door will send something of this form to members area:
scans
is an array of objects, each object has the following keys:
date
: unix timestamp of when the scan occurredlocation
: where in the space the code was scanned (door, lathe, tuck-shop, etc){
"tags": {
"abcdefg": {
"assigned_user": "00003",
"count": 7,
"scans": [
{
"date": 123123123,
"location": "door"
},
{
"date": 123123456,
"location": "lathe"
}
]
},
"01234567": {
"assigned_user": "00003",
"count": 8,
"scans": [
{
"date": 123123123,
"location": "door"
}
]
},
"newnew12": {
"assigned_user": null,
"count": 1,
"sector_a_key_a": "a2V5IGEA",
"sector_a_key_b": "a2V5IGIA",
"sector_a_secret": "hoteEaISPm56KrcIX67fMWRWEm3GmZU=",
"sector_a_sector": 1,
"sector_b_key_a": "a2V5IGEA",
"sector_b_key_b": "a2V5IGIA",
"sector_b_secret": "fp6C+KijosMbvxMF9vo3cNS2c98oSGY=",
"sector_b_sector": 2
}
}
}
:tada:
closed by cf5dc4c
Due to roles, I will be be sending this format:
{ "tags": { "035a53b6": { "assigned_user": "00003", "count": 33, "scans": [ { "date": 1446162553, "location": "door", "result": "allowed" } ] }, "9b8785b5": { "assigned_user": "00000", "count": 4820, "scans": [ { "date": 1446162552, "location": "door", "result": "denied" } ] } } }
:+1:
And assigned_user tag