Тема: JS API: Get User Information
hello developers... how i can get user information with wialon.get.User ? for example i need get user id or user permissions or user costum fields all what i can get. thanks.
Вы не вошли. Пожалуйста, войдите или зарегистрируйтесь.
hello developers... how i can get user information with wialon.get.User ? for example i need get user id or user permissions or user costum fields all what i can get. thanks.
All the methods and properties of user you can find here: http://docs.gurtam.com/api/hosting/#wialon.item.Item and here: http://docs.gurtam.com/api/hosting/#wialon.item.User or you can simply watch it in your console:
var users = wialon.core.Session.getInstance().getItems("user");
if(users[0])
console.log(users[0]);