Usage of api.players().filter()
Haza opened this issue · comments
Hi !
I'm testing around with your wrapper.
Right now, I am trying to retrieve some user data.
Using api.players().get() I can get a response from the API, everything seems good.
Using api.players().filter(), the query does not seems to be fired and I do not get any data from the API.
Here is my code
api = PUBG('<key>', <shard>)
# accound ID and player name are mine :-)
player = api.players().get('account.d70754df232c42b2b63dc0525c99acfb')
players = api.players().filter(player_names=['Hazadess'])
Do I miss something ?
Thanks !
Ok, I found it !
api.players().filter()
return a collection of players and then you can iterate over it. (for x in y, or players[0], ... )
It wasn't very obvious for me. Maybe we can improve the small example in the Readme (Retrieving a list of players filtering by names) ?
What do you think ?
Thanks !
Please do it! :-)