mirror of
https://github.com/Ahrimdon/detailed-cod-tracker.git
synced 2024-11-03 16:46:44 -05:00
Add support for more former depricated api calls
This commit is contained in:
parent
f683dfcc3c
commit
aef8d07cbc
13
curl_userInfo.ps1
Normal file
13
curl_userInfo.ps1
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
# 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"
|
||||||
|
|
||||||
|
$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
|
@ -421,11 +421,26 @@ def get_and_save_data(player_name=None, all_stats=False, season_loot=False, iden
|
|||||||
season_loot_data = api.ModernWarfare.seasonLoot(platforms.Activision, player_name)
|
season_loot_data = api.ModernWarfare.seasonLoot(platforms.Activision, player_name)
|
||||||
map_list = api.ModernWarfare.mapList(platforms.Activision)
|
map_list = api.ModernWarfare.mapList(platforms.Activision)
|
||||||
identities_data = api.Me.loggedInIdentities()
|
identities_data = api.Me.loggedInIdentities()
|
||||||
|
|
||||||
|
info = api.Me.info()
|
||||||
|
friendFeed = api.Me.friendFeed()
|
||||||
|
eventFeed = api.Me.eventFeed()
|
||||||
|
cp = cod_points = api.Me.codPoints()
|
||||||
|
connectedAccounts = api.Me.connectedAccounts()
|
||||||
|
settings = api.Me.settings()
|
||||||
|
|
||||||
save_to_file(player_stats, 'stats.json')
|
save_to_file(player_stats, 'stats.json')
|
||||||
save_to_file(match_info, 'match_info.json')
|
save_to_file(match_info, 'match_info.json')
|
||||||
save_to_file(season_loot_data, 'season_loot.json')
|
save_to_file(season_loot_data, 'season_loot.json')
|
||||||
save_to_file(map_list, 'map_list.json')
|
save_to_file(map_list, 'map_list.json')
|
||||||
save_to_file(identities_data, 'identities.json')
|
save_to_file(identities_data, 'identities.json')
|
||||||
|
|
||||||
|
save_to_file(info, 'info.json')
|
||||||
|
save_to_file(friendFeed, 'friendFeed.json')
|
||||||
|
save_to_file(eventFeed, 'eventFeed.json')
|
||||||
|
save_to_file(cp, 'cp.json')
|
||||||
|
save_to_file(connectedAccounts, 'connectedAccounts.json')
|
||||||
|
save_to_file(settings, 'settings.json')
|
||||||
else:
|
else:
|
||||||
# For other specific optional arguments:
|
# For other specific optional arguments:
|
||||||
if season_loot:
|
if season_loot:
|
||||||
|
Loading…
Reference in New Issue
Block a user