# riotapi-int

> NodeJS integration for RiotAPI

Latest version **1.0.5** (published 2018-12-23) · MIT license · 0 weekly downloads

## Install

```sh
npm install riotapi-int
pnpm add riotapi-int
yarn add riotapi-int
bun add riotapi-int
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.5 |
| Published | 2018-12-23 |
| First published | 2018-12-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 37 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | ofelipedidio |
| Maintainers | ofelipedidio |
| Keywords | riot, api, riotapi, league, of, legends |

## Links

- npm: https://www.npmjs.com/package/riotapi-int
- Repository: https://github.com/ofelipedidio/RiotAPI
- Homepage: https://github.com/ofelipedidio/RiotAPI#readme
- Issues: https://github.com/ofelipedidio/RiotAPI/issues
- npm.io page: https://npm.io/package/riotapi-int

## Recent versions

- 1.0.5 (latest) — 2018-12-23
- 1.0.4 — 2018-12-23
- 1.0.3 — 2018-12-23
- 1.0.2 — 2018-12-23
- 1.0.1 — 2018-12-23
- 1.0.0 — 2018-12-23

## README

# RiotAPI

## Simple example

```javascript
const RiotAPI = require("riotapi-int");

const api = new RiotAPI("api-key-here", { region: RiotAPI.REGION.korea });

api.getSummonerV4ByName("Hide on bush", (data, error) => {
  if (error) {
    // Handle error ...
    return;
  }

  // handler response ...
});
```

## Documentation

### Champion Mastery V4

```javascript
api.getChamptionMasteryListV4BySummonerId(id, (data, error) => {
  if (error) {
    // Handle error ...
    return;
  }

  // handler response ...
});
```

Returns **ChampionMasteryV4**


```javascript
api.getChamptionMasteryV4BySummonerIdByChampionId(summonerId, championId, (data, error) => {
    if (error) {
    // Handle error ...
      return;
    }

  // handler response ...
  }
);
```

Returns **ChampionMasteryV4**


```javascript
api.getChamptionMasteryV4ScoreBySummonerId(id, (data, error) => {
  if (error) {
    // Handle error ...
    return;
  }

  // handler response ...
});
```

Returns **Number**

---
_Source: https://npm.io/package/riotapi-int · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
