Quickstart
Quickstart Guide for pollz-js Node.js SDK
Installation
npm install pollz-jsInitialize the SDK
const { PollzSDK } = require('pollz-js');
// Initialize pollz-js SDK
const pollz = new PollzSDK();
const initInput = {
appId: 'your-app-id',
appSecret: 'your-app-secret',
};
try {
await pollz.init(initInput);
console.log('pollz-js SDK initialized successfully!');
} catch (error) {
console.error('Failed to initialize pollz-js SDK:', error.message);
}Create a Poll
Vote in a Poll
Get Poll Information
Real-time Poll Updates
Last updated