Skip to content

Latest commit

 

History

History
33 lines (23 loc) · 740 Bytes

README.md

File metadata and controls

33 lines (23 loc) · 740 Bytes

Pyke for API RiotGames

Dependencies Discord server

npm

npm i --save pyke

Example

const {Pyke, Regions, DDragon} = require('pyke');
const api = new Pyke('Your api Key');

var region = "euw";
var regionsId = Regions[region]; // => euw1

api.summoner.getBySummonerName("SP Jason", regionsId)
  .then(data =>{
    return console.log(data);
  })
  .catch(error =>{
    return console.error(error)
  });