detailed-cod-tracker/dev/dev_script_simple.py
2025-03-10 09:26:03 -04:00

19 lines
446 B
Python

from cod_api import API, platforms
import asyncio
import os
if os.name == 'nt':
asyncio.set_event_loop_policy(asyncio.WindowsSelectorEventLoopPolicy())
## sync
# initiating the API class
api = API()
# login in with sso token
api.login('')
# retrieving combat history
profile = api.Warzone.breakdownWithDate(platforms.Activision, "Ahrimdon", 1657919309, 1740896092) # returns data of type dict
# printing results to console
print(profile)