UserApi - object-oriented interface

UserApi

Hierarchy

  • BaseAPI
    • UserApi

Constructors

Properties

axios: AxiosInstance = globalAxios
basePath: string = BASE_PATH
configuration: undefined | Configuration

Methods

  • Unset the selected domain for the user, this will clear the domain cookie. On the next request, the backend will set this again.

    Parameters

    • Optionaloptions: RawAxiosRequestConfig

      Override http request option.

    Returns Promise<AxiosResponse<void, any>>

    Unset the selected domain for the user

    UserApi

  • Link your player profile to Takaro, allowing web access for things like shop and stats. To get the code, use the /link command in the game.

    Parameters

    • OptionallinkPlayerUnauthedInputDTO: LinkPlayerUnauthedInputDTO

      LinkPlayerUnauthedInputDTO

    • Optionaloptions: RawAxiosRequestConfig

      Override http request option.

    Returns Promise<AxiosResponse<void, any>>

    Link player profile

    UserApi

  • Get the current user and the domains that the user has access to. Note that you can only make requests in the scope of a single domain. In order to switch the domain, you need to use the domain selection endpoints

    Parameters

    • Optionaloptions: RawAxiosRequestConfig

      Override http request option.

    Returns Promise<AxiosResponse<MeOutoutDTOAPI, any>>

    Get the current logged in user

    UserApi

  • One user can have multiple domains, this endpoint is a helper to set the selected domain for the user

    Parameters

    • domainId: string
    • Optionaloptions: RawAxiosRequestConfig

      Override http request option.

    Returns Promise<AxiosResponse<void, any>>

    Set the selected domain for the user

    UserApi