Interface ServiceBuilderCommon

    • Method Detail

      • callback

        ServiceBuilderCommon callback​(java.lang.String callback)
        Adds an OAuth callback url
        Parameters:
        callback - callback url. Must be a valid url or 'oob' (OAuthConstants.OOB for out of band OAuth
        Returns:
        the ServiceBuilder instance for method chaining
      • apiKey

        ServiceBuilderCommon apiKey​(java.lang.String apiKey)
        Configures the api key
        Parameters:
        apiKey - The api key for your application
        Returns:
        the ServiceBuilder instance for method chaining
      • apiSecret

        ServiceBuilderCommon apiSecret​(java.lang.String apiSecret)
        Configures the api secret
        Parameters:
        apiSecret - The api secret for your application
        Returns:
        the ServiceBuilder instance for method chaining
      • apiSecretIsEmptyStringUnsafe

        ServiceBuilderCommon apiSecretIsEmptyStringUnsafe()
        Configures the api secret as "" (empty string). Used usually for a test environments or another strange cases. Not all providers support empty string as api key and will throw an Exception in such cases.
        Returns:
        the ServiceBuilder instance for method chaining
      • httpClient

        ServiceBuilderCommon httpClient​(HttpClient httpClient)
        takes precedence over httpClientConfig
        Parameters:
        httpClient - externally created HTTP client
        Returns:
        the ServiceBuilder instance for method chaining