# nhk_api

> Node.js client for NHK API

Latest version **0.1.1** (published 2014-03-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install nhk_api
pnpm add nhk_api
yarn add nhk_api
bun add nhk_api
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.1 |
| Published | 2014-03-07 |
| First published | 2014-03-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | yosuke furukawa |
| Maintainers | yosuke-furukawa |
| Keywords | nhk, api |

## Links

- npm: https://www.npmjs.com/package/nhk_api
- npm.io page: https://npm.io/package/nhk_api

## Recent versions

- 0.1.1 (latest) — 2014-03-07
- 0.1.0 — 2014-03-05

## README

NHK API for javascript [![Build Status](https://travis-ci.org/yosuke-furukawa/nhk_api.js.png?branch=master)](https://travis-ci.org/yosuke-furukawa/nhk_api.js)
=====================


[![browser support](https://ci.testling.com/yosuke-furukawa/nhk_api.js.png)
](https://ci.testling.com/yosuke-furukawa/nhk_api.js)

NHK has their televison program API.

This library can call the API from javascript

See more detail here:

[NHK番組表API](http://api-portal.nhk.or.jp/ja)


Usage
=====================

```javascript

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

```shell
$ npm install nhk_api
```

for client

```shell
$ bower install nhk_api
```

```html
<!-- in browser -->
<script src="components/nhk_api/client/nhk_api.js"></script>
```

---
_Source: https://npm.io/package/nhk_api · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
