> For the complete documentation index, see [llms.txt](https://migration.codapi.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://migration.codapi.dev/installation-and-initialization.md).

# Installation and Initialization

### Installation

```bash
npm install call-of-duty-api@latest
```

### Initialization

```typescript
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
