(API) Season Specific Schedule

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

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

myss_ShowSchedules(slid, tid, bot, top, target, uid, key, seasontype, showTeamAndSeason);

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

1) 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.
2) tid: (integer) This represents a teamid. If this is filled in, the schedule will be filtered for only that team. A teamid is provided through the Manage Teams menu in the backend. Providing a value of 0 will show all games for all teams.
3) bot: (integer) This indicates which game to start from. You should always use a value of 0 here unless you know what you are doing.
4) top: (integer) This defines how many games you would like to be displayed per page. This value may be overridden, however, if the season belongs to a league and that league has another value set in the backend.
5) target: (string) the id of the HTML element you would like the standings to be displayed in.
6) uid: (integer) RESERVED. Always 0
7) key: (string) RESERVED. Always an empty string.
8) seasontype: (integer) This indicates which you would like the standings displayed for:

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

9) showTeamAndSeason: (boolean) true or false value indicating if you would like to give the user the ability to filter the season schedule by a specific team and season type. true allows and displays the filters and false disables and hides them.

EXAMPLE HTML CODE:

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