UserApi - object-oriented interface

UserApi

Hierarchy

  • BaseAPI
    • UserApi

Constructors

  • Parameters

    • Optionalconfiguration: Configuration
    • basePath: string = BASE_PATH
    • axios: AxiosInstance = globalAxios

    Returns UserApi

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.
    OperationId: UserControllerDeleteSelectedDomainCookie

    Parameters

    • Optionaloptions: RawAxiosRequestConfig

      Override http request option.

    Returns Promise<AxiosResponse<void>>

    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.
    OperationId: UserControllerLinkPlayerProfile

    Parameters

    • OptionallinkPlayerUnauthedInputDTO: LinkPlayerUnauthedInputDTO

      LinkPlayerUnauthedInputDTO

    • Optionaloptions: RawAxiosRequestConfig

      Override http request option.

    Returns Promise<AxiosResponse<void>>

    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
    OperationId: UserControllerMe

    Parameters

    • Optionaloptions: RawAxiosRequestConfig

      Override http request option.

    Returns Promise<AxiosResponse<MeOutoutDTOAPI>>

    UserApi

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

    Parameters

    • domainId: string
    • Optionaloptions: RawAxiosRequestConfig

      Override http request option.

    Returns Promise<AxiosResponse<void>>

    UserApi