Forum Replies Created

Viewing 1 replies (of 1 total)
  • Thread Starter fgeier

    (@fgeier)

    Great, thank you!
    I managed to add and update contacts using the function:

    $args = [
    ‘list’ => ‘4’,
    ’email’ => sanitize_email( ’[email protected]’),
    ‘first_name’ => sanitize_text_field( ‘Test ‘ ),
    ‘last_name’ => sanitize_text_field( ‘Test’ ),
    ‘website’ => ”,
    ];

    return constantcontact_api()->add_contact( $args );

    The contact is created and logged correctly, however the first and last name are not added, only the email address.

    [2020-02-22 21:36:15] API.INFO: Submitted contact data [“Extra information”,[{“list”:”4″,”email”:”***@gmail.com”,”first_name”:”Test”,”last_name”:”Test”,”website”:””}]] []

    Any idea why?

    Thank you

Viewing 1 replies (of 1 total)