Initializing your app
Last updated
Last updated
Before you proceed with initializing the pollz-js SDK, ensure that you have the following prerequisites in place:
Pollz Account: You must have a Pollz account to obtain the necessary appId
and appSecret
required for SDK initialization. If you don't have an account, sign up on the .
Node.js Installed: Make sure you have Node.js installed on your development machine. You can download Node.js from .
npm Package Manager: The SDK is installed using npm (Node Package Manager), which comes bundled with Node.js. Ensure that npm is available in your development environment.
To use the pollz-js SDK in your Node.js application, follow these steps:
This command installs the pollz-js package and its dependencies in your project.
In your Node.js application, import the pollz-js SDK:
Create an instance of the PollzSDK class and use the init
method to initialize the SDK with your application credentials (appId
and appSecret
):
Replace 'your-app-id' and 'your-app-secret' with the actual credentials obtained from the Pollz platform.
Congratulations! You have successfully initialized the pollz-js SDK. Now you can explore the SDK's features and integrate Pollz functionality into your Node.js application.