Not a Package Manager

    nhk_api

    0.1.1 • Public • Published

    NHK API for javascript Build Status

    browser support

    NHK has their televison program API.

    This library can call the API from javascript

    See more detail here:

    NHK番組表API

    Usage

     
    var NHK = require("nhk_api");
    var nhk = new NHK("YOUR_API_KEY");
    var callback = function(err, result) {
      console.log(JSON.stringify(result));
    };
     
    // list api
    nhk.list.get("130", "g1", callback);
    nhk.list.get("東京", "NHK総合1", callback);
    nhk.list.get("東京", "NHK総合1", "tomorrow", callback);
    // genre api
    nhk.genre.get("130", "g1", callback);
    nhk.genre.get("東京", "NHK総合1", callback);
    nhk.genre.get("東京", "NHK総合1", "tomorrow", callback);
    // info api
    nhk.info.get("130", "g1", "123456789", callback);
    // now api
    nhk.now.get("130", "g1", callback);

    Install

    for server

    $ npm install nhk_api

    for client

    $ bower install nhk_api
    <!-- in browser -->
    <script src="components/nhk_api/client/nhk_api.js"></script>

    Keywords

    Install

    npm i nhk_api

    DownloadsWeekly Downloads

    0

    Version

    0.1.1

    License

    MIT

    Last publish

    Collaborators

    • yosuke-furukawa