PlayerNamesApi
Import
Import
Constructors
Constructor
-
Parameters
-
Optional configuration: Configuration
-
basePath: string = ...
-
axios: AxiosInstance = ...
Returns PlayerNamesApi
-
Methods
Get Name
-
Parameters
-
playerId: string
The player's ID.
-
Optional autoGenerate: boolean
-
Optional showMetadata: boolean
-
Optional options: AxiosRequestConfig<any>
Returns Promise<AxiosResponse<Player, any>>
-
Update Name
-
Update a player's name, or create it if it doesn't exist. White space is not allowed in the name, and a random numeric suffix will automatically be added to it.
Parameters
-
playerId: string
The player's ID.
-
updateNameRequest: UpdateNameRequest
-
Optional options: AxiosRequestConfig<any>
Returns Promise<AxiosResponse<Player, any>>
-
Get a player's name. The '/me' endpoint can be used to get the name of the calling player.
Get a player's name.
{RequiredError}
PlayerNamesApi