summaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2017-01-18 14:56:43 +0100
committerschneefux <schneefux+commit@schneefux.xyz>2017-01-18 14:56:43 +0100
commit6c9f51cc8263ac93426ec63b6bb6841cf7663e34 (patch)
tree496d53dd6f6053456036a10da9e06f4189e92a6d /README
parent6afc82bc2c9b6170d70c00bf4a5d4515a72820b9 (diff)
downloadpython-gamelocker-6c9f51cc8263ac93426ec63b6bb6841cf7663e34.tar.gz
python-gamelocker-6c9f51cc8263ac93426ec63b6bb6841cf7663e34.zip
add readme
Diffstat (limited to 'README')
-rw-r--r--README24
1 files changed, 24 insertions, 0 deletions
diff --git a/README b/README
index e69de29..38ca897 100644
--- a/README
+++ b/README
@@ -0,0 +1,24 @@
+python-gamelocker
+===
+
+[Private mirror](https://git.schneefux.xyz/schneefux/python-gamelocker) [GitHub mirror](https://github.com/schneefux/python-gamelocker)
+
+Python wrapper for the Gamelocker API. Currently supports [Vainglory](https://developers.vainglorygame.com).
+
+[Private docs mirror](https://docs.schneefux.xyz/python-gamelocker) [GitHub docs mirror](https://schneefux.github.io/python-gamelocker)
+
+Example usage:
+```python
+>>> import gamelocker
+>>> APIKEY = "aaa.bbb.ccc"
+>>> api = gamelocker.Gamelocker(APIKEY).Vainglory()
+>>> m = api.matches(limit=2, player="TheLegend27")
+>>> m
+[<gamelocker.datatypes.Match object at 0x7f2682314ac8>, <gamelocker.datatypes.Match object at 0x7f26823d3c50>]
+>>> m.rosters[0].participants[0].player.name
+"iiDruid"
+>>> m.rosters[0].participants[0].stats.kills
+10
+>>> m.rosters[0].stats.acesEarned
+2
+```