Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript. Learn more »

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

5

version

0.1.1

license

MIT

last publish

collaborators

  • avatar
Report a vulnerability