Create a Plant browsing account
Parameter | Description | Required |
---|---|---|
action | addPlantBrowser | True |
usr | Account name to register | True |
pwd | Password, a hexadecimal lowercase string encrypted by RC4 (SECRET, SHA-1 (PWD)) | True |
mobile | moblie phone | False |
False | ||
desc | Description | False |
rid | Role | False |
enable | Account status | False |
pid | Plant id to be assigned, multiple separated by ',' | False |
response: No text
{
"err":0,
"desc":"ERR_NONE"
}
Possible errors:
Response error code | Description | Details |
---|---|---|
0x0006 | ERR_FAIL | Fail |
0x0006 | ERR_FORMAT_ERROR | Format error |
0x0007 | ERR_MISSING_PARAMETER | Missing necessary parameters |
0x0010 | ERR_PASSWORD_VERIF_FAIL | Password verification failed |
0x0018 | ERR_USR_NAME_DUPLICATE | Repeat of user name |