You are viewing an old version of this page. View the current version.
Compare with Current View Page History
« Previous Version 9 Next »
The method allows getting information for all active NPS categories.
Any of the parameters below can be used to obtain profile properties:
HTTP status code
The request was successful.
The API returns an array of category objects. Below are the properties of a single object.
The name of the NPS category.
curl 'https://api.personaclick.com/nps/categories?shop_id=0d42fd8b713d0752776ca589cc0056'
The method allows getting information for all active NPS channels.
The API returns an array of channel objects. Below are the properties of a single object.
The name of the NPS channel.
curl 'https://api.personaclick.com/nps/channels?shop_id=0d42fd8b713d0752776ca589cc0056'
The method allows saving the results of the NPS survey.
Name
Description
channel
The NPS channel code.
The response is JSON type with the following properties:
Current status. Can have one of two values:
The text of the error if it occurred
# by using shop secret and user's email # curl 'https://api.personaclick.com/nps/create' \ -X 'POST' \ -H 'content-type: application/x-www-form-urlencoded' \ -d 'shop_id=0d42fd8b713d0752776ca589cc0056&shop_secret=0123456789abcdef0123456789abcdef&category=category_id&channel=channel_id&rate=8&comment=ok%20thanks&email=john.doe%40examplemail.com' # by using DID # curl 'https://api.personaclick.com/nps/create' \ -X 'POST' \ -H 'content-type: application/x-www-form-urlencoded' \ -d 'shop_id=0d42fd8b713d0752776ca589cc0056&did=7rjVGhMykT&category=category_id&channel=channel_id&rate=8&comment=ok%20thanks'