I had assistance from here in making a stat tracking command for warzone stats that looked like this : $(eval a=JSON.parse(decodeURIComponent($(querystring $(urlfetch json https://my.callofduty.com/api/papi-client/stats/cod/v1/title/mw/platform/psn/gamer/Dumpauss/profile/type/mp))
)).data.lifetime.mode.br_all.properties;Total Wins: ${a.wins} | Total Kills: ${a.kills} | Best KDR: ${a.kdRatio} | Total Downs: ${a.downs} | Top 25: ${a.topTwentyFive} | Top 10: ${a.topTen} | Total Contracts: ${a.contracts} | Top 5: ${a.topFive} | Score: ${a.score}
)
since the new season came out it has just stopped working, nightbot gives this error message; Cannot read property ‘mode’ of undefined
when i got to the JSON payload where it pulls the info for the stats it gives me this message: {“status”:“error”,“data”:{“type”:“com.activision.mt.common.stdtools.exceptions.NoStackTraceException”,“message”:“Not permitted: not authenticated”}} and where i go to get that message is https://my.callofduty.com/api/papi-client/stats/cod/v1/title/mw/platform/psn/gamer/Dumpauss/profile/type/mp
this command was a huge hit i would like to get it working. thank you!