Last Updated on : 2022-03-02 03:46:39download
This topic describes how to get a token for login.
| Method | Version | Description |
|---|---|---|
| v2.0/pms/production/login/token/get | 2.0 | Get token For login. |

HTTP type
Post
Parameters
| Parameter | Type | Description | Optional? |
|---|---|---|---|
| username | String | The user name. | No |
Other parameters
None.
{
"username" : "xxxxxx"
}
| Name | Type | Description |
|---|---|---|
| result | Map | The result. |
| result.publicKey | String | The public key. |
| result.token | String | The token for login. |
| success | Boolean | Successful or not. |
Successful response
{
"result" : {
"publicKey" "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCkJGH8******4yb0QIDAQAB",
"token" : "f0494e89e576975058576bd76d352d34"
},
"success": true
}
Error response
{
"success": false,
"code": "THE_BLANK_PARAM",
"msg": "username cannot be null"
}
| Code | Description |
|---|---|
| THE_BLANK_PARAM | The parameter can not be empty. |
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback