Obtaining a Login Token
Function
This API is used to obtain a login token.
Function Prototype
getLoginToken(onGetLoginTokenResult?: (ret: SDKERR, reason: string, loginTokenInfo: LoginTokenInfo) => void): voidgetLoginToken(onGetLoginTokenResult?: (ret: SDKERR, reason: string, loginTokenInfo: LoginTokenInfo) => void): void
Request Parameters
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| onGetLoginTokenResult | Yes | (ret: SDKERR, reason: string, loginTokenInfo: LoginTokenInfo) => void | Callback of the API for obtaining a login token. |
Return Values
void
Callback Method Parameters
(ret: SDKERR, reason: string, loginTokenInfo: LoginTokenInfo) => void
| Parameter | Type | Description |
|---|---|---|
| ret | For details about SDKERR, see Error Code Reference. | Error code. |
| reason | string | Error description. |
| loginTokenInfo | LoginTokenInfo | Login token information. |
| Parameter | Type | Description |
|---|---|---|
| loginToken | string | Login token. |
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