Survey URL API

The purpose of the Survey URL API is to provide clients with a way to launch a post chat survey. API returns a URL which must be opened in an external browser or in a Webview.

SDK also provides an easy way of retrieving survey URL if agent closes the engagement session before the user initiates the close. NuanMessaging.getInstance().surveyUrl, This retrieves the url only when agent closes the engagement session. Application has to use the SurveyURLAPI when user initiates the close.

  1. Using SurveyURLAPI
  2. Accessing SurveyUrlResponse
  3. Code Example
Public Methods

Public Properties
Public Methods
  • long statusCode

    statusCode property will have one of the following values.


    401: Chat can not be created

    400: Request has incorrect parameters

    403: User hasn't privileges to use api or to see requested site

    500: Server error


	 
	let survey = SurveyURLAPI();
	survey.getSurveyData({ (success, error) in
	    if(error != nil) {
		
		} else {
		     
		}
	 });