mirror of
https://github.com/Ahrimdon/detailed-cod-tracker.git
synced 2024-11-03 16:46:44 -05:00
Pretty scripts, begin README for how to obtain userInfo.json
This commit is contained in:
parent
95a3fdad46
commit
7589c25d4e
@ -1,13 +1,7 @@
|
||||
# Set your default values here
|
||||
$PROF = "Ahrimdon%231597" # The % replaces the # for the Activision ID (e.g. Ahrimdon%231597)
|
||||
# You do not need numbers for PSN or XBL
|
||||
# Delete $PROF when getting maps and game modes.
|
||||
$COOKIE_VALUE = "ACCT_SSO_COOKIE"
|
||||
$COOKIE_VALUE = "MTk1NjgyNzA6MTcwNDcwMjA5NDE3Mjo5MDg4N2NmYjY0NjBmN2ZiYmYyNDMxMGJiNzdjYWZiMQ"
|
||||
|
||||
$URL = "AddLinkHere"
|
||||
$URL = "https://profile.callofduty.com/cod/userInfo/$COOKIE_VALUE"
|
||||
$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"
|
||||
$OUTPUT_FILE = "stats.json"
|
||||
$OUTPUT_FILE = "userInfo.json"
|
||||
|
||||
curl -v $URL -H "Cookie: ACT_SSO_COOKIE=$COOKIE_VALUE" -H "User-Agent: $USER_AGENT" -o $OUTPUT_FILE
|
||||
|
||||
# Replace
|
||||
curl -v $URL -H "Cookie: ACT_SSO_COOKIE=$COOKIE_VALUE" -H "Cookie: ACT_SSO_EVENT=LOGIN_SUCCESS:1703492494179" -H "Cookie: XSRF-TOKEN:x_Pb47Lt1r4KfX5wQrYAO5moyfPKKeDT0cZ99tMBHpLpTIlVRrwTYlyMRR1AKE--" -H "User-Agent: $USER_AGENT" -o $OUTPUT_FILE
|
@ -7,20 +7,19 @@ https://my.callofduty.com/api/papi-client/stats/cod/v1/title/mw/platform/psn/gam
|
||||
# Get Stats Using Xbox Live
|
||||
https://my.callofduty.com/api/papi-client/stats/cod/v1/title/mw/platform/xbl/gamer/$PROF/profile/type/mp
|
||||
|
||||
---
|
||||
|
||||
# Get Recent Games
|
||||
https://my.callofduty.com/api/papi-client/crm/cod/v2/title/mw/platform/battle/gamer/$PROF/matches/mp/start/0/end/0/details
|
||||
|
||||
# Get Maps & Game Modes (No $PROF Variable Needed)
|
||||
https://my.callofduty.com/api/papi-client/ce/v1/title/mw/platform/battle/gameType/mp/communityMapData/availability
|
||||
|
||||
|
||||
# Get friendFeedEvents
|
||||
https://my.callofduty.com/api/papi-client/userfeed/v1/friendFeed/platform/battle/gamer/$PROF/friendFeedEvents/en
|
||||
|
||||
# Get eventFeed
|
||||
https://my.callofduty.com/api/papi-client/userfeed/v1/friendFeed/rendered/en/{acct_sso_token}
|
||||
|
||||
# Get CP
|
||||
https://my.callofduty.com/api/papi-client/inventory/v1/title/mw/platform/battle/gamer/$PROF/currency
|
||||
|
||||
https://my.callofduty.com/api/papi-client/crm/cod/v2/accounts/platform/battle/gamer/$PROF/
|
||||
|
@ -8,6 +8,4 @@ $URL = "AddLinkHere"
|
||||
$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"
|
||||
$OUTPUT_FILE = "stats.json"
|
||||
|
||||
curl -v $URL -H "Cookie: ACT_SSO_COOKIE=$COOKIE_VALUE" -H "User-Agent: $USER_AGENT" -o $OUTPUT_FILE
|
||||
|
||||
# Replace
|
||||
curl -v $URL -H "Cookie: ACT_SSO_COOKIE=$COOKIE_VALUE" -H "User-Agent: $USER_AGENT" -o $OUTPUT_FILE
|
Loading…
Reference in New Issue
Block a user