{"id":16304858,"url":"https://github.com/moznion/www-nhkprogram-api","last_synced_at":"2025-04-12T11:58:08.671Z","repository":{"id":13762785,"uuid":"16457568","full_name":"moznion/WWW-NHKProgram-API","owner":"moznion","description":"API client for NHK program API (http://api-portal.nhk.or.jp/)","archived":false,"fork":false,"pushed_at":"2014-02-09T13:01:50.000Z","size":260,"stargazers_count":3,"open_issues_count":1,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-16T01:43:09.321Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://metacpan.org/release/WWW-NHKProgram-API","language":"Perl","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/moznion.png","metadata":{"files":{"readme":"README.md","changelog":"Changes","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-02-02T16:06:29.000Z","updated_at":"2014-09-09T15:36:44.000Z","dependencies_parsed_at":"2022-09-23T15:12:43.722Z","dependency_job_id":null,"html_url":"https://github.com/moznion/WWW-NHKProgram-API","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moznion%2FWWW-NHKProgram-API","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moznion%2FWWW-NHKProgram-API/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moznion%2FWWW-NHKProgram-API/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/moznion%2FWWW-NHKProgram-API/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/moznion","download_url":"https://codeload.github.com/moznion/WWW-NHKProgram-API/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248565079,"owners_count":21125415,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-10T21:05:00.587Z","updated_at":"2025-04-12T11:58:08.652Z","avatar_url":"https://github.com/moznion.png","language":"Perl","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.org/moznion/WWW-NHKProgram-API.png?branch=master)](https://travis-ci.org/moznion/WWW-NHKProgram-API) [![Coverage Status](https://coveralls.io/repos/moznion/WWW-NHKProgram-API/badge.png?branch=master)](https://coveralls.io/r/moznion/WWW-NHKProgram-API?branch=master)\n# NAME\n\nWWW::NHKProgram::API - API client for NHK program API\n\n# SYNOPSIS\n\n    use WWW::NHKProgram::API;\n\n    my $client = WWW::NHKProgram::API-\u003enew(api_key =\u003e '__YOUR_API_KEY__');\n\n    # Get program list\n    my $program_list = $client-\u003elist({\n        area    =\u003e 130,\n        service =\u003e 'g1',\n        date    =\u003e '2014-02-02',\n    });\n\n    # Get program list by genre\n    my $program_genre = $client-\u003egenre({\n        area    =\u003e 130,\n        service =\u003e 'g1',\n        genre   =\u003e '0000',\n        date    =\u003e '2014-02-02',\n    });\n\n    # Get program information\n    my $program_info = $client-\u003einfo({\n        area    =\u003e 130,\n        service =\u003e 'g1',\n        id      =\u003e '2014020334199',\n    });\n\n    # Get information of program that is on air now\n    my $program_now = $client-\u003enow_on_air({\n        area    =\u003e 130,\n        service =\u003e 'g1',\n    });\n\n# DESCRIPTION\n\nWWW::NHKProgram::API is the API client for NHK program API.\n\nPlease refer [http://api-portal.nhk.or.jp](http://api-portal.nhk.or.jp)\nif you want to get information about NHK program API.\n\n# METHODS\n\n- WWW::NHKProgram::API-\u003enew();\n\n    Constructor. You must give API\\_KEY through this method.\n\n    e.g.\n\n        my $client = WWW::NHKProgram::API-\u003enew(\n            api_key =\u003e '__YOUR_API_KEY__', # \u003c= MUST!\n        );\n\n- $client-\u003elist()\n\n    Get program list.\n\n        my $program_list = $client-\u003elist({\n            area    =\u003e 130,\n            service =\u003e 'g1',\n            date    =\u003e '2014-02-04',\n        });\n\n    And following the same;\n\n        my $program_list = $client-\u003elist({\n            area    =\u003e '東京',\n            service =\u003e 'ＮＨＫ総合１',\n            date    =\u003e '2014-02-04',\n        });\n\n    You can specify Japanese area name and service name as arguments.\n    If you want to know more details, please refer to the following;\n\n    [http://api-portal.nhk.or.jp/doc-request](http://api-portal.nhk.or.jp/doc-request)\n\n- $client-\u003egenre()\n\n    Get program list by genre.\n\n        my $genre_list = $client-\u003egenre({\n            area    =\u003e 130,\n            service =\u003e 'g1',\n            genre   =\u003e '0000',\n            date    =\u003e '2014-02-04',\n        });\n\n    Yes! you can also specify following;\n\n        my $genre_list = $client-\u003egenre({\n            area    =\u003e '東京',\n            service =\u003e 'ＮＨＫ総合１',\n            genre   =\u003e '定時・総合',\n            date    =\u003e '2014-02-04',\n        });\n\n- $client-\u003einfo()\n\n    Get information of program.\n\n        my $program_info = $client-\u003einfo({\n            area    =\u003e 130,\n            service =\u003e 'g1',\n            id      =\u003e '2014020402027',\n        });\n\n    Also;\n\n        my $program_info = $client-\u003einfo({\n            area    =\u003e '東京',\n            service =\u003e 'ＮＨＫ総合１',\n            id      =\u003e '2014020402027',\n        });\n\n- $client-\u003enow\\_on\\_air()\n\n    Get information of program that is on air now.\n\n        my $program_now = $client-\u003enow_on_air({\n            area    =\u003e 130,\n            service =\u003e 'g1',\n        });\n\n    Yes,\n\n        my $program_now = $client-\u003enow_on_air({\n            area    =\u003e '東京',\n            service =\u003e 'ＮＨＫ総合１',\n        });\n\n- $client-\u003elist\\_raw()\n- $client-\u003egenre\\_raw()\n- $client-\u003einfo\\_raw()\n- $client-\u003enow\\_on\\_air\\_raw()\n\n    Returns raw JSON response of each API.\n\n# FOR DEVELOPERS\n\nTests which are calling web API directly in `xt/webapi`. If you want to run these tests, please execute like so;\n\n    $ NHK_PROGRAM_API_KEY=__YOUR_API_KEY__ prove xt/webapi\n\n# LICENSE\n\nCopyright (C) moznion.\n\nThis library is free software; you can redistribute it and/or modify\nit under the same terms as Perl itself.\n\n# AUTHOR\n\nmoznion \u003cmoznion@gmail.com\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoznion%2Fwww-nhkprogram-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmoznion%2Fwww-nhkprogram-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmoznion%2Fwww-nhkprogram-api/lists"}