Ive been trying to put a command using the call of duty API for my real time stats in nightbot. Here is the link of the public API:
https://my.callofduty.com/api/papi-client/stats/cod/v1/title/mw/platform/psn/…
Here is the command i used but its not filling in the stats:
$(eval a=JSON.parse(decodeURIComponent($(querystring $(urlfetch json https://my.callofduty.com/api/papi-client/stats/cod/v1/title/mw/platform/psn/…)))).data.lifetime.all.properties;Total Kills: ${a.kills} | Best KDR: ${a.bestKD} | Best Kill Streak: ${a.bestKillStreak} | Total Suicides: ${a.suicides} | Best Kills: ${a.bestKills} | Most Deaths: ${a.deaths})
Any help is appreciated.