Skip to content

Go client library for League of Legends (LOL) API

Notifications You must be signed in to change notification settings

kneal/go-league

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Go client library for League of Legends (LOL) API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published