def gamestreams(name, limit=10, offset=0): url = urls.game() args = {"game": name, "limit": limit, "offset": offset} response = getrequest(url, args) if urls.valid(response): return response.json() else: error.failfast(response)
def topgames(limit, offset=0): url = urls.topgames() args = {"limit": limit, "offset": offset} response = getrequest(url, args) if urls.valid(response): return response.json() else: error.failfast(response)