Items‎ > ‎

bluemelon.items.setLocation

adds or changes the item's location information 

Authentication:

Yes (see here for details)

Arguments:

(required) string : lat - the latitude - the valid range is from -90 to 90
(required) string : lng - the longitude - the valid range is from -180 to 180
(required) int : accuracy - the accuracy - a value in the range form 1 to 19 ;  the higher the number, the higher the accuracy
(required) long : itemid - the id of the item the location information of which is to be changed
(required) string : publickey - the public key of an application
(required) string : token - the access token

Request Example:

http://www.bluemelon.com/api/rest/{api_sing}/
?method=bluemelon.items.setLocation&itemid=44&accuracy=17&lat=23.333444&lng=13.214214&publickey={publickey}&token={token}

Response Example:

<rsp status="ok" onrequest="bluemelon.items.setLocation" />

Error Codes:

4 - "Missing parameter"
5 - "Invalid parameter"
11 - "Item not found"
14 - "Invalid accessToken"
16 - "Access token timed out.You must relogin."
17 - "Invalid call signature size"
18 - "Invalid call signature"
20 - "Missing api_sign"
31 - "Latitude value must be between -90 and 90"
32 - "Longitude value must be between -180 and 180"
33 - "Accuracy value must be between 0 and 19"
602 - "No read permissions"
603 - "Account recently expired or deleted"

Comments