/node-sdk-example

Basic example using Circuit Node.js SDK. Two bots login and send text messages to each other.

Primary LanguageJavaScript

node-sdk-example

Run on Repl.it License

Example for the Circuit Node SDK. The example shows how to logon to circuit, register for events, lookup a conversation, send a message/reply, attach files to a message and more.

Requirements

Getting Started

Use your own bot credentials (optional)

Run the app

    git clone https://github.com/circuit/node-sdk-example.git
    cd node-sdk-example
    npm install
    node index

You may login as maeva.barnaby@mailinator.com to https://circuitsandbox.net and verify the sent messages.

Hint: pipe the logs to bunyan to get a nicer console output: node index | node_modules/.bin/bunyan