Skip to content
This repository was archived by the owner on Dec 17, 2024. It is now read-only.

Commit 46f3f9a

Browse files
committed
re
1 parent a965142 commit 46f3f9a

File tree

1 file changed

+26
-1
lines changed

1 file changed

+26
-1
lines changed

PYPI.rst

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,4 +200,29 @@ Here's an example for retrieving **Warzone** combat history of a player whose ga
200200
hist = api.Warzone.combatHistory(platforms.Battlenet, "Username#1234") # returns data of type dict
201201
202202
# printing results to console
203-
print(hist)
203+
print(hist)
204+
205+
The ``combatHistoryWithDate()`` takes 4 input parameteres which are platform, gamertag, start and end of type
206+
`cod_api.platforms`_, string, int and int respectively
207+
208+
start and end parameters are utc timestamps in microseconds
209+
210+
Here's an example for retrieving **ModernWarfare** combat history of a player whose gamer tag is **Username#1234567** on
211+
platform **Activision** with in the timestamps **1657919309** (Friday, 15 July 2022 21:08:29) and **1657949309**
212+
(Saturday, 16 July 2022 05:28:29)
213+
214+
.. code-block:: python
215+
216+
from cod_api import API, platforms
217+
218+
# initiating the API class
219+
api = API()
220+
221+
# loggin in with sso token
222+
api.login('your_sso_token')
223+
224+
# retrieving combat history
225+
hist = api.Warzone.combatHistory(platforms.Activision, "Username#1234567", 1657919309, 1657949309) # returns data of type dict
226+
227+
# printing results to console
228+
print(hist)

0 commit comments

Comments
 (0)