Skip to content

p-ob/go-riot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

71 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-riot Build Status GoDoc

go-riot is a Riot Games API client for Go.

Install

go get github.com/p-ob/go-riot/lol

Example usage:

// 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}

Resources mapped:

Disclaimer

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.

About

Riot Games API Client for Go

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published