strawpoll
Create and get polls on Straw Poll.
Example
Here's an example using concat-stream:
var concat = ;var strawpoll = ;var stream =;stream;
Add JSONStream and you don't even have to use JSON.parse
yourself!
var concat = ;var JSONStream = ;var strawpoll = ;var stream =;
An example of getting a poll with concat-stream:
var concat = ;var strawpoll = ;var stream = strawpoll;
The JSON parsed response will match examples from the Straw Poll API.
Installation
$ npm install strawpoll
API
var strawpoll = ;
strawpoll(options)
Returns a hyperquest stream which is
POST
ing to Straw Poll in order to create your poll.
options
:
title
(String)options
(Array)multi
(Boolean)permissive
(Boolean)
strawpoll.create(options)
Alias of just strawpoll(options)
.
strawpoll.get(id)
Returns a hyperquest stream which is GET
ing poll information from Straw Poll
based on Number id
.