Login
Function
Login
URI
POST /koodrive/ose/v1/auth/login
Request Parameters
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| X-Traceid | No | String | Definition: Service trace ID, which contains 58 bits. Constraints: N/A Range: The value contains 58 bits. Default Value: N/A |
| x-hw-agentName | Yes | String | Definition: Agent name. Constraints: N/A Range: N/A Default Value: N/A |
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| account | Yes | String | Account name and mobile number. |
| authType | Yes | String | Verification type. 1: account and password. 2: verification code. |
| password | No | String | Password. |
| captchaToken | No | String | Token of the verification code. |
Response Parameters
Status code: 200
| Parameter | Type | Description |
|---|---|---|
| code | String | Error Codes |
| msg | String | Error description. |
| data | data object | Login struct. |
| Parameter | Type | Description |
|---|---|---|
| userInfo | UserInfo object | User information. |
| sessionInfo | SessionInfo object | Authentication information. |
Example Requests
POST /koodrive/ose/v1/auth/login
{
"account": "0027188460911",
"authType": "1",
"password": "123qweASD143",
} Example Responses
Status code: 200
Login response
{
"data" : {
"userInfo" : {
"userId" : "1882575898755117312",
"firstname" : "firstname",
"surname" : "surname",
"phone" : "0027188460911",
"email" : ""
},
"sessionInfo" : {
"accessToken" : "AT 3b911d723003f70a1265124148fdfe486c108b64bf8d0de3",
"expiresIn" : 1800,
"issuedAt" : "1772006999088",
"refreshToken" : "0e0e72d3c7e9e4444df6bc3fb111eaee18eb7b2393a939cb"
}
},
"code" : 0,
"msg" : "Success"
} Status Codes
| Status Code | Description |
|---|---|
| 200 | Login response |
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot