Call the API to obtain the authorization code (authCode). The authorization code can be used to obtain access token, so as to easily obtain the app user userId, nickname, etc.
For more information, refer to the user authorization.
The scope of authorization, including:
(auth_base is silent authorization)
Callback function upon call success.
Callback function upon call failure.
Callback function upon call completion (to be executed upon either call success or failure).
Authorized to obtain the unique user ID.
Authorized to obtain user information.
auth_baseare used to silently obtain user ID, silent authorization does not pop the frame and directly obtains user information. All the other scopes are used for proactive user authorization.
auth_userare legacy scopes and not recommended to be used.
The incoming parameter is of the Object type with the following attributes:
The scope that failed to grant authorization, key is the scope and value is the error.
The scope that succeed to grant authorization.