Function updateUserProfile
- update
User Profile(args): Promise<IUserProfile> Parameters
args: {
accessToken: string;
options?: {
custom_data?: string;
nickname?: string;
};
}access
Token: string userProfile access_token
Optional
options?: {
custom_data?: string;
nickname?: string;
}Optional
custom_data?: string Data saved to profile's custom_data property
Optional
nickname?: stringThe nickname to update the userProfile
Returns Promise<IUserProfile>
Async
Since
1.18.0
Example
const options = {nickname: 'New Nickname'}
updateUserProfile({accessToken, options}).then(profile => console.log(profile))
Generated using TypeDoc
Updates profile by accessToken with optional changed nickname or custom_data.