API Migration Guide
  • Migration Guide
  • Installation and Initialization
  • What has been removed?
Powered by GitBook
On this page
  • Installation
  • Initialization
  • Modules

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

PreviousMigration GuideNextWhat has been removed?

Last updated 3 years ago