1.1.17 • Published 2 years ago
qp-widgets v1.1.17
About
QuestionPro Cx feedback survey SDK(Software Development Kit) to collect the customer feedback. Capability to integrate it in mobile application and trigger feedback survey whenever you want.
Getting started
Install the package:
npm i qp-widgets
Usage
Initialization
import {initQp} from 'qp-widgets';
let payload = { apiKey: 'api_access_key' };
initQp(payload).then(status => {
console.log('QP Feedback Survey Init status: ' + status);
});
Trigger feedback survey and launch component
import {QpFeedbackSurvey} from 'qp-widgets';
<QpFeedbackSurvey
surveyId={survey_id}
onSurveyFinished={finishedSurvey} />
const finishedSurvey = () => {
//Callback of finish survey or terminate survey.
};
Initialization payload Props
Props | Details | Example | Default Value |
---|---|---|---|
apiKey | [Required] API Access Key of feedback system. | -- | Required field |
[Optional] Respondant email address. If not set this props, the response will be collected as an anonymous. | "john@example.com" | anonymous | |
firstName | [Optional] First name of respondent. | "John" | ' ' |
lastName | [Optional] Last name of respondent. | "john" | ' ' |
mobile | [Optional] Mobile number of respondent. | "+91 222****" | ' ' |
segmentCode | [Optional] Unique code added for each segment. | "S1" | S1 |
themeColorHex | [Optional] Feedback survey component theme color. | "#007bff" | #007bff |
1.1.16
2 years ago
1.1.17
2 years ago
1.1.1
2 years ago
1.1.0
2 years ago
1.0.9
2 years ago
1.0.91
2 years ago
1.0.95
2 years ago
1.0.94
2 years ago
1.0.93
2 years ago
1.0.92
2 years ago
1.1.12
2 years ago
1.1.11
2 years ago
1.1.15
2 years ago
1.1.14
2 years ago
1.1.13
2 years ago
1.0.82
2 years ago
1.0.81
2 years ago
1.0.8
2 years ago
1.0.7
3 years ago
1.0.6
3 years ago
1.0.5
3 years ago
1.0.3
3 years ago
1.0.2
3 years ago
1.0.1
3 years ago