Skip to main content
Request access to the user’s basic profile information. This API must be triggered by a button tap — it cannot be called directly on page load.
This API requires the user to tap a <button> component with open-type="getAuthorize" and scope="userInfo". Calling it outside of that interaction will fail. To obtain the userId specifically, use my.getAuthCode instead.

Parameters

my.getOpenUserInfo sends a network request to the server to obtain the user information, so the callback may take some time to be invoked.

Button Properties

Success Callback

User Information Fields

Fields of the parsed response object. All fields return an empty string if the value is unavailable.

Result Codes

Response Examples

Code Example