Class RequestConfig.Builder

    • Method Detail

      • toWebhook

        public RequestConfig.Builder toWebhook​(boolean value)
        Set whether the data returned from the API request will be in the response body or sent to the developer webhook. If this is not specified, it will default to true (the data will be sent to webhook).
        Parameters:
        value - boolean to set the to_webhook parameter to
        Returns:
        this builder object for method chaining
      • retryIfRateLimited

        public RequestConfig.Builder retryIfRateLimited​(boolean value)
        Set whether to retry the request if the request has been rate limited by the provider.
        Parameters:
        value - boolean to set the to_webhook parameter to
        Returns:
        this builder object for method chaining