Skip to content

Instantly share code, notes, and snippets.

@camreon
Created September 17, 2021 00:26
Show Gist options
  • Save camreon/c0809dfa26dcd79dcd028b9fecd25410 to your computer and use it in GitHub Desktop.
Save camreon/c0809dfa26dcd79dcd028b9fecd25410 to your computer and use it in GitHub Desktop.
Response data from CallOfDutyAPI.Profile() in the '@callofduty/api' npm package (https://my.callofduty.com/api/papi-client/stats/cod/v1/title/mw/platform/battle/gamer/Cam%231587/profile/type/wz)
{
title: 'mw',
platform: 'battle',
username: 'Cam#1587',
type: 'wz',
level: 4,
maxLevel: 0,
levelXpRemainder: 46,
levelXpGained: 3954,
prestige: 0,
prestigeId: 0,
maxPrestige: 0,
totalXp: 18507,
paragonRank: 0,
paragonId: 0,
s: 0,
p: 0,
lifetime: {
all: { properties: [Object] },
mode: {
gun: [Object],
dom: [Object],
war: [Object],
hq: [Object],
hc_dom: [Object],
hc_conf: [Object],
koth: [Object],
conf: [Object],
hc_hq: [Object],
arena: [Object],
br_dmz: [Object],
br: [Object],
sd: [Object],
grnd: [Object],
cyber: [Object],
hc_war: [Object],
br_all: [Object],
hc_sd: [Object],
arm: [Object],
hc_cyber: [Object],
infect: [Object]
},
map: {},
itemData: {
weapon_assault_rifle: [Object],
weapon_shotgun: [Object],
weapon_marksman: [Object],
weapon_sniper: [Object],
tacticals: [Object],
lethals: [Object],
weapon_lmg: [Object],
weapon_launcher: [Object],
supers: [Object],
weapon_pistol: [Object],
weapon_other: [Object],
weapon_smg: [Object],
weapon_melee: [Object]
},
scorestreakData: {
lethalScorestreakData: [Object],
supportScorestreakData: [Object]
},
accoladeData: { properties: [Object] }
},
weekly: { all: { properties: null }, mode: {}, map: {} },
engagement: null
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment