NAME
TV::ProgrammesSchedules::Colors - Interface to Colors TV Programmes Schedules.
VERSION
Version 0.06
DESCRIPTION
Colors, known as Aapka Colors in the U.S., is a Hindi language Indian general entertainment channel based in Mumbai, part of the Viacom 18 family, which was launched on July 21, 2008.
On 21 January 2010, Colors became available on Dish Network in the U.S., where it is called Aapka Colors (Respectfully your Colors) because of a clash with Colours TV. Amitabh Bachchan served as brand ambassador for the UK and USA launches.
Colors launched in the United Kingdom and Ireland on Sky on 25 January 2010.On 5 January 2010, Colors secured a deal to join the VIEWASIA subscription package. Initially the channel was available free-to-air & then subsequently was added to the VIEWASIA package on 19 April 2010. Colors was added to Virgin Media on 1 April 2011, as a part of the Asian Mela pack.
CONSTRUCTOR
The constructor expects a reference to an anonymous hash as input parameter. Table below shows the possible value of various keys (location, yyyy, mm, dd). The location, yyyy, mm and dd are all optional. Default location is 'in' .If missing picks up the current year, month and day.
+----------------------------+----------+------+----+----+
| Country | Location | YYYY | MM | DD |
+----------------------------+----------+------+----+----+
| India | in | 2011 | 4 | 7 |
| United Kingdom | uk | 2011 | 4 | 7 |
| Singapore | sg | 2011 | 4 | 7 |
| United States | us | 2011 | 4 | 7 |
| Middle East & North Africs | mena | 2011 | 4 | 7 |
| Rest of the world | rotw | 2011 | 4 | 7 |
+----------------------------+----------+------+----+----+
use strict; use warnings;
use TV::ProgrammesSchedules::Colors;
my ($colors);
# Colors India (default) for todays (default) listings.
$colors = TV::ProgrammesSchedules::Colors->new();
# Colors UK for todays (default) listings.
$colors = TV::ProgrammesSchedules::Colors->new('uk');
# Colors US for 12th May'2011 listings.
$colors = TV::ProgrammesSchedules::Colors->new({location => 'us', yyyy => 2011, mm => 5, dd => 12});
METHODS
get_listings()
Returns the programmes listings for the given location and date. Data would be in XML format.
use strict; use warnings;
use TV::ProgrammesSchedules::Colors;
my ($colors, $listings);
# Colors UK for todays listings.
$colors = TV::ProgrammesSchedules::Colors->new('uk');
$listings = $colors->get_listings();
AUTHOR
Mohammad S Anwar, <mohammad.anwar at yahoo.com>
BUGS
Please report any bugs/feature requests to bug-tv-programmesschedules-colors at rt.cpan.org
or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=TV-ProgrammesSchedules-Colors. I will be notified and then you'll automatically be notified of progress on your bug as I make changes.
SUPPORT
You can find documentation for this module with the perldoc command.
perldoc TV::ProgrammesSchedules::Colors
You can also look for information at:
RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=TV-ProgrammesSchedules-Colors
AnnoCPAN: Annotated CPAN documentation
CPAN Ratings
Search CPAN
LICENSE AND COPYRIGHT
Copyright 2011 Mohammad S Anwar.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.
DISCLAIMER
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.