0.1.6 • Published 5 years ago

@vzvu3k6k/daichkr-client v0.1.6

Weekly downloads
-
License
CC0-1.0
Repository
github
Last release
5 years ago

This is a client for https://daichkr.hatelabo.jp/ for node.js.

Installation

npm install -S @vzvu3k6k/daichkr-client

Example

var DaichkrClient = require('@vzvu3k6k/daichkr-client');

var client = new DaichkrClient();
client.loginWithHatenaId(id, password).
  then(() => {
    return client.createAntenna({
      name:        '大アンテナ',
      description: '大アンテナです',
      permission:  'secret', // public, locked, secret
    });
  }).
  then((antenna) => {
    antenna.subscribe('http://example.com/atom.xml');
  });

Test

daichkr.hatelabo.jp is in beta without public APIs, so daichkr-client has tests to ensure the service behaves as expected. You can run them by npm test.

Some tests need a Hatena ID. Set your username and password to test/secrets/hatenaId.json as below:

{
  "username": "...",
  "password": "..."
}

And then npm run test:prepare.

0.1.6

5 years ago

0.1.5

5 years ago

0.1.4

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.0

8 years ago