Classes
Methods
# getInstances(token) → {Array.<UserService~Instance>}
Service to get the instances for a user
Parameters:
| Name | Type | Description |
|---|---|---|
token |
string
|
user token |
Instances array
Array.<UserService~Instance>
# getUserInfo(username, password, applicationopt) → {UserService~UserInfo}
Service to get user info for a username and password This also return the instance list for this user
Parameters:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
username |
string
|
|||
password |
string
|
|||
application |
string
|
<optional> |
map-control | application to ask access |
UserInfo
Type Definitions
Object
# Instance
Object with the instance data received by the api
Properties:
| Name | Type | Description |
|---|---|---|
id |
string
|
identifier for instance |
name |
string
|
name for the instance |
Object
# UserInfo
Object with the user data received by the api
Properties:
| Name | Type | Description |
|---|---|---|
username |
string
|
Triggered after the map is moved. |
token |
string
|
key to initialize and authorize this user |
instances |
Array.<UserService~Instance>
|
list of UserService~Instance allowed for this user |