Options
All
  • Public
  • Public/Protected
  • All
Menu

Module "scripts/fetchUserProfile"

Index

Functions

Const fetchUserProfile

  • fetchUserProfile(args: { accessToken: string }): Promise<IUserProfile>
  • Gets userProfile from accessToken. Returns Promise that resolve userProfile.

    async
    throws

    {Error}

    since

    1.18.0

    example
    fetchUserProfile({accessToken: 'c1f6082c-f7b9-4d1e-b64e-9071a3860ffc'}).then(profile => console.log(profile))

    Parameters

    • args: { accessToken: string }
      • accessToken: string

        userProfile access_token

    Returns Promise<IUserProfile>

    User profile object

Const getProfile

  • deprecated

    since version 1.18.0

    Parameters

    • args: any

    Returns Promise<IUserProfile>

Generated using TypeDoc