A wrapper around the League Of Legends API written in Go.
go get github.com/Djipyy/GoLolApi
package main
import (
"fmt"
gololapi "github.com/Djipyy/GoLolApi"
)
func main() {
api := gololapi.NewAPI(gololapi.EUW, "YOUR_API_KEY", 0.8) //0.8 is the rate limit for the developpement key, you should change it if you have a production key
summ := api.GetSummonerByID(71248364)
fmt.Printf("His summoner name is %s", summ.Name)
fmt.Println(api.GetFeaturedGames()) //This will return the current featured games of the region
}
This project is licensed under the MIT License - see the LICENSE.md file for details