PUBGSharp icon indicating copy to clipboard operation
PUBGSharp copied to clipboard

No way to filter by game mode, resulting in unneeded data

Open skmagiik opened this issue 7 years ago • 7 comments

GetPlayerStatsAsync cannot accept more than region for filtering. Should allow for gamemode and season filtering. Would be easy to implement.

skmagiik avatar Nov 19 '17 20:11 skmagiik

It's because the API (pubgtracker) itself only takes the region as a parameter, which then returns all the data regardless of gamemode/season. I originally wanted to keep it "native" and not add extra filtering there, but I see your point.

This could be added, but in the end it just removes few simple LINQ queries from the end-user code, but I can take a look at it later anyway.

eklypss avatar Nov 19 '17 21:11 eklypss

https://pubgtracker.com/site-api

Get PUBG Player Stats

GET https://api.pubgtracker.com/v2/profile/pc/{pubg-nickname}

This will get all the stats for the current season. You may get more data by using filters. season, mode, region

Seasons

2017-pre1 2017-pre2 2017-pre3 2017-pre4 2017-pre5 Regions

na eu as oc sa sea krjp Modes

solo duo squad solo-fpp duo-fpp squad-fpp Example Query

https://api.pubgtracker.com/v2/profile/pc/VissGames?region=na&season=2017-pre4

skmagiik avatar Nov 19 '17 22:11 skmagiik

See comment above, it supports this now, maybe there was a change after you did so originally

skmagiik avatar Nov 19 '17 22:11 skmagiik

Yeah I don't think that was there back when I originally started working on this, definitely will add those features soon. Thanks for informing.

eklypss avatar Nov 19 '17 22:11 eklypss

its more than you think. The APi needs to be updated to v2 .

i'm currently starting working on it.

ghost avatar Nov 22 '17 11:11 ghost

Updated. Also made a pull request to search for a specific value.

ghost avatar Nov 22 '17 18:11 ghost

Now we all need is an updated NuGet package. Really big Kudos to you guys keeping this as good as possible! 👍

ghost avatar Nov 22 '17 20:11 ghost