A simple javascript interface/nodejs package to the www.strawpoll.me API.
npm install strawpoll --save
const strawpoll = require('strawpoll')
var poll = strawpoll.create({
title: 'My first poll',
options: [
'wow',
'awesome',
'amazing',
'nice'
],
multi: false,
dupcheck: 'normal',
captcha: false
})
poll.then((response) => {
console.log(response)
}).catch((error) => {
console.log(error)
})
const strawpoll = require('strawpoll')
var poll = strawpoll.get(11822190)
poll.then((response) => {
console.log(response)
}).catch((error) => {
console.log(error)
})