Widget API

From Help.baskethotel.com

(Difference between revisions)
Jump to: navigation, search
Line 2: Line 2:
==General information about API==
==General information about API==
 +
 +
===Setting season and league for widget===
 +
Most of the widgets require to have league or season to be set. It is done by passing season_id or league_id paramaters to widgets. If only league_id parameter is passed, default season is taken. If only season_id is passed, league_id is calculated automaticaly, this is possible because in BasketHotel all seasons are children of leagues, meaning "season 2010-2011" in "Mens league" and "season 2010-2011" in "Womens league" will completely differend season and will have differend ids.
 +
If both "season_id" and "league_id" will be passed to widget, one has to make sure, that season is a child for league set, otherwhise widget will throw an error.
==All widgets==
==All widgets==
* [[Front page widget]] - used to provide general info about all leagues (schedule,standings,leaders)
* [[Front page widget]] - used to provide general info about all leagues (schedule,standings,leaders)
* [[Full standings widget]] - shows team standings table with some interesting statistics
* [[Full standings widget]] - shows team standings table with some interesting statistics

Revision as of 08:14, 10 February 2011

Contents

What are they?

General information about API

Setting season and league for widget

Most of the widgets require to have league or season to be set. It is done by passing season_id or league_id paramaters to widgets. If only league_id parameter is passed, default season is taken. If only season_id is passed, league_id is calculated automaticaly, this is possible because in BasketHotel all seasons are children of leagues, meaning "season 2010-2011" in "Mens league" and "season 2010-2011" in "Womens league" will completely differend season and will have differend ids. If both "season_id" and "league_id" will be passed to widget, one has to make sure, that season is a child for league set, otherwhise widget will throw an error.

All widgets

Personal tools