Novices Plagiarizing Mozart
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

call-of-duty-api

1.0.11 • Public • Published

NPM

Call Of Duty API Wrapper

Call of Duty Api is a wrapper for the "private" API that Activision use on the callofduty.com website.

Initialize Module

const API = require('call-of-duty-api');

List of Platforms

  • psn
  • steam
  • xbl

Get Stats

    API.IWStats(<gamertag>, <platform>).then((output) => {
      console.log(output);  
    }).catch((err) => {
        console.log(err);
    });

Output

{
    title: 'iw',
    platform: 'platform',
    username: 'gamertag',
    mp:
    { lifetime: { all: [Object], mode: [Object] },
    weekly: null,
    level: 0,
    maxLevel: 0,
    levelXpRemainder: 0,
    levelXpGained: 0,
    prestige: 0,
    prestigeId: 0,
    maxPrestige: 0 },
    zombies:
    { lifetime: { all: [Object], mode: {} },
    weekly: { all: [Object], mode: {} } },
    engagement: { timePlayedAll: 440544, seasonPass: 1 } 
}

Keywords

none

install

npm i call-of-duty-api

Downloadsweekly downloads

46

version

1.0.11

license

ISC

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability