-
Notifications
You must be signed in to change notification settings - Fork 3
[SERVER] Requests
catherinettt edited this page May 27, 2012
·
34 revisions
[updatezone]: gets zone information and updates users location
- POST: http://wifi-location.appspot.com/request/updatezone
- BODY: {"user_id" : 1, "mac_address" : "00:1f:45:64:17:d1" }
- RESPONSE:
{
"status" : 0 "zone_id": 21,
"user_location": 21,
"last_update": "just now",
"user": "Alex",
"mac_address": "00:1f:45:64:17:d1",
"zone_name": "Galleria3_1"
}
- STATUS:
0: success (zone name & id returned, user location updated)
1: user not found
2: zone not found (mac_address unknown)
[send friendship request] : sends the server a friendship request
-
BODY: {"user_id" : 1, "friend_id" : 2 }
-
RESPONSE:
{
"status" : 0
"request_id": 33
} -
STATUS:
0: success (friendship request registered)
1: user not found
2: friend not found
3: duplication (request already existed)
4: user_id equals friend_id (user can't add him/herself)