def addToAudience(email, fName, lName):
try:
response = mailchimp.lists.members.update('XXXXX', {
'email_address': email,
'status': 'subscribed',
'data' : {},
'merge_fields': {
'FNAME': fName,
'LNAME': lName,
'data': {},
}
})
except Exception as e:
print("Exception:", e)
Is this an error from the mailchimp3 product or the Mailchimp API? Any idea how I could fix this?
Exception: update() missing 1 required positional argument: 'data'Is this an error from the mailchimp3 product or the Mailchimp API? Any idea how I could fix this?