-
Notifications
You must be signed in to change notification settings - Fork 0
/
api.doc.txt
17 lines (15 loc) · 891 Bytes
/
api.doc.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
RESULTS: json_encode(array('error' => <error>, 'result' => <result>)) // error empty on success
!!! All commands except register and login need a valid sid submitted per POST
/register (name, email, pw) => ()
/login (name, pw) => array(uid, sid)
/get/locations => array(array(id, name, map, type_id, usercount))
/get/locations (type_id) => array(array(id, name, map, type_id, usercount))
/get/location (id) => array(id, name, map, type_id, usercount)
/get/location_types => array(array(id, name, usercount))
/get/users (location_id) => array(id, name, last_access, checked_in_at_time, pos_x, pos_y, status)
/get/user (id) => array(name, last_access, checked_in_at, checked_in_at_time, pos_x, pos_y, status)
/get/me => array(name, email, checked_in_at, checked_in_at_time, pos_x, pos_y, status)
/set/status (status) => ()
/checkin (location_id, posx, posy) => ()
/checkout => ()
/halt => ()