Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

m3talstorm/strawpoll

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

strawpoll.js

Build Status Downloads Npm Version Node Version Issues

A simple javascript interface/nodejs package to the www.strawpoll.me API.

Install

Node (Coming soon)

npm install strawpoll --save

Usage

Node

Creating a poll
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)
})
Getting the state/information about a poll
const strawpoll = require('strawpoll')

var poll = strawpoll.get(11822190)

poll.then((response) => {
    console.log(response)
}).catch((error) => {
    console.log(error)
})

About

A simple js interface to the www.strawpoll.me api

Topics

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.