We've moved discussions to Discord

Mailchimp configuration setup

How to configure mailchimp for sending email?, I have mailchimp API key.
Chris Oliver
Add it to your credentials and then enable it in the integrations. Then you can use the helper to add users to a list.

See the docs: https://jumpstartrails.com/docs/integrations
 : Thanks and working fine
Steve Delarwelle
I added this to an after_create on the user and its failing. Any ideas?

/Users/admin/.rvm/gems/ruby-3.0.3/gems/gibbon-3.4.4/lib/gibbon/api_request.rb:134:in `handle_error': the server responded with status 404 @title="Resource Not Found", @detail="Invalid path", @body={"type"=>"https://mailchimp.com/developer/marketing/docs/errors/", "title"=>"Resource Not Found", "status"=>404, "detail"=>"Invalid path", "instance"=>"4642a44e-666b-2ef9-0f18-b3afeeab7b29"}, @raw_body="{\"type\":\"https://mailchimp.com/developer/marketing/docs/errors/\",\"title\":\"Resource Not Found\",\"status\":404,\"detail\":\"Invalid path\",\"instance\":\"4642a44e-666b-2ef9-0f18-b3afeeab7b29\"}", @status_code=404 (Gibbon::MailChimpError)
/Users/admin/.rvm/gems/ruby-3.0.3/gems/faraday-2.2.0/lib/faraday/response/raise_error.rb:22:in `on_complete': the server responded with status 404 (Faraday::ResourceNotFound)

Jumpstart::Clients.mailchimp.members.create(body: {email_address: self.email, status: "subscribed", merge_fields: {FNAME: self.first_name, LNAME: self.last_name}})
Steve Delarwelle
Looks like you need to specify a list, the documentation should be updated.

Jumpstart::Clients.mailchimp.list("XXXXXXXX").members.create(body: {email_address: self.email, status: "subscribed", merge_fields: {FNAME: self.first_name, LNAME: self.last_name}})

Oh, the doc here is correct. My version of the codebase doesn't specify using the .list("xxxx")

Looks like i need to update.

How to configure mailchimp for sending email?, I have mailchimp API key.
Chris Oliver
Add it to your credentials and then enable it in the integrations. Then you can use the helper to add users to a list.

See the docs: https://jumpstartrails.com/docs/integrations
 : Thanks and working fine
Steve Delarwelle
I added this to an after_create on the user and its failing. Any ideas?

/Users/admin/.rvm/gems/ruby-3.0.3/gems/gibbon-3.4.4/lib/gibbon/api_request.rb:134:in `handle_error': the server responded with status 404 @title="Resource Not Found", @detail="Invalid path", @body={"type"=>"https://mailchimp.com/developer/marketing/docs/errors/", "title"=>"Resource Not Found", "status"=>404, "detail"=>"Invalid path", "instance"=>"4642a44e-666b-2ef9-0f18-b3afeeab7b29"}, @raw_body="{\"type\":\"https://mailchimp.com/developer/marketing/docs/errors/\",\"title\":\"Resource Not Found\",\"status\":404,\"detail\":\"Invalid path\",\"instance\":\"4642a44e-666b-2ef9-0f18-b3afeeab7b29\"}", @status_code=404 (Gibbon::MailChimpError)
/Users/admin/.rvm/gems/ruby-3.0.3/gems/faraday-2.2.0/lib/faraday/response/raise_error.rb:22:in `on_complete': the server responded with status 404 (Faraday::ResourceNotFound)

Jumpstart::Clients.mailchimp.members.create(body: {email_address: self.email, status: "subscribed", merge_fields: {FNAME: self.first_name, LNAME: self.last_name}})
Steve Delarwelle
Looks like you need to specify a list, the documentation should be updated.

Jumpstart::Clients.mailchimp.list("XXXXXXXX").members.create(body: {email_address: self.email, status: "subscribed", merge_fields: {FNAME: self.first_name, LNAME: self.last_name}})

Oh, the doc here is correct. My version of the codebase doesn't specify using the .list("xxxx")

Looks like i need to update.

Notifications
You’re not receiving notifications from this thread.
© 2022 Jumpstart Pro by GoRails, LLC