If You can't use our oAuth form in Your app - you can authorize to Wialon using previously created infinite token with request http://sdk.wialon.com/wiki/en/sidebar/r … ples/login
You can create such token for Your user manually by using our oAuth form:
where in client_id You can pass app name,
access_type -1 means full access,
activation_time 0 means token will be active at once,
duration 0 - means infinite token, it will exist forever, but it will be deleted after 100 days of inactivity (no logins).
Then as a result of successful authorization You can copy Your token from browsers query string: parameter access_token.
Now You can use this token in Your app:
As a result of this request You'll get json with parameter "eid". This is session id (sid) which You should pass to all further requests.
Some info about Wialon items. Item is common name for several classes (user, resource, unit, group, route, retranslator).
You need to use Unit - it's device (tracker, mobile).
More details about sending device's location in next post.
Head of Wialon Local Department