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.
- Register an account on circuitsandbox.net and create two bots. See details on Developer Portal
- Update config.json accordingly
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