Desert Operations API
Esse simples wrapper para as APIs do Desert Operation ajuda você a conseguir alguns dados do jogo sem fazer um web scrap por si próprio.
Instalação
npm install desert-operations
Exemplos de uso
> INDEX.JS
const { DesertSession, DesertServer, DesertOperations } = require('desert-operations');
const { DesertPlayer } = require('desert-operations/client/new');
(async () => {
let session = new DesertSession('your-user-hash', 'your-land-id');
let server = new DesertServer('your-do-server');
let desertApi = new DesertOperations(session, server, 'your-world-id');
let firstfifty = await desertApi.FindUsersFromPointRanking(1, 50);
console.log(firstfifty);
let player = new DesertPlayer(firstfifty[0], session);
await player.load();
console.log(player.Json);
})();
Metadados
Muryllo Pimenta de Oliveira – muryllo.pimenta@upe.br
Distribuído sobre a licença MIT. Veja LICENSE
para mais informações.
Contribuição
- Fork it (https://github.com/MurylloEx/Desert-Operations-API/fork)
- Create your feature branch (
git checkout -b feature/fooBar
) - Commit your changes (
git commit -am 'Add some fooBar'
) - Push to the branch (
git push origin feature/fooBar
) - Create a new Pull Request