open-index/open-npm huggingface dataset:
npm package: @soba-project/widgets-api-client
Description: Widgets server's API client
Author: SOBA Project
Latest version: 0.2.0

Widgets server WEB-API client helper for Node.js
===

[バックエンドサーバー向けWEB API](https://tstb.backlog.jp/wiki/LIVE/バックエンドサーバー向け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

* Node.js ([http://nodejs.org/](http://nodejs.org/))

### Tests

#### Install the dependencies for the tests:

    % npm install -d

#### Run the tests:

    % npm test