CloseEngagementAPI

The the CloseEngagementAPI call gives customers a way to close the current messaging session with the agent.

API method for sending customer close message is exposed from the NuanMessaging class. Get the instance of NuanMessaging by using the code shown here.

  1. Using the Close EngagementAPI
  2. Accessing Response
  3. Code Example
Public Methods

Public Methods
  • public int getStatusCode()

    getStatusCode method returns following values which denotes status of this request


    400: Request has incorrect parameters.

    401: There is no such chat on server, chat should be started anew

    403: The user does not have sufficient privileges to use the API or to access the requested site.

    500: Server error.



	 NuanMessaging nuanMessaging = NuanMessaging.getInstance();
	  try {
            nuanMessaging.closeEngagement();
		}catch(IllegalStateException e){
			Log.e("Nuance Messaging", e.getMessage());
		}