UserInfo
The user information.
Methods
| Property | Type | Description |
|---|---|---|
| avatarUrl | string | The URL to the user's profile photo. The last numeric value represents the size of a square profile photo. (The value can be 0, 46, 64, 96, or 132. The value 0 represents a 640x640 square profile photo, the value 46 indicates a 46x46 square profile photo, and so on. The default value is 132.) This parameter is left blank if a user has no profile photo. If the user changes the profile photo, the URL of the original profile photo will expire. |
| city | string | The user's city. |
| country | string | The user's country. |
| gender | 0 | 1 | 2 | The user's gender. |
| language | "en" | "zh_CN" | "zh_TW" | The language used to display the country, province, and city |
| nickName | string | The user's alias. |
| province | string | The user's province. |
Parameters
language
| Property | Type |
|---|---|
| en | "English" |
| zh_CN | "Simplified Chinese" |
| zh_TW | "Traditional Chinese" |
gender
| Property | Type |
|---|---|
| 0 | "Unknown" |
| 1 | "Male" |
| 2 | "Female" |