1.0.2 • Published 5 months ago
feedbackspark v1.0.2
Install with NPM/Yarn
Use the following command to install FeedbackSpark in your javascript apps.
npm install --save feedbackspark
Usage
import spark from feedbackspark;
spark("init", API_TOKEN);
APIs
Set User (Recommended)
spark("setUser", USER_ID);
Logout User
Do not forget to log out user from FeedbackSpark when they log out from your application. This is to avoid assigning their user id to some other user.
spark("logoutUser");
Manually trigger a specific survey
spark("showSurvey", SURVEY_CODE);
Look for survey code in the survey creation page.
Explore FeedbackSpark docs »