GeTS API » History » Revision 9
« Previous |
Revision 9/13
(diff)
| Next »
Никита Давыдовский, 11/22/2013 06:14 PM
GeTS API¶
API based on HTTP protocol and YMapsML language.
- Table of contents
- GeTS API
Points¶
Add point¶
Adds one or several points into database.
Request should be http://kappa.cs.karelia.ru/~davydovs/gets/addPoints.php
Request:
<request token="%token%" isPublic="%true/false%" channel="%channel%"> <point> <!-- points in Yandex format --> </point> <request>Params:
- token - user's token (see function login)
- true/false - true if point should be in public space, otherwise - false
- channel - the name of user's channel or name of category channel
- list of points
Response:
<response> %message% %error% <response>
Remove point¶
Load points¶
Loads points for circle defined by given radius, latitude and longitude.
Request should be http://kappa.cs.karelia.ru/~davydovs/gets/loadPoints.php
Request:
<request token="%token%" isPublic="%true/false%" radius="%radius%" latitude="%latitude%" longitude="%longitude%"> <request>
Response:
<response status="%status_code%"> <!-- list of points in Yandex format --> <response>
Update point¶
Tracks¶
Add track¶
Load track¶
Update track's info¶
Remove track¶
Category¶
addCategory¶
getCategory¶
Users¶
Registration¶
Authorization¶
Authorize user with given login and password.
In response service will send auth token.
Request should be GETS_SERVICE_URL/login.php
Request:
<request> <params> <login>...</login> <password>...</password> </params> </request>
login - login name string
password - password string
Response:
<response> <status>...
<message>...</message>
</status>
<content>
<auth_token>...</auth_token>
</content>
</response>
auth_token - token which will be used in further GeTS transactions
Quit session¶
Remove user¶
Updated by Никита Давыдовский almost 11 years ago · 9 revisions