Documentation
¶
Index ¶
- Constants
- type AccountDTO
- type AccountEndpoint
- func (a *AccountEndpoint) ByAccessToken(accessToken string) (*AccountDTO, error)
- func (a *AccountEndpoint) ByID(gameName string, tagLine string) (*AccountDTO, error)
- func (a *AccountEndpoint) ByPUUID(PUUID string) (*AccountDTO, error)
- func (a *AccountEndpoint) PlayerActiveShard(PUUID string, game api.Game) (*ActiveShardDTO, error)
- type ActiveShardDTO
- type RiotClient
Constants ¶
View Source
const ( AccountActiveShardURL = "/riot/account/v1/active-shards/by-game/%s/by-puuid/%s" AccountByPUUIDURL = "/riot/account/v1/accounts/by-puuid/%s" AccountByRiotIDURL = "/riot/account/v1/accounts/by-riot-id/%s/%s" AccountByAccessTokenURL = "/riot/account/v1/accounts/me" )
Riot endpoints
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountDTO ¶
type AccountEndpoint ¶
type AccountEndpoint struct {
// contains filtered or unexported fields
}
func (*AccountEndpoint) ByAccessToken ¶
func (a *AccountEndpoint) ByAccessToken(accessToken string) (*AccountDTO, error)
Get account by access token.
func (*AccountEndpoint) ByID ¶
func (a *AccountEndpoint) ByID(gameName string, tagLine string) (*AccountDTO, error)
Get account by riot ID.
func (*AccountEndpoint) ByPUUID ¶
func (a *AccountEndpoint) ByPUUID(PUUID string) (*AccountDTO, error)
Get account by PUUID.
func (*AccountEndpoint) PlayerActiveShard ¶
func (a *AccountEndpoint) PlayerActiveShard(PUUID string, game api.Game) (*ActiveShardDTO, error)
Get active shard for a player.
type ActiveShardDTO ¶
type RiotClient ¶
type RiotClient struct {
Account *AccountEndpoint
// contains filtered or unexported fields
}
func NewRiotClient ¶
func NewRiotClient(client *internal.InternalClient) *RiotClient
Returns a new client using the API key provided.
Click to show internal directories.
Click to hide internal directories.