-
Notifications
You must be signed in to change notification settings - Fork 1
Doc edit
duetosymmetry edited this page Jan 26, 2012
·
1 revision
Make a GET or POST request to: http://leostein.scripts.mit.edu/StudyBeacon/edit.py (Sidenote: will probably want to use POST since Details text is long)
With parameters:
- BeaconId -- (Required) positive decimal integer
- DeviceId -- (Required) positive HEX integer which is a unique device identifier. This is hex because ANDROID_ID is already a string hex integer.
- LatE6 -- (Optional) E6 integer between -80000000 and +80000000
- LonE6 -- (Optional) E6 integer between -180000000 and +180000000
- Duration -- (optional) positive integer number of minutes. Default: 460. Maximum: 3660.
- Details -- (optional) string
- WorkingOn -- (optional) string
- Telephone -- (optional) string
- Email -- (optional) string
There must be an entry in the table devices with DeviceId,BeaconId matching this one in order to edit.
On success, the script returns the one edited row as a JSONObject.