go-riot

module
v0.0.0-...-bbe0b4f Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2017 License: MIT

README

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.

Directories

Path Synopsis
Package lol is a Go client that wraps the Riot Games public API.
Package lol is a Go client that wraps the Riot Games public API.

Jump to

Keyboard shortcuts

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