import { ModernWarfare, platforms } from "call-of-duty-api";
try {
let data = await ModernWarfare.combatHistory(gamertag: string, platform: platforms)
} catch(Error) {
//Handle Exception
}
import { Warzone, platforms } from "call-of-duty-api";
try {
let data = await Warzone.combatHistory(gamertag: string, platform: platforms)
} catch(Error) {
//Handle Exception
}