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

Commit afe91ca

Browse files
committed
re
1 parent acb5762 commit afe91ca

File tree

1 file changed

+14
-7
lines changed

1 file changed

+14
-7
lines changed

README.rst

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -50,16 +50,21 @@ Login with your sso token
5050
5151
api.login('Your sso token')
5252
53-
You sso token can be found by longing in at [callofduty](https://my.callofduty.com/), opening dev tools (ctr+shift+I),
53+
You sso token can be found by longing in at `callofduty`_, opening dev tools (ctr+shift+I),
5454
going to Applications > Storage > Cookies > <span>https</span>://callofduty.com, filter to search 'ACT_SSO_COOKIE' and
5555
copy the value
56-
<br><br>
57-
#### Retrieving game profile
56+
57+
.._callofduty: https://my.callofduty.com/
58+
59+
Retrieving game profile
60+
-----------------------
5861
A player's game profile can be retrieved by using API sub game classes with its function fullData(platform, gamertag)
5962

60-
*Example*
63+
*Example*:
64+
65+
.. code-block:: python
6166
62-
profileData = api.ModernWarfare.fullData(platforms.Battlenet, "Username#1234")
67+
profileData = api.ModernWarfare.fullData(platforms.Battlenet, "Username#1234")
6368
6469
*Output* > json
6570

@@ -68,8 +73,10 @@ Retrieving combat history
6873
A player's game profile can be retrieved by using API sub game classes with its functions combatHistory(platform, gamertag) or
6974
combatHistoryWithDate(platform, gamertag, start, end)
7075

71-
*Example*
76+
*Example*:
77+
78+
.. code-block:: python
7279
73-
matchHistory = api.Warzone.combatHistory(platforms.Activision, "Username#123456")
80+
matchHistory = api.Warzone.combatHistory(platforms.Activision, "Username#123456")
7481
7582
*Output* > json

0 commit comments

Comments
 (0)