rogap / hi-rez-api

Hi-rez API for paladins and smite

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

hi-rez-api

Hi-rez API for paladins and smite on Node js

Installation

$ npm install https://github.com/rogap/hi-rez-api

Quick Example

We take the name of the methods here

const { Hirez } = require('hi-rez-api')
const hi = new Hirez(devId, authKey) // for paladins

/**
 * where mutu is name to search
 */
hi.ex('searchplayers', 'mutu')
.then(response => {
    console.log(response) // [{..}, {..}]
})

/**
 * where 3368378 is the player's id
 * 1 is lang
 */
hi.ex('getplayerloadouts', '3368378', 1)
.then(response => {
    console.log(response) // [{..}, {..}]
})

hi.ex('getdataused')
.then(response => {
    console.log(response) // [{..}]
})

About

Hi-rez API for paladins and smite

License:MIT License


Languages

Language:JavaScript 100.0%