Versions Compared
compared with
Key
- This line was added.
- This line was removed.
- Formatting was changed.
Saving the NPS review
Method Objective
The method allows saving the results of the NPS survey.
Syntax and parameters
Code Block | ||||
---|---|---|---|---|
| ||||
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. |
comment | string | optionally | User comment. |
order_id | string | optionally | Order ID, related to the current survey |
Example of use
Code Block | ||||
---|---|---|---|---|
| ||||
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 } |
Column | ||||
---|---|---|---|---|
Page Navigation
|
Related Pages
|