0.2.0 • Published 1 year ago

@soba-project/widgets-api-client v0.2.0

Weekly downloads
1
License
-
Repository
-
Last release
1 year ago

Widgets server WEB-API client helper for Node.js

バックエンドサーバー向けWEB API

Basic usage

var widgetsApi = require('widgets-api-client')
  , apiClient = widgetsApi.createClient('chat')
  , channelId = 10  // channelId of widgets (\`channels\`.\`id\` column of Widgets server DB)
  , authnToken = 'testAuthnToken'  // See https://tstb.backlog.jp/wiki/LIVE/AuthenticationSpecification
  , signature = 'testSignature'  // See above
  , connections = 10;

apiClient.autheticate(channelId, authnToken, signature);
apiClient.updateConnectionsCount(channelId, connections);

Development

Requirements

Tests

Install the dependencies for the tests:

% npm install -d

Run the tests:

% npm test
0.2.0

1 year ago

0.1.2

7 years ago