module Attio

def api_base

Returns:
  • (String) - The API base URL
def api_base
  configuration.api_base
end

def api_key

Returns:
  • (String, nil) - The API key
def api_key
  configuration.api_key
end

def api_key=(value)

Returns:
  • (String) - The API key

Parameters:
  • value (String) -- The API key
def api_key=(value)
  configuration.api_key = value
end

def api_version

Returns:
  • (String) - The API version
def api_version
  configuration.api_version
end

def client(api_key: nil)

Returns:
  • (Client) - The HTTP client
def client(api_key: nil)
  Client.new(api_key: api_key)
end

def configuration

Returns:
  • (Attio::Util::Configuration) - The configuration instance
def configuration
  @configuration ||= Util::Configuration.new.tap(&:apply_env_vars!)
end

def configure(&)

Other tags:
    Yieldparam: config - The configuration object

Other tags:
    Yield: - Configuration block
def configure(&)
  configuration.configure(&)
end

def reset!

Returns:
  • (nil) -
def reset!
  @configuration = nil
end