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

Whats the keyname for first name? #295

Open
akation opened this issue Apr 30, 2020 · 1 comment
Open

Whats the keyname for first name? #295

akation opened this issue Apr 30, 2020 · 1 comment

Comments

@akation
Copy link

akation commented Apr 30, 2020

Hi, I tried wit first_name and FNAME but it might be wrong.

$result = $MailChimp->post("lists/$listID/members", [ 'email_address' => post('email'), 'FNAME' => post('name'), 'status' => 'subscribed', ]);

Thanks for the help.

@v-kolodii
Copy link

v-kolodii commented May 22, 2020

Try like this: 'email_address' => post('email')
'status' => 'subscribed',
'merge_fields' => [
'FNAME' => post('name'),
'LNAME' => post('name'),
]
It's work for me.

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

2 participants