Display of All Current Seasons

Modified on Tue, 05 Oct 2021 at 09:11 AM

The following call will display the current active seasons for your account. This call is convenient if you do not wish to edit your API calls for every new season. Instead, this will display a master list of all your current seasons in which the user can easily navigate to each important section within. The season must be published and the current date must be within the start and end dates of the season:

myss_ShowMain(sportid, target);

sportid: (integer) This value will filter your seasons by a particular sport. The following are valid values:

  • All Sports: 0
  • Hockey: 1
  • Soccer: 2
  • Basketball: 4
  • Lacrosse: 6
  • Field Hockey: 7
  • Futsal: 9
  • Other: 1000

2) target: (string) the id of the HTML element you would like the standings to be displayed in.

EXAMPLE HTML CODE:

<div class="c t" id="myss_master" style="width: 100%;"></div>
<script type="text/javascript">myss_ShowMain(0, '#myss_master');</script>

OUTPUT:

API – All Seasons

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