OpenSDK  V4.2.0
Functions
Intermediate page

Functions

OPENSDK_API void CALLBACK OpenSDK_SetLoginParams (LoginParamKey iKey, const char *szValue)
 Set the login incoming parameters. More...
 
OPENSDK_API const char *CALLBACK OpenSDK_GetLoginResponseParams (LoginParamKey iKey)
 Get the login parameters after logging in. More...
 
OPENSDK_API void CALLBACK OpenSDK_Logout ()
 Logout, match with the OpenSDK_Mid_Login API. More...
 
OPENSDK_API int CALLBACK OpenSDK_Mid_Login (char **szAccessToken, int *iAccessTokenLen)
 Login API. More...
 
OPENSDK_API int CALLBACK OpenSDK_Mid_Device_Add (const char *szAccessToken)
 Add device. More...
 
OPENSDK_API int CALLBACK OpenSDK_Mid_Device_Oper (const char *szAccessToken, const char *szDeviceId)
 Operate device. More...
 

Detailed Description

Function Documentation

OPENSDK_API const char* CALLBACK OpenSDK_GetLoginResponseParams ( LoginParamKey  iKey)

Get the login parameters after logging in.

Parameters
[in]iKeyInput type, LOGIN_AREADOMAIN or LOGIN_TOKEN_EXPIRETIME
[in]szValueKey corresponds to the parameter parameter content
See also
After OpenSDK_Mid_Login
OPENSDK_API void CALLBACK OpenSDK_Logout ( )

Logout, match with the OpenSDK_Mid_Login API.

See also
OpenSDK_Mid_Login之后调用
OPENSDK_API int CALLBACK OpenSDK_Mid_Device_Add ( const char *  szAccessToken)

Add device.

Parameters
[in]szAccessTokenVerification Token
Returns
Return 0 on success, non-0 on failure
OPENSDK_API int CALLBACK OpenSDK_Mid_Device_Oper ( const char *  szAccessToken,
const char *  szDeviceId 
)

Operate device.

Parameters
[in]szAccessTokenVerification Token
[in]szDeviceIdDevice ID
Returns
Return 0 on success, -1 on failure
OPENSDK_API int CALLBACK OpenSDK_Mid_Login ( char **  szAccessToken,
int *  iAccessTokenLen 
)

Login API.

Parameters
[out]szAccessTokenVerification Token
[out]iAccessTokenLenLength of verification Token
Returns
Return 0 on success, -1 on failure
See also
OpenSDK_Data_Free() is used to release the memory applied by szAccessToken
OPENSDK_API void CALLBACK OpenSDK_SetLoginParams ( LoginParamKey  iKey,
const char *  szValue 
)

Set the login incoming parameters.

Parameters
[in]iKeyInput type, LOGIN_AREAID or LOGIN_VER
[in]szValueKey corresponds to the parameter parameter content
See also
Before OpenSDK_Mid_Login