init(input: InitInput): Promise<void>
Initialize the SDK with the provided application credentials.
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); }
Last updated 1 year ago