detailed-cod-tracker/get_stats.bat

11 lines
577 B
Batchfile
Raw Normal View History

2023-10-03 01:50:06 -04:00
@echo off
:: Set your default values here
set "PROF=Ahrimdon%%231597"
:: The %% replaces the # for the Activision ID
set "COOKIE_VALUE=INSERT ACT_SSO_COOKIE COOKIE HERE FOR AUTHENTICATION"
set "URL=https://my.callofduty.com/api/papi-client/stats/cod/v1/title/mw/platform/battle/gamer/%PROF%/profile/type/mp"
set "USER_AGENT=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36"
set "OUTPUT_FILE=stats.json"
curl -v "%URL%" -H "Cookie: ACT_SSO_COOKIE=%COOKIE_VALUE%" -H "User-Agent: %USER_AGENT%" -o %OUTPUT_FILE%