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
d90b2715bc
commit
91b886fe1f
@ -1,13 +1,7 @@
|
|||||||
# Set your default values here
|
$COOKIE_VALUE = "MTk1NjgyNzA6MTcwNDcwMjA5NDE3Mjo5MDg4N2NmYjY0NjBmN2ZiYmYyNDMxMGJiNzdjYWZiMQ"
|
||||||
$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"
|
|
||||||
|
|
||||||
$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"
|
$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
|
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
|
||||||
|
|
||||||
# Replace
|
|
@ -7,20 +7,19 @@ https://my.callofduty.com/api/papi-client/stats/cod/v1/title/mw/platform/psn/gam
|
|||||||
# Get Stats Using Xbox Live
|
# Get Stats Using Xbox Live
|
||||||
https://my.callofduty.com/api/papi-client/stats/cod/v1/title/mw/platform/xbl/gamer/$PROF/profile/type/mp
|
https://my.callofduty.com/api/papi-client/stats/cod/v1/title/mw/platform/xbl/gamer/$PROF/profile/type/mp
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
# Get Recent Games
|
# 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
|
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)
|
# 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
|
https://my.callofduty.com/api/papi-client/ce/v1/title/mw/platform/battle/gameType/mp/communityMapData/availability
|
||||||
|
|
||||||
|
|
||||||
# Get friendFeedEvents
|
# Get friendFeedEvents
|
||||||
https://my.callofduty.com/api/papi-client/userfeed/v1/friendFeed/platform/battle/gamer/$PROF/friendFeedEvents/en
|
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}
|
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/inventory/v1/title/mw/platform/battle/gamer/$PROF/currency
|
||||||
|
|
||||||
https://my.callofduty.com/api/papi-client/crm/cod/v2/accounts/platform/battle/gamer/$PROF/
|
https://my.callofduty.com/api/papi-client/crm/cod/v2/accounts/platform/battle/gamer/$PROF/
|
||||||
|
@ -9,5 +9,3 @@ $USER_AGENT = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHT
|
|||||||
$OUTPUT_FILE = "stats.json"
|
$OUTPUT_FILE = "stats.json"
|
||||||
|
|
||||||
curl -v $URL -H "Cookie: ACT_SSO_COOKIE=$COOKIE_VALUE" -H "User-Agent: $USER_AGENT" -o $OUTPUT_FILE
|
curl -v $URL -H "Cookie: ACT_SSO_COOKIE=$COOKIE_VALUE" -H "User-Agent: $USER_AGENT" -o $OUTPUT_FILE
|
||||||
|
|
||||||
# Replace
|
|
Loading…
Reference in New Issue
Block a user