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

Create new list $MailChimp->post("lists", [...]); #316

Open
petrkl opened this issue Sep 18, 2022 · 0 comments
Open

Create new list $MailChimp->post("lists", [...]); #316

petrkl opened this issue Sep 18, 2022 · 0 comments

Comments

@petrkl
Copy link

petrkl commented Sep 18, 2022

Hi,
I don`t understand how to create a new List
my requet
$result = $MailChimp->post("lists", [
"name" => "name",
"permission_reminder" => "permission_reminder",
"email_type_option" => true,
"contact" => [
"company" => "company",
"address1" => "address1",
"city" => "city",
"country" => "country",
],
"campaign_defaults" => [
"from_name" => "from_name",
"from_email" => "[email protected]",
"subject" => "subject",
"language" => "language",
],]);

And i have a error 400 Invalid Resource
What the right way to do this request?

Thanks for answer

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