go get github.com/ClownChu/riotapi
import (
riotApi "github.com/ClownChu/riotapi/client"
)
apiKey := `RGAPI-f90d223b-9f91-48d0-b9e2-2ff146c6b7e4`
testClient, _ := riotApi.NewRiotApiClient(apiKey, `NA1`)
summonerApi := summoner.NewSummonerApi(testClient)
summonerData, _ := summonerApi.ByName("ClownChu")
- SUMMONER-V4 - [Get summoners information]summoner-api
Riot Games has restrictions for API usage. read more here
You will need to set the environment variable RIOTAPI_KEY
to you Riot Developer API Key in order to run tests
with go test ./test/...
. You can obtain your API Key from Riot at Riot's Developer Website.
As mentioned above, the tests specify a rate limiter using the developer limits API rate limits.