diff options
| author | schneefux <schneefux+commit@schneefux.xyz> | 2017-01-31 12:14:58 +0100 |
|---|---|---|
| committer | schneefux <schneefux+commit@schneefux.xyz> | 2017-01-31 12:14:58 +0100 |
| commit | 4a1d67ecbbf3ba14a986020c0ebf50256de24387 (patch) | |
| tree | deba7e2e0c543b0f502471a226394e3784de927c /gamelocker/api.py | |
| parent | 3fb50f12d1632ac35c329e1309502716376d3eeb (diff) | |
| download | python-gamelocker-4a1d67ecbbf3ba14a986020c0ebf50256de24387.tar.gz python-gamelocker-4a1d67ecbbf3ba14a986020c0ebf50256de24387.zip | |
update documentation
Diffstat (limited to 'gamelocker/api.py')
| -rw-r--r-- | gamelocker/api.py | 19 |
1 files changed, 4 insertions, 15 deletions
diff --git a/gamelocker/api.py b/gamelocker/api.py index 5b5a3fa..ad7e1f6 100644 --- a/gamelocker/api.py +++ b/gamelocker/api.py @@ -6,20 +6,13 @@ gamelocker.api This module implements the Gamelocker API. """ -import datetime import requests import gamelocker.datatypes import gamelocker.strings class Gamelocker(object): - """Implementation of the Gamelocker API. - - :param apikey: API key used. - :type apikey: str - :param title: Title data is fetched for. - :type title: str - """ + """Implementation of the Gamelocker API.""" def __init__(self, apikey, datacenter="dc01"): """Constructs a :class:`Gamelocker <Gamelocker>`. @@ -30,12 +23,6 @@ class Gamelocker(object): :type datacenter: str :return: :class:`Gamelocker <Gamelocker>` object :rtype: gamelocker.Gamelocker - - Usage:: - - >>> import gamelocker - >>> gamelocker.Gamelocker("getoffmylawn").status() - "v1.0.5" """ self.apikey = apikey @@ -105,7 +92,7 @@ class Gamelocker(object): def Vainglory(self, region="na"): """Sets title to Vainglory and data region. - :param region: (optional) Data region (shard) to use. Defaults to NA. + :param region: (optional) Data region (shard) to use. Defaults to "na". :type region: str :return: :class:`Gamelocker <Gamelocker>` object :rtype: gamelocker.Gamelocker @@ -144,6 +131,8 @@ class Gamelocker(object): def matches(self, params=None): """Returns a list of recent matches. + See http://developer.vainglorygame.com/docs/#get-a-collection-of-matches + for parameters. :param params: (optional) Query parameters. :type params: dict |
