1) Load the web form http://hosting.wialon.com/login.html
2) Enter your user login and password, press "login" If authorisation was ok, in the web address field you will get the response with the token like http://hosting.wialon.com/login.html?access_token=5bbfe4a4ad20f61f466ae093aeb811d3BB4432702CE8BC771547D35F32E0A0E64FAE40B6&svc_error=0
3) Copy the 72 character value after access_token from the URL access_token=5bbfe4a4ad20f61f466ae093aeb811d3BB4432702CE8BC771547D35F32E0A0E64FAE40B6- this will be your token
4) With token, you will be able to login with the following query.
https://hst-api.wialon.com/wialon/ajax.html?svc=token/login¶ms={"token":"5bbfe4a4ad20f61f466ae093aeb811d3BB4432702CE8BC771547D35F32E0A0E64FAE40B6"}
This will yield several parameters. Copy the value in eid.
For all subsequent queries you will use the eid from the login response as the sid (Session Id)
For example In order to search for all units you will perform the following query
https://hst-api.wialon.com/wialon/ajax.html?svc=core/search_items¶ms={"spec": {
"itemsType": "avl_unit",
"propName": "sys_name",
"propValueMask": "*",
"sortType": "sys_name"
},
"force": 1,
"flags": "1",
"from": 0,
"to": 0
}&sid=0416be7911e7a2cedd6bba0ae68e9c4e
Good luck
Nishad Hussain Kaippally
Implementation Specialist, Middle East, Gurtam
"Computer science is no more about computers than astronomy is about telescopes."