trucky-services-client
Trucky APP REST API client
Installation
npm install trucky-services-client --save
Tests
npm install
npm test
> trucky-services-client@0.0.3 test D:\Progetti\trucky-services-client
> node test.js
{ response:
{ totalPlayers: 4463,
servers:
[ [Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object] ] } }
{ response:
{ pois:
[ [Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
[Object],
... 2434 more items ] } }
{ response:
{ steamID: '76561198053883782',
found: true,
playerInfo:
{ steamid: '76561198053883782',
communityvisibilitystate: 3,
profilestate: 1,
personaname: 'dowmeister',
lastlogoff: 1506118432,
profileurl: 'http://steamcommunity.com/id/dowmeister/',
avatar: 'https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/fe/fef49e7fa7e1997310d705b2a6158ff8dc1cdfeb.jpg',
avatarmedium: 'https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/fe/fef49e7fa7e1997310d705b2a6158ff8dc1cdfeb_medium.jpg',
avatarfull: 'https://steamcdn-a.akamaihd.net/steamcommunity/public/images/avatars/fe/fef49e7fa7e1997310d705b2a6158ff8dc1cdfeb_full.jpg',
personastate: 1,
realname: 'Francesco',
primaryclanid: '103582791429521408',
timecreated: 1322994575,
personastateflags: 0,
loccountrycode: 'IT',
locstatecode: '09',
loccityid: 24918 } } }
Dependencies
- node-fetch: A light-weight module that brings window.fetch to node.js and io.js
Dev Dependencies
None
License
ISC