from directory_api_client.base import BaseAPIClient


class NotificationsAPIClient(BaseAPIClient):

    endpoints = {
        'anonymous-unsubscribe': '/notifications/anonymous-unsubscribe/',
    }

    def anonymous_unsubscribe(self, signed_email_address):
        url = self.endpoints['anonymous-unsubscribe']
        return self.post(url, {'email': signed_email_address})
