Go client library for League of Legends (LOL) API
import "github.com/kneal/go-league/league"
Construct a new League client, then use the various services on the client to access different parts of the LOL API. For example:
client, _ := league.NewClient("league.url.com", nil)
// list champion rotations, including free-to-play and low-level free-to-play rotations
champions, _, err := client.Champion.GetAll()
The league
package allows you to pass an API Key for authenticating to LOL.
Example using API Key:
client, _ := league.NewClient("league.url.com", nil)
client.Authentication.SetTokenAuth("token")
Always welcome new PRs! See Contributing for further instructions.
Found something that doesn't seem right or have a feature request? Please open a new issue.