Poll
여론 조사 내용을 설정하고 해당 메세지(app='poll')를 전송할 수 있다.
Arguments
question
stringrequired 여론 조사를 할 내용 (질의 내용)choices
arrayrequired 가능한 선택지
Returns
결과가 기록된 유닛의 해시
Example
const params = {
question: 'Should I stay or should I go?',
choices: ['stay', 'go', 'fly']
};
client.post.poll(params, wif, function(err, result) {
console.log(result);
});Last updated
Was this helpful?