Class ConstructorIO

java.lang.Object
io.constructor.client.ConstructorIO

public class ConstructorIO extends Object
Constructor.io Client
  • Field Details

    • DEFAULT_SECTION

      public static final String DEFAULT_SECTION
      Default section used when no section is specified
      See Also:
    • apiToken

      public String apiToken
    • apiKey

      public String apiKey
    • protocol

      public String protocol
    • host

      public String host
    • basePath

      public String basePath
    • port

      public Integer port
    • version

      public String version
    • constructorToken

      public String constructorToken
  • Constructor Details

    • ConstructorIO

      public ConstructorIO(String apiToken, String apiKey, boolean isHTTPS, String host, String constructorToken)
      Creates a constructor.io Client.
      Parameters:
      apiToken - API Token, gotten from your Constructor.io Dashboard, and kept secret.
      apiKey - API Key, used publicly in your in-site javascript client.
      isHTTPS - true to use HTTPS, false to use HTTP. It is highly recommended that you use HTTPS.
      host - The host of the autocomplete service that you are using. It is recommended that you let this value be null, in which case the host defaults to the Constructor.io autocomplete service at ac.cnstrc.com.
      constructorToken - The token provided by Constructor to identify your company's traffic if proxying requests for results
    • ConstructorIO

      public ConstructorIO(String apiToken, String apiKey, String constructorToken, boolean isHTTPS, String host, String basePath)
      Creates a constructor.io Client.
      Parameters:
      apiToken - API Token, gotten from your Constructor.io Dashboard, and kept secret.
      apiKey - API Key, used publicly in your in-site javascript client.
      constructorToken - The token provided by Constructor to identify your company's traffic if proxying requests for results
      isHTTPS - true to use HTTPS, false to use HTTP. It is highly recommended that you use HTTPS.
      host - The host of the autocomplete service that you are using. It is recommended that you let this value be null, in which case the host defaults to the Constructor.io autocomplete service at ac.cnstrc.com.
      basePath - The basePath to use with the host. It is recommended that you let this value be null, in which there will not be any base path.
    • ConstructorIO

      public ConstructorIO(String apiToken, String apiKey, boolean isHTTPS, String host)
      Creates a constructor.io Client.
      Parameters:
      apiToken - API Token, gotten from your Constructor.io Dashboard, and kept secret.
      apiKey - API Key, used publicly in your in-site javascript client.
      isHTTPS - true to use HTTPS, false to use HTTP. It is highly recommended that you use HTTPS.
      host - The host of the autocomplete service that you are using. It is recommended that you let this value be null, in which case the host defaults to the Constructor.io autocomplete service at ac.cnstrc.com.
    • ConstructorIO

      public ConstructorIO(String apiToken, String apiKey, boolean isHTTPS, String host, int port)
  • Method Details