Skip to content

Custom filter

CustomFilter #

CustomFilter(identifier: str, values: list[str])

Bases: RapidataFilter

CustomFilter Class

Can be used to filter who to target based on custom filters.

Ought to be used with contact to Rapidata.

Warning: If identifier does not exist, order will not get any responses.

Parameters:

Name Type Description Default
identifier str

Identifier of the custom filter.

required
values list[str]

List of values to filter by.

required
Source code in src/rapidata/rapidata_client/filter/custom_filter.py
def __init__(self, identifier: str, values: list[str]):
    self.identifier = identifier
    self.values = values