Skip to content
This repository has been archived by the owner on Jan 22, 2019. It is now read-only.

samples

Christian Cuevas edited this page Jul 16, 2017 · 5 revisions

What is the samples function?

The samples function allows for easy and simple retrieval of a samples in Vainglory with args to filter.

Usage:

The samples function requires one parameter.

List of Parameters:

Parameters:

  • args

Args to filter with. Reference: https://developer.vainglorygame.com/docs#get-a-collection-of-samples

Examples

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)

Data Samples

How data is received & given:

Before Wrapper

This is the JSON we get and process from gamelocker: open

After Wrapper

This is the dictionary you get from calling on matches: open

Clone this wiki locally