Anyone can set up a poll by sending a message with app=’poll’.
Last updated 6 years ago
question string required Question of the poll.
string
choices array required Allowed set of choices.
array
Returns the unit hash.
const params = { question: 'Should I stay or should I go?', choices: ['stay', 'go'] }; client.post.poll(params, wif, function(err, result) { console.log(result); });
"29. Voting" (page 46)