Skip to content

jasoma/destiny-api

Repository files navigation

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

Releases

No releases published

Packages

No packages published