This repository has been archived by the owner on Jan 22, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
samples
Christian Cuevas edited this page Jul 16, 2017
·
5 revisions
The samples function allows for easy and simple retrieval of a samples in Vainglory with args to filter.
The samples function requires one parameter.
List of Parameters:
Args to filter with. Reference: https://developer.vainglorygame.com/docs#get-a-collection-of-samples
Getting samples data with args:
>>> import gamelocker
>>> api = gamelocker.Vainglory(api_key)
>>> args = {"page[limit]": 50, "sort": "-createdAt"} # Reference: https://developer.vainglorygame.com/docs#samples
>>> data = api.samples(args)
How data is received & given:
This is the JSON we get and process from gamelocker: open
This is the dictionary you get from calling on matches: open