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

Success Callback

All fields return an empty string if the value is unavailable.

Result Codes

Code Example