Class HTTPToZendeskUtils

java.lang.Object
com.illumon.iris.console.events.HTTPToZendeskUtils

public class HTTPToZendeskUtils
extends Object
Utilities to send HTTP requests to Zendesk
  • Constructor Details

  • Method Details

    • sendPost

      public static int sendPost​(List<String> filePaths, String userName, String email, String subject, String userMessage, String[] tags, com.fishlib.io.logger.Logger log, boolean bypassDialog) throws org.apache.http.client.HttpResponseException
      Create a JSON post request to Zendesk to create a support ticket.
      Parameters:
      filePaths - files to attach to the ticket
      userName - user for which the ticket will be created
      email - users email
      subject - subject of the ticket
      userMessage - user comment on the ticket
      tags - tags for the ticket
      log - log
      bypassDialog - if the dialog for large zip files should be bypassed
      Returns:
      ticket number if all went well, -1 if not
      Throws:
      org.apache.http.client.HttpResponseException - HTTP error response
    • getJavaSessionInfo

      public static String getJavaSessionInfo()
      Gets system properties.
      Returns:
      system properties
    • getConfigurationParameters

      public static String getConfigurationParameters()
      Gets the Iris configuration
      Returns:
      Iris configuration