module WolfCore::Integrations::ClientApiOperations
def fetch_client!(wolf_token:, client_id:, tenant:, wolf_platform_url:, error_message:)
def fetch_client!(wolf_token:, client_id:, tenant:, wolf_platform_url:, error_message:) response = safe_http_get( headers: { "Authorization" => "Bearer #{wolf_token}" }, url: "#{wolf_platform_url}/api/v2/companies/#{client_id}", query: { tenant: tenant }, error_message: error_message ) response_body = response.body response_body.dig("data", "table", "company") end