(API) Past Champions

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

The following call will display the current rules for the season specified. The season must be published in order for this to work:

myss_ShowChampions(lid, target, slid);

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

1) lid: (integer) This is the id of the league you wish to display. A league can encompass many seasons. This ID can be found under League Names and Associations from the backend and will be displayed with the name of the league. If a value of 0 is given, then the user must provide a value for parameter 3, slid.
2) target: (string) the id of the HTML element you would like the standings to be displayed in.
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. We will automatically figure out which league this season belongs to and show all associated champions. If this season is not associated to any leagues, nothing will be displayed. If a value of 0 is given, then the user must provide the lid in parameter 1.

EXAMPLE HTML CODE:

<div style="width: 100%;" id="myss_pastchampions"></div>
<script type="text/javascript">myss_ShowChampions(0, '#myss_pastchampions', 1);</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

Feedback sent

We appreciate your effort and will try to fix the article