question

Arjuna avatar image
Arjuna asked

reading archived statistics

The documentation for GetPlayerVersionStatistics mentions that I can get the url of the archived scores:

https://api.playfab.com/docs/using-version-statistics

Is that not valid anymore? I don't get see a url in my results (or the function documentation). Is there a way to programatically retrieve the archived leaderboard ranking?

"data": {
  "StatisticVersions": [
   {
    "StatisticName": "ScoreWeekly",
    "Version": 0,
    "ActivationTime": "2016-05-19T08:37:02.87Z",
    "ScheduledDeactivationTime": "2016-05-23T00:00:00Z",
    "DeactivationTime": "2016-05-23T00:00:09.128Z"
   },
   {
    "StatisticName": "ScoreWeekly",
    "Version": 1,
    "ScheduledActivationTime": "2016-05-23T00:00:00Z",
    "ActivationTime": "2016-05-23T00:00:09.128Z"
   }
  ]
 },
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

brendan avatar image
brendan answered

That looks like a response to a call to the Client version of GetPlayerStatisticVersions, is it? The URL is returned to the Admin call, not the Client call - it's meant to be used by you to provide rewards as needed to players. Since this could be a list of millions of entries, it's really not something that should be exposed to the Client.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Arjuna avatar image
Arjuna answered

Ah, I see, I didn't notice it was an admin call.

Is there a way to get a players rank for last week's leaderboard? 

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

brendan avatar image
brendan answered

We are planning on adding a way to query the previous leaderboard (not all, just the last one), though I don't have a date for that just yet. I'll make a note to update this thread when it's available.

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.