0.1.1 • Published 7 years ago

destiny-api-client v0.1.1

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

A nodejs client for the Destiny API. Currently implements all public requests.

Getting started

Install the package.

  npm install --save destiny-api-client

Create a client with your applications api key and start making requests.

const DestinyApi = require('destiny-api-client');

let client = new DestinyApi('your-api-key');

client.searchPlayer({
    membershipType: DestinyApi.psn,
    displayName: 'strombane'
})
.then(response => console.log(response));

You can specify the host to use if you are using a proxy instead of accessing the bungie servers directly.

let client = new DestinyApi('your-api-key', 'https://your.proxyhost.com');

More documentation to come, for now read the docs and look at the tests to get started.

TODO

  • Add request types that require authentication
  • Add example requests and responses to the documentation