@@ -18,13 +18,7 @@ This package can be used directly as a python file or as a python library.
18
18
Installation
19
19
------------
20
20
21
- For direct use:
22
-
23
- .. code-block :: bash
24
-
25
- git clone https://github.com/TodoLodo2089/cod-python-api.git
26
-
27
- As a python library using `pip `_:
21
+ Install cod-api library using `pip `_:
28
22
29
23
.. code-block :: bash
30
24
@@ -54,7 +48,7 @@ Login with your sso token
54
48
api.login(' Your sso token' )
55
49
56
50
You sso token can be found by longing in at `callofduty `_, opening dev tools (ctr+shift+I),
57
- going to Applications > Storage > Cookies > :samp: ` https://callofduty.com ` , filter to search 'ACT_SSO_COOKIE' and
51
+ going to Applications > Storage > Cookies > https://callofduty.com, filter to search 'ACT_SSO_COOKIE' and
58
52
copy the value
59
53
60
54
.. _callofduty : https://my.callofduty.com/
@@ -73,70 +67,71 @@ and following are available sub classes
73
67
74
68
To retrieve detailed description of each subclass `__doc__ ` (docstring) of each sub class can be called as shown below:
75
69
76
- .. tabs ::
70
+ ` ColdWar `
77
71
78
- .. tab :: ColdWar
72
+ .. code-block :: python
79
73
80
- .. code-block :: python
74
+ from cod_api import API
81
75
82
- from cod_api import API
76
+ api = API()
83
77
84
- api = API()
78
+ # print out the docstring
79
+ print (api.ColdWar)
85
80
86
- # print out the docstring
87
- print (api.ColdWar)
81
+ `ModernWarfe `
88
82
89
- .. tab :: ModernWarfare
83
+ .. code-block :: python
90
84
91
- .. code-block :: python
85
+ from cod_api import API
92
86
93
- from cod_api import API
87
+ api = API()
94
88
95
- api = API()
89
+ # print out the docstring
90
+ print (api.ModernWarfare)
96
91
97
- # print out the docstring
98
- print (api.ModernWarfare)
92
+ `Vanguard `
99
93
100
- .. tab :: Vanguard
94
+ .. code-block :: python
101
95
102
- .. code-block :: python
96
+ from cod_api import API
103
97
104
- from cod_api import API
98
+ api = API()
105
99
106
- api = API()
100
+ # print out the docstring
101
+ print (api.Vanguard)
107
102
108
- # print out the docstring
109
- print (api.Vanguard)
103
+ `Warzone `
110
104
111
- .. tab :: Warzone
105
+ .. code-block :: python
112
106
113
- .. code-block :: python
107
+ from cod_api import API
114
108
115
- from cod_api import API
109
+ api = API()
116
110
117
- api = API()
111
+ # print out the docstring
112
+ print (api.Warzone)
118
113
119
- # print out the docstring
120
- print (api.Warzone)
114
+ `Me `
121
115
122
- .. tab :: Me
116
+ .. code-block :: python
123
117
124
- .. code-block :: python
118
+ from cod_api import API
125
119
126
- from cod_api import API
120
+ api = API()
127
121
128
- api = API()
122
+ # print out the docstring
123
+ print (api.Me)
129
124
130
- # print out the docstring
131
- print (api.Me)
125
+ `Misc `
132
126
133
- .. tab :: Misc
127
+ .. code-block :: python
134
128
135
- .. code-block :: python
129
+ from cod_api import API
136
130
137
- from cod_api import API
131
+ api = API()
138
132
139
- api = API()
133
+ # print out the docstring
134
+ print (api.Misc)
140
135
141
- # print out the docstring
142
- print ( api.Misc)
136
+ .. image :: https://github.com/executablebooks/sphinx-tabs/workflows/continuous-integration/badge.svg?branch=master
137
+ :target: https://github.com/TodoLodo2089/cod-python- api.git
0 commit comments