Skip to main content
Version: 3.x

Taro.getOpenUserInfo()

This interface allows you to obtain basic information about your Alipay members (avatar image address, nickname, gender, country code, province and city), see details.To obtain the Alipay member ID (user_id), please call my.getAuthCode and alipay.system.oauth.token interfaces.

Reference

Type

() => Promise<string>

Parameters

API Support

APIWeChat Mini-ProgramAlipay Mini-ProgramH5React Native
Taro.getOpenUserInfo✔️