Skip to content

Missing 1 required positional argument #234

@Ryanauger95

Description

@Ryanauger95
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)

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions