Widget API

From Help.baskethotel.com

(Difference between revisions)
Jump to: navigation, search
(What are they?)
Line 1: Line 1:
==What are they?==
==What are they?==
 +
BasketHotel widget is a piece of HTML hosted on MBT servers and embeddable into third party websites using BasketHotel Widgets Javascript API.
==General information about API==
==General information about API==

Revision as of 08:21, 10 February 2011

Contents

What are they?

BasketHotel widget is a piece of HTML hosted on MBT servers and embeddable into third party websites using BasketHotel Widgets Javascript 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

Personal tools