-
Notifications
You must be signed in to change notification settings - Fork 9
Authentication
Zijun Chen edited this page Mar 26, 2019
·
2 revisions
Required Parameters
| Parameter | Type | Optional | Data Type | Description |
|---|---|---|---|---|
| WS-User-Token | Header | - | String | user token from log_in |
Possible Error Codes
| Error Code | Description |
|---|---|
| -1 | Authorisation error |
Failure Example
{
"code": -1,
"msg": "Authorization error",
"detail": "Failed to parse the token"
}Required Parameters
| Parameter | Type | Optional | Data Type | Description |
|---|---|---|---|---|
| sid | Query String | - | String | a unique id of the slave |
| WS-Slave-Key | Header | - | String | slave key |
Example of calling v1/slave/init
v1/slave/init?sid=slave001
Possible Error Codes
| Error Code | Description |
|---|---|
| -1 | Authorisation error |
Failure Example
{
"code": -1,
"msg": "Authorization error",
}