<commit_before># BackChat.io Client for Node.js

This is a light library to access the Backchat provisioning API.

## Current version

0.1

## Installation

    npm install backchatio-api

## Usage

You need a valid API key to access the Backchat API.

Load the `backchatio-api` library.

    var BC = require('backchatio-api');

Open a client.

    BC.backchat.open('<apiKey>', function(client) {
        ...
    });

The `open` method requires 2 parameters: `apiKey` and  `callback`. The
`callback` function must take one parameter, `client`, and is called as soon as
the client is initialized and ready to be used.

Execute an API operation.

    client['<api>']['<operation>'](args, function (errors, data) {
        if (errors) {
            console.log(errors);
        } else {
            console.log(data);
        }<commit_msg>adds notes on installing from GitHub repo<commit_after># BackChat.io Client for Node.js

This is a light library to access the Backchat provisioning API.

## Current version

0.1

## Installation

    npm install backchatio-api

You can also install the development version from the GitHub repository:

    npm install git://github.com/mojolly/backchat-node-client.git

## Usage

You need a valid API key to access the Backchat API.

Load the `backchatio-api` library.

    var BC = require('backchatio-api');

Open a client.

    BC.backchat.open('<apiKey>', function(client) {
        ...
    });

The `open` method requires 2 parameters: `apiKey` and  `callback`. The
`callback` function must take one parameter, `client`, and is called as soon as
the client is initialized and ready to be used.

Execute an API operation.

    client['<api>']['<operation>'](args, function (errors, data) {
        if (errors) {
            console.log(errors);
        } else {
            console.log(data);
        }
{'fraction_non_alphanumeric': 0.10634834508952794, 'fraction_numerical': 0.0032555615843733042, 'mean_word_length': 2.9827213822894167, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7090437', 'n_tokens_mistral': 549, 'n_tokens_neox': 528, 'n_words': 204}