destiny-api-client

0.1.1 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i destiny-api-client

Weekly Downloads

4

Version

0.1.1

License

MIT

Last publish

Collaborators

  • jasoma