1.0.14 • Published 8 months ago

chatwoot-client-node-js v1.0.14

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

Chatwoot Client for Node.js

This project is a library to integrate the Chatwoot API with your backend in Node.js and TypeScript. It provides methods to manage accounts, users, agents, contacts, conversations, and more.

API Support

This library fully supports the Chatwoot API v1.0.0 (Platform and Application).

Installation

You can install the library using npm:

npm install --save chatwoot-client-node-js

Configuration

To use the library, you need to provide the host URL and an API access token (platformAppApiKey or userApiKey).

import ChatwootClient from 'chatwoot-client-node-js';

const config = {
    host: 'https://app.chatwoot.com',
    userToken: 'your-user-api-key',
    platformToken: 'your-platform-app-api-key'
};

const client = new ChatwootClient(config);

Usage

Example Usage

Create Account

const createAccountResponse = await client.createAccount({ name: 'Nova Conta' });
if (createAccountResponse.success) {
    console.log('Conta criada:', createAccountResponse.data);
} else {
    console.error('Erro ao criar conta:', createAccountResponse.error);
}

Official Documentation

For more information, follow the official documentation.

Contribution

Contributions are welcome! Feel free to open an issue or submit a pull request.

License

This project is licensed under the MIT License. See the LICENSE file for more details.

1.0.9

8 months ago

1.0.8

8 months ago

1.0.7

8 months ago

1.0.11

8 months ago

1.0.10

8 months ago

1.0.14

8 months ago

1.0.13

8 months ago

1.0.12

8 months ago

1.0.6

9 months ago

1.0.5

9 months ago

1.0.4

9 months ago

1.0.3

9 months ago

1.0.2

9 months ago

1.0.1

9 months ago

1.0.0

9 months ago