https://github.com/circuit/node-sdk-example
Basic example using Circuit Node.js SDK. Two bots login and send text messages to each other.
https://github.com/circuit/node-sdk-example
Last synced: 10 months ago
JSON representation
Basic example using Circuit Node.js SDK. Two bots login and send text messages to each other.
- Host: GitHub
- URL: https://github.com/circuit/node-sdk-example
- Owner: circuit
- Created: 2015-06-08T00:38:47.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2023-04-16T14:47:20.000Z (about 3 years ago)
- Last Synced: 2024-04-11T15:42:29.556Z (about 2 years ago)
- Language: JavaScript
- Homepage:
- Size: 102 KB
- Stars: 3
- Watchers: 18
- Forks: 4
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# node-sdk-example
[](https://repl.it/github/circuit/node-sdk-example)
[](https://opensource.org/licenses/Apache-2.0)
Example for the [Circuit Node SDK](https://github.com/circuit/circuit-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 ##
* [node 8.x](http://nodejs.org/download/)
## Getting Started ##
### Use your own bot credentials (optional)
* [Register an account](https://circuit.github.io/) on circuitsandbox.net and create two bots. See details on [Developer Portal](https://circuit.github.io/)
* Update config.json accordingly
### Run the app
```bash
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`