forked from theblitzapp/championgg-api-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathREADME.txt
More file actions
39 lines (31 loc) · 1.19 KB
/
README.txt
File metadata and controls
39 lines (31 loc) · 1.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# PY-GG
A Python module wrapper for the Champion.GG API
# Installation
```
pip install py_gg
```
# Usage
First, instantiate the wrapper with your api key
```
import py_gg
py_gg.init(YOUR_API_KEY)
```
Then you gain access to all current endpoints of the API! Some endpoints require either `role` or `champion_name`, along with an optional object with ...options. These params are passed as query string params and are `page`, `limit`, `elo`, `sort`, and `champData`. For more details on these parameters, please refer to the Champion.GG API documentation.
The methods are:
Method | Parameters |
------ | ---------- |
`.init`| `api_key` |
`.statistics.overall` | `options` |
`.statistics.general` | `options` |
`.champions.all` | `options` |
`.champions.specific`| `champId`, `options` |
`.champions.specific_role`| `champId`, `role`, `options` |
`.champions.specific_matchup`| `champ1Id`, `champ2Id`, `role`, `options` |
## contributing
Feel free to contribute, let's just try to keep it readable :)
## Release History
* 1.0.0 Initial release
* 1.0.1 Fixes to calls to Champions and Stats
* 2.0.0 Release for v2 of the API
* 2.0.1 Fixes to pypi
* 2.0.2 QOL Changes, privitizing methods