@callofdutynetwork/node-api

1.0.3 • Public • Published

Call of Duty Network API Node

An NPM package for accessing the Call of Duty Network API through Node.JS.

Installation

npm i @callofdutynetwork/node-api

Usage

var CODNetworkAPI = require('@callofdutynetwork/node-api');
var api = new CODNetworkAPI("API TOKEN from https://callofduty.network");
 
// Platform, Game (currently only supports mw), Username
api.getProfile("psn", "mw", "username").then(body => {
    console.log(body.cod_data);
    console.log(body.retrieved_on);
}).catch(err => {
    console.log(err)
});

Readme

Keywords

none

Package Sidebar

Install

npm i @callofdutynetwork/node-api

Weekly Downloads

0

Version

1.0.3

License

ISC

Unpacked Size

2.54 kB

Total Files

3

Last publish

Collaborators

  • callofdutynetwork