-
Notifications
You must be signed in to change notification settings - Fork 1
players
The players function allows for easy and simple retrieval of multiple players Vainglory history with their in-game name.
The players function requires one parameter and has two optional parameters.
List of Parameters:
Args to filter with. Reference: https://developer.vainglorygame.com/docs#get-a-collection-of-players
Default: "na"
Options: "na", "eu", "sg", "ea", "sa"
The players region. Reference: https://developer.vainglorygame.com/docs#regions
Default: False
Options: True, False
If data should be returned as an object.
Getting players history with args:
>>> import gamelocker
>>> api = gamelocker.Vainglory(api_key)
>>> args = {'filter[playerNames]': 'ClarkthyLord,AmethystCrow,BryceHi'} # Reference: https://developer.vainglorygame.com/docs#get-a-collection-of-players
>>> data = api.players(args)
Getting players history from a specific region:
>>> import gamelocker
>>> api = gamelocker.Vainglory(api_key)
>>> args = {'filter[playerNames]': 'ClarkthyLord,AmethystCrow,BryceHi'} # Reference: https://developer.vainglorygame.com/docs#get-a-collection-of-players
>>> data = api.players(args, "eu")
Getting players history as an object:
>>> import gamelocker
>>> api = gamelocker.Vainglory(api_key)
>>> args = {'filter[playerNames]': 'ClarkthyLord,AmethystCrow,BryceHi'} # Reference: https://developer.vainglorygame.com/docs#get-a-collection-of-players
>>> data = api.players(args, toObject=True)
You can find example code here.
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 players: open