Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "scripts/updateUserProfile"

Index

Functions

Const updateProfile

  • deprecated

    since version 1.18.0

    Parameters

    • args: any

    Returns Promise<IUserProfile>

Const updateUserProfile

  • updateUserProfile(args: { accessToken: string; options?: { nickname: string } }): Promise<IUserProfile>
  • updateUserProfile Gets userProfile from accessToken. Returns Promise that resolve userProfile.

    async
    throws

    {Error}

    since

    1.18.0

    example
    const options = {nickname: 'New Nickname'}
    const accessToken = 'c1f6082c-f7b9-4d1e-b64e-9071a3860ffc'
    updateUserProfile({accessToken, options}).then(profile => console.log(profile))

    Parameters

    • args: { accessToken: string; options?: { nickname: string } }
      • accessToken: string

        userProfile access_token

      • Optional options?: { nickname: string }
        • nickname: string

          The nickname to update the userProfile

    Returns Promise<IUserProfile>

    User profile object

Generated using TypeDoc