1.0.7 • Published 5 years ago

thatbot v1.0.7

Weekly downloads
3
License
ISC
Repository
github
Last release
5 years ago

Node-thatbot

Node.JS library for thatbot-rcd.

Installation

npm install thatbot --save

API

.createTask(apiKey, scope, timeout)
apiKeyscopetimeout
Thatbot API access key.Login, signup or action.Request timeout.
.pollServer(apiKey, taskID, timeout)
apiKeytaskIDtimeout
Thatbot API access key.ID of task to poll.Request timeout.

All functions return a promise.

Usage

const tb = require('thatbot');

tb.createTask('api_key_here', 'login', 10000).then(result => {

​    console.log(result);

​    tb.pollServer('api_key_here', result.taskId).then(result => {

​        console.log(result);

​    }).catch(error => {

​        console.log(error)

​    })

}).catch(error => {

​    console.log(error)

})
1.0.7

5 years ago

1.0.6

5 years ago

1.0.4

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago