GithubHelp home page GithubHelp logo

riot's People

Contributors

carlngan avatar cnguy avatar glickbot avatar iamdb avatar jahidadam avatar kelwing avatar pixelrazor avatar thomasquinn avatar tyhi avatar yuhanfang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

riot's Issues

League API (entries method field of Masters/Challengers/Grandmasters(?))

https://na1.api.riotgames.com/lol/league/v4/masterleagues/by-queue/RANKED_SOLO_5x5

The league endpoints seem to no longer return playerOrTeamId or playerOrTeamName, only summonerId and summonerName.

masters, err := app.RiotAPI.GetMasterLeague(app.Context, region, queue.RankedSolo5x5)
 "entries": [
        {
            "summonerName": "qeqeqeqe",
            "hotStreak": false,
            "wins": 79,
            "veteran": false,
            "losses": 64,
            "rank": "I",
            "inactive": false,
            "freshBlood": true,
            "summonerId": "encryptedString",
            "leaguePoints": 12
        },
]

Not submitting a PR with this since my initial idea was to just change the field names, but that breaks backward compatibility (not painful at all though, easy name replaces). Submitted PR

Add esports stats APIs

Need to implement stats and stats timeline APIs for the esports API. This is a matter of figuring out the JSON schema and go-ifying it.

Flesh out esports API

The structs returned by the esports API don't currently include all of the JSON fields in the HTTP response. This is partly because the documentation is lacking, and partly because the current fields are enough to query for game data, which is more of the focus.

Contributions are welcome to add more missing fields.

Add region to API output structs

Region is not explicitly returned by the API, but it should be returned for convenience. Otherwise, the user often has to track the tuple (region, return value).

GetChampions only returns an empty Array

Hi,

using this test code.

champs, _ := riotClient.GetChampions(ctx, region.EUW1)
log.Println(champs)

where the riotClient has a valid API Key and a call like

summoner, err := riotClient.GetBySummonerName(ctx, region.EUW1, "Gibbs123") // My Account

returns a valid response, the GetChampions does in fact return &{[]} as log.println'd

Is this fixable?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.