From 4a1d67ecbbf3ba14a986020c0ebf50256de24387 Mon Sep 17 00:00:00 2001 From: schneefux Date: Tue, 31 Jan 2017 12:14:58 +0100 Subject: update documentation --- gamelocker/api.py | 19 ++++--------------- 1 file changed, 4 insertions(+), 15 deletions(-) (limited to 'gamelocker') 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 `. @@ -30,12 +23,6 @@ class Gamelocker(object): :type datacenter: str :return: :class:`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 ` 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 -- cgit v1.3.1