account

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 17, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Account

type Account struct {
	Puuid    string `json:"puuid"`
	GameName string `json:"gameName"`
	TagLine  string `json:"tagLine"`
}

Account contains information about a user account

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client pools all methods for endpoints of the League of Legends API.

func NewClient

func NewClient(base *internal.Client) *Client

NewClient returns a new instance of a League of Legends client.

func (*Client) GetByPUUID

func (ac *Client) GetByPUUID(puuid string) (*Account, error)

GetByPUUID returns the account matching the PUUID

func (*Client) GetByRiotID

func (ac *Client) GetByRiotID(gameName, tagLine string) (*Account, error)

GetByRiotID returns the account matching the riot id

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL