Net Promoter Score (iOS SDK)
- Andrey Veprikov
Owned by Andrey Veprikov
Saving the NPS review
Method Objective
The method allows saving the results of the NPS survey.
Syntax and parameters
sdk.review(params) { callback }
Name | Type | Requirement | Description |
---|---|---|---|
params | params | required | Request parameters. |
callback | Function | required | The callback function will be executed if the request is successful. |
Request parameters
Name | Type | Requirement | Description |
---|---|---|---|
channel | string | required | The NPS channel code. |
category | string | required | The NPS category code. |
rate | number | required | The rating got from the user. The value must be an integer between 1 and 10. |
comment | string | optionally | User comment. |
order_id | string | optionally | Order ID, related to the current survey |
Example of use
sdk.review(rate: 9, channel: "ios_app", category: "delivery", order_id: "ORDER-100500", comment: "It's not bad, but it could be better.") { _ in // when the survey is successfully saved }
Page Navigation
Related Pages
-
Page:
-
Page:
-
Page:
Copyright 2018-2024 PersonaClick