Last Updated on : 2022-03-02 03:46:44download
| Method | Version | Description |
|---|---|---|
| v2.0/pms/production/user/login | 2.0 | Login Cloud Intelligent Manufacturing Platform |

Method
Post
Parameters
| Name | Type | Description | Optional |
|---|---|---|---|
| username | String | user name | N |
| password | String | password after RSA encryption with publicKey obtained by /V2.0/pms/production/login/token/get |
N |
| token | String | token obtained by /V2.0/pms/production/login/token/get | N |
Other parameters
None
{
"username" : "test-user", "password":"k8wh2/B9Euiwjq6vmmXf3mSR1bv6YD+MjgIVT16VN*******q+fjSE+mwMGVt7JS8=",
"token" : "285effe7604bcd2353fbfbbc4dfaf531"
}
| Name | Type | Description |
|---|---|---|
| result | Map | result for result |
| result.accessToken | String | is used to replace access_token in HEADER |
| result.refreshToken | String | is used to refresh access_token via interface /v1.0/token/{{refresh_token}} |
| success | Boolean | succeed or not |
Note:
- password = RSA(password, publicKey)
- publicKey: got it from the result of
v2.0/pms/production/login/token/get.
Successful Response
{
"result" : {
"accessToken" :"82d96c95bf6622743579af8b270b798d",
"refreshToken" : "7918ddd52adcafdc485c28c7e3230576"
},
"success": true
}
Error response
{
"success": false,
"code": "THE_BLANK_PARAM",
"msg": "username cannot be null"
}
| Name | Description |
|---|---|
| THE_BLANK_PARAM | parameter can not be empty |
Is this page helpful?
YesFeedbackIs this page helpful?
YesFeedback