0.1.1 • Published 9 years ago

dmm4js v0.1.1

Weekly downloads
1
License
MIT
Repository
github
Last release
9 years ago

dmm4js

Simple DMM API v2 client written in JavaScript.

Reference: DMM API v2

Installation

Install using npm:

npm install dmm4js

Features

  • Fluent Interface
  • Below methods are implemented.
methoddescription
service検索対象サービスを指定します。
floor検索対象フロアを指定します。
hits検索結果の件数を指定します。
offset検索結果の先頭位置を指定します。
sort検索結果の並び順を指定します。
keyword商品タイトル、メーカー名、ジャンル、商品説明などから検索をします。

Example

var dmm = new DMM4js();
dmm.hits(3).sort('date').keyword('ハリーポッター').get().then(function(result) {
  console.log(result.items[0].title); //
});

TODO

  • Error handling

Tests

Run tests using npm test.

License

MIT