Customers

class dfir_iris_client.customer.Customer(session)

Handles the customer methods

get_customer_by_id(customer_id: int) ApiResponse

Returns a customer from its ID

Parameters:

customer_id – Customer ID to look up

Returns:

ApiResponse object

list_customers() ApiResponse

Returns a list of the available customers

Returns:

ApiResponse object

Args:

Returns:

ApiResponse object

lookup_customer(customer_name) ApiResponse

Returns a customer ID if customer name is found. Customer names are unique in the database. Customer ID is in the data section of the API response aka id = parse_api_data(resp.get_data(), ‘customer_id’)

Parameters:

customer_name – Name of the customer to lookup

Returns:

ApiResponse object