riot-lol-api | Small helper to handle Riot API rate limiting | REST library

 by   Neamar JavaScript Version: 4.3.4 License: MIT

kandi X-RAY | riot-lol-api Summary

kandi X-RAY | riot-lol-api Summary

riot-lol-api is a JavaScript library typically used in Web Services, REST applications. riot-lol-api has no bugs, it has no vulnerabilities, it has a Permissive License and it has low support. You can install using 'npm i riot-lol-api' or download it from GitHub, npm.

This module lets you query the Riot API for LeagueOfLegends data. You'll need a developer key from This module was developed for people that need to poll the Riot API with a very high throughput (with peaks above the standard production rate limit of 300 calls / second / region). If you don't need this kind of performance, you'll probably be better with other modules -- have a look at lol-js for instance :).
Support
    Quality
      Security
        License
          Reuse

            kandi-support Support

              riot-lol-api has a low active ecosystem.
              It has 27 star(s) with 11 fork(s). There are 5 watchers for this library.
              OutlinedDot
              It had no major release in the last 12 months.
              There are 1 open issues and 8 have been closed. On average issues are closed in 23 days. There are no pull requests.
              It has a neutral sentiment in the developer community.
              The latest version of riot-lol-api is 4.3.4

            kandi-Quality Quality

              riot-lol-api has no bugs reported.

            kandi-Security Security

              riot-lol-api has no vulnerabilities reported, and its dependent libraries have no vulnerabilities reported.

            kandi-License License

              riot-lol-api is licensed under the MIT License. This license is Permissive.
              Permissive licenses have the least restrictions, and you can use them in most projects.

            kandi-Reuse Reuse

              riot-lol-api releases are available to install and integrate.
              Deployable package is available in npm.
              Installation instructions are not available. Examples and code snippets are available.

            Top functions reviewed by kandi - BETA

            kandi's functional review helps you automatically verify the functionalities of the libraries and avoid rework.
            Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of riot-lol-api
            Get all kandi verified functions for this library.

            riot-lol-api Key Features

            No Key Features are available at this moment for riot-lol-api.

            riot-lol-api Examples and Code Snippets

            No Code Snippets are available at this moment for riot-lol-api.

            Community Discussions

            QUESTION

            How to use caching with the riot-lol-api npm package?
            Asked 2018-Nov-10 at 20:49

            QUESTION:

            After reading this:

            https://www.npmjs.com/package/riot-lol-api#caching

            I am still confused. This is my first time trying to cache api responses.

            For example, I do not know what values are available for YOUR_CACHE_STRATEGY and it is not explained in the docs.

            Essentially, I would be looking for an example, like how can I cache and serve for 5 min the response from /lol/summoner/v3/summoners/by-name/ ?

            CODE:

            ...

            ANSWER

            Answered 2018-Nov-10 at 20:49

            The documentation is not very detailed indeed. What you need to do is basically implement the cache object as specified in the code sample from the doc (the commented area).

            Below is an example of caching to an array (in memory). You could also save this array to a file or into a Redis database as suggested in the doc.

            Source https://stackoverflow.com/questions/53226995

            QUESTION

            How can I make multiple requests in a row using riot-lol-api?
            Asked 2018-Nov-05 at 11:06

            SITUATION:

            I had an existing codebase that used another library to make requests to the Riot API. Sadly, said library had some issues, so I decided to switch to this one:

            https://www.npmjs.com/package/riot-lol-api

            https://github.com/Neamar/riot-lol-api/blob/master/lib/index.js

            Only issue: this library does not seem to use Promises while the old one did and I have a hard time adapting my code to this new library.

            CODE:

            ...

            ANSWER

            Answered 2018-Nov-05 at 11:06

            When I wrote the library, promises were really slow. Using promises allowed me to send 700 requests per second per CPU, without promises I got to 1000 requests per seconds per CPU.

            If performance is not an issue in your case, you can transform the callback style functions to promises using this small wrapper:

            Source https://stackoverflow.com/questions/53152604

            Community Discussions, Code Snippets contain sources that include Stack Exchange Network

            Vulnerabilities

            No vulnerabilities reported

            Install riot-lol-api

            You can install using 'npm i riot-lol-api' or download it from GitHub, npm.

            Support

            For any new features, suggestions and bugs create an issue on GitHub. If you have any questions check and ask questions on community page Stack Overflow .
            Find more information at:

            Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items

            Find more libraries
            Install
          • npm

            npm i riot-lol-api

          • CLONE
          • HTTPS

            https://github.com/Neamar/riot-lol-api.git

          • CLI

            gh repo clone Neamar/riot-lol-api

          • sshUrl

            git@github.com:Neamar/riot-lol-api.git

          • Stay Updated

            Subscribe to our newsletter for trending solutions and developer bootcamps

            Agree to Sign up and Terms & Conditions

            Share this Page

            share link

            Explore Related Topics

            Consider Popular REST Libraries

            public-apis

            by public-apis

            json-server

            by typicode

            iptv

            by iptv-org

            fastapi

            by tiangolo

            beego

            by beego

            Try Top Libraries by Neamar

            KISS

            by NeamarJava

            document-highlighter

            by NeamarJavaScript

            heroku-self-ping

            by NeamarTypeScript

            featureless-job-queue

            by NeamarJavaScript

            auto-load

            by NeamarJavaScript