class Ittybit::AsyncClient

def initialize(token:, base_url: nil, environment: Ittybit::Environment::DEFAULT, max_retries: nil,

Returns:
  • (Ittybit::AsyncClient) -

Parameters:
  • version (String) --
  • token (String) --
  • timeout_in_seconds (Long) --
  • max_retries (Long) -- The number of times to retry a failed request, defaults to 2.
  • environment (Ittybit::Environment) --
  • base_url (String) --
def initialize(token:, base_url: nil, environment: Ittybit::Environment::DEFAULT, max_retries: nil,
               timeout_in_seconds: nil, version: nil)
  @async_request_client = Ittybit::AsyncRequestClient.new(
    base_url: base_url,
    environment: environment,
    max_retries: max_retries,
    timeout_in_seconds: timeout_in_seconds,
    token: token,
    version: version
  )
  @automations = Ittybit::AsyncAutomationsClient.new(request_client: @async_request_client)
  @files = Ittybit::AsyncFilesClient.new(request_client: @async_request_client)
  @media = Ittybit::AsyncMediaClient.new(request_client: @async_request_client)
  @tasks = Ittybit::AsyncTasksClient.new(request_client: @async_request_client)
  @signatures = Ittybit::AsyncSignaturesClient.new(request_client: @async_request_client)
end