Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Saving the NPS review

Method Objective

The method allows saving the results of the NPS survey.

Syntax and parameters

sdk.review(params) { callback }

NameTypeRequirementDescription
paramsparamsrequiredRequest parameters.
callbackFunctionrequiredThe callback function will be executed if the request is successful.

Request parameters

Name

TypeRequirement

Description

channel

stringrequired

The NPS channel code.

categorystringrequiredThe NPS category code.
ratenumberrequiredThe rating got from the user.
commentstringoptionallyUser comment.
order_idstringoptionallyOrder 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
}

  • No labels