This PR adds a client for the Email Subscription API with methods for some of its endpoints.
Since the Update email subscription status for an email address endpoint allows for different data formats (see examples in the HubSpot docs), it received multiple methods in the client to be able to either send raw data or to more comfortably use the individual formats.
This PR adds a client for the Email Subscription API with methods for some of its endpoints.
Since the Update email subscription status for an email address endpoint allows for different data formats (see examples in the HubSpot docs), it received multiple methods in the client to be able to either send raw data or to more comfortably use the individual formats.