(API) Season Specific Statistics

Modified on Wed, 25 May 2016 at 11:34 AM

The following call will display the current stats for the season specified. The season must be published and statistics made available to the public in order for this to work:

myss_ShowSeasonStatsAll(uid, key, slid, tid, seasontype, rowAmount, target);

The following is an explanation of each parameter and their possible values:

1) uid: (integer) RESERVED. Always 0
2) key: (string) RESERVED. Always an empty string.
3) slid: (integer) This is the id of the season you wish to display. This ID can be found under manage seasons and tournaments from the backend and will be displayed with the name of the season.
4) tid: (integer) This represents a teamid. If this is filled in, the stats will be filtered to only display for that team. A teamid is provided through the Manage Teams menu in the backend. Providing a value of 0 will show all stats leaders for the season.
5) seasontype: (integer) This indicates which you would like the standings displayed for:

  • 0 – Pre Season
  • 1 – Regular Season
  • 2 – Post Season

6) rowAmount: (integer) value indicating how many players can be displayed per row for the main category leaders
7) target: (string) this is the ID of the HTML element in which to display the standings in.

EXAMPLE HTML CODE:

<div style="width: 100%;" id="myss_statsholder"></div>
<script type="text/javascript">myss_ShowSeasonStatsAll(0,'', 1, 0, 1, 2, '#myss_statsholder');</script>

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article