go-riot is a Riot Games API client for Go.
go get github.com/p-ob/go-riot/lol
// Initiate a lol.Client with your API key, and the region to query against
client := lol.NewClient(apiKey, lol.Na, httpClient)
ctx := context.Background()
// Drunk7Irishman's summoner id
summonerID := int64(25886496)
// get Drunk7Irishman
s, _ := client.Summoner.Get(ctx, summonerID)
// print Drunk7Irishman
thisSummoner := (*s)[summonerID]
fmt.Printf("Summoner:\n%+v\n", thisSummoner)
// OUTPUT:
// >> Summoner:
// {ID:25886496 Name:Drunk7Irishman ProfileIconID:744 SummonerLevel:30 RevisionDate:1482381110000}
- Champion v1.2
- ChampionMastery v1.0
- CurrentGame v1.0
- FeaturedGames v1.0
- Game v1.3
- League v2.5
- Match v2.2
- MatchList v2.2
- StaticData v1.2
- Stats v1.3
- Status v1.0
- Summoner v1.4
go-riot isn't endorsed by Riot Games and doesn't reflect the views or opinions of Riot Games or anyone officially involved in producing or managing League of Legends. League of Legends and Riot Games are trademarks or registered trademarks of Riot Games, Inc. League of Legends © Riot Games, Inc.