Hello! ![]()
I am trying to use the Subscription python API to check and modifty the subscription of our contacts. I am trying to retrive the subscription information of my contacts via the python API as it is indicated in the documentation. I am doing:
import hubspot
from pprint import pprint
from hubspot.communication_preferences.subscribe import ApiException
try:
api_response = client.communication_preferences.subscribe.status_api.get_email_status(email_address=“myemail@gmail.com”)
pprint(api_response)
except ApiException as e:
print(“Exception when calling status_api->get_email_status: %s\n” % e)
and I am getting the following error:
ModuleNotFoundError: No module named ‘hubspot.communication_preferences.subscribe’
I have been working with the other HS python API and never got this kind of error (so the HS library is properly installed I guess). Just wondering if I should do something else which is missed in the documentation (or maybe it’s written somewhere else)?
Many thanks in advance for your help,
Iván.