yuhanfang / riot Goto Github PK
View Code? Open in Web Editor NEWRiot API and analytics goodies
License: Apache License 2.0
Riot API and analytics goodies
License: Apache License 2.0
Use the MarshalJSON / UnmarshalJSON interface. Example here:
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
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.
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.
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).
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?
Waiting for official docs to update (probably after preseason), and for new static data endpoints
Migrate from dep to go modules (vgo).
Go modules are built right into go and is extremely easy to use.
see pr #36
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.