Skip to content

Latest commit

 

History

History

.github

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

go-league

Go Report Card

Go client library for League of Legends (LOL) API

Documentation

Usage

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()

For more examples see Go doc

Authentication

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")

Contributing

Always welcome new PRs! See Contributing for further instructions.

Bugs and Feature Requests

Found something that doesn't seem right or have a feature request? Please open a new issue.