Installation and Initialization

Installation

npm install call-of-duty-api@latest

Initialization

import { login } from "call-of-duty-api";
login(ssoToken: string);
// or alternatively
import API from "call-of-duty-api";
API.login(ssoToken: string);

Modules

Each part of the API has been split into modules and can be used separately. For example, the "Me" module contains functions that will only work for the logged in user.

List of Modules

  • login

  • platforms

  • ModernWarfare

  • Warzone

  • ColdWar

  • Vanguard

  • Store

  • Me

  • Misc

Last updated