@callofdutynetwork/node-api
An NPM package for accessing the Call of Duty Network API through Node.JS.
Last updated 6 months ago by callofdutynetwork .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @callofdutynetwork/node-api 
SYNC missed versions from official npm registry.

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)
});

Current Tags

  • 1.0.3                                ...           latest (6 months ago)

4 Versions

  • 1.0.3                                ...           6 months ago
  • 1.0.2                                ...           6 months ago
  • 1.0.1                                ...           6 months ago
  • 1.0.0                                ...           6 months ago
Maintainers (1)
Downloads
Today 4
This Week 4
This Month 4
Last Day 0
Last Week 0
Last Month 4
Dependencies (1)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |