emmorts / lolapi Goto Github PK
View Code? Open in Web Editor NEWNodeJS wrapper of the official League of Legends public API with an integrated cache support.
License: GNU General Public License v2.0
NodeJS wrapper of the official League of Legends public API with an integrated cache support.
License: GNU General Public License v2.0
could not work please check :(
var options = {
rankedQueues: ['TEAM_BUILDER_DRAFT_RANKED_5x5', 'RANKED_SOLO_5X5', 'RANKED_TEAM_5X5'],
beginIndex: 0,
endIndex: 10
};
lolapi.MatchList.getBySummonerId(summonerId, options, function (error, matches) {
// got the matches!
console.log(matches);
});
Most time I got matches == null
But sometimes it works....
On your readme it says i can use an array of MatchIds to lookup the game data however i tried passing the array to the function but nothing happens:
lolapi.MatchList.getBySummonerId(summoner[reqName].id, options, function (error, matches) {
if (matches) {
var games = matches.matches;
var matchIds = [];
for (var i = 0; i < games.length; i++) {
matchIds.push(games[i].matchId);
}
for (var i = 0; i < matchIds.length; i++) {
lolapi.Match.get(matchIds, function (error, games) {
console.log(games);
});
}
}
});
I have a redis server through microsoft azure and was wondering how I would go about doing this... The hostname seems like it's not enough information for it to connect the the redis... Don't I need to include keys or something?
Hi, i am facing an issue with 2 functions to get data by team id :
I am getting a [Error: Param id must be an integer or an array of integers]
The fact is that a Team id is not an integer, here is an example of teamId :
Thanks in advance ! ;)
I have an application that retrieves my ranked match history. It is longer than 150 matches, so it is more than 10 pages. I am calling the pages sequentially, and it's usually fast enough that I'm hitting the 10 request per 10 second rate limit for test accounts. I'm creating my lol object using lol = require("lolapi")(config.apikey, "na")
and setting the rate limit lol.setRateLimit(9, 499);
to test to see if a lower limit would help, but I still get 429 rate limit errors occasionally.
I looked over the code and didn't see anything entirely obvious that would cause this, but wanted to bring it to your attention.
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.