Hi-rez API for paladins and smite on Node js
$ npm install https://github.com/rogap/hi-rez-api
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) // [{..}]
})