Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

contact/sync width custom checkbox field. #120

Open
duskohu opened this issue Jun 11, 2021 · 0 comments
Open

contact/sync width custom checkbox field. #120

duskohu opened this issue Jun 11, 2021 · 0 comments

Comments

@duskohu
Copy link

duskohu commented Jun 11, 2021

Hi, I trying create or update contact with custom checkbox field. I don't know what is wrong.
Can you suggest me?

        $list_id = 1;
        $ac = new \ActiveCampaign('...','.......');

        $contact = array(
            "email" => "[email protected]",
            "p[{$list_id}]" => $list_id,
            "status[{$list_id}]" => 1, 
        );

        $contact['field'] = array(
            '%NEWSLETTER%,0' => 1 // custom checkbox field name Personalization tag
        );

        $contact_sync = $ac->api("contact/sync", $contact);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant