I have a list of recipients for a particular campaign. I believe all of them have at least received one email.
Using python and the email events endpoint, I am testing retrieving email event data for the recipients as follows:
#...various import statements... url='https://api.hubapi.com/contacts/v1/contact/email/[recipient email 123]/profile?hapikey=[my api key]' f = urllib.request.urlopen(url2) print(f.read().decode('utf-8'))
I am finding that although both [recipient email 123] and [recipient email 456] are in the same campaign recipient list, email recipient will return data while recipient 456 will not. Any clue why that would be? As a new hubspot user, I would expect that qualifying only on the recipient email would return data across all the campaigns that have touched them.
My ultimate goal is to return the list of recipients from the email endpoint by qualifying on the campaignid parameter, but until I can solve the above I won't feel confident that I'm catching all the campaign recipients.
Thanks for any advice!