Build Status Coverage Status

NAME

WWW::NHKProgram::API - API client for NHK program API

SYNOPSIS

use WWW::NHKProgram::API;

my $client = WWW::NHKProgram::API->new(api_key => '__YOUR_API_KEY__');

# Get program list
my $program_list = $client->list({
    area    => 130,
    service => 'g1',
    date    => '2014-02-02',
});

# Get program list by genre
my $program_genre = $client->genre({
    area    => 130,
    service => 'g1',
    genre   => '0000',
    date    => '2014-02-02',
});

# Get program information
my $program_info = $client->info({
    area    => 130,
    service => 'g1',
    id      => '2014020334199',
});

# Get information of program that is on air now
my $program_now = $client->now_on_air({
    area    => 130,
    service => 'g1',
});

DESCRIPTION

WWW::NHKProgram::API is the API client for NHK program API.

Please refer http://api-portal.nhk.or.jp if you want to get information about NHK program API.

METHODS

FOR DEVELOPERS

Tests which are calling web API directly in xt/webapi. If you want to run these tests, please execute like so;

$ NHK_PROGRAM_API_KEY=__YOUR_API_KEY__ prove xt/webapi

LICENSE

Copyright (C) moznion.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

AUTHOR

moznion moznion@gmail.com