Exemplo n.º 1
0
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)
Exemplo n.º 2
0
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)