from dataclasses import dataclass from owsclient import OwsClient @dataclass class OwsNotificationsClient: ows_client: OwsClient service_name = "ows-notifications" def notify_audience_file_exported( self, identity_id: str, audience_name: str, filename: str, password: str, ) -> None: response = self.ows_client.post( self.service_name, "/audience/audience-file-exported", json={ "identity_id": identity_id, "audience_name": audience_name, "filename": filename, "password": password, }, ) response.raise_for_status()