Function updateUserProfile

  • Updates profile by accessToken with optional changed nickname or custom_data.

    Parameters

    • args: {
          accessToken: string;
          options?: {
              custom_data?: string;
              nickname?: string;
          };
      }
      • accessToken: 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?: string

          The nickname to update the userProfile

    Returns Promise<IUserProfile>

    Async

    Since

    0.1.0

    Example

    const options = {nickname: 'New Nickname'}
    updateUserProfile({accessToken, options}).then(profile => console.log(profile))

Generated using TypeDoc