We've moved discussions to Discord

MailChimp Integration

Steve Delarwelle
I have set up mailchimp integration using an after_create on the user. Its failing and doesn't provide a clear reason why. 


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


Gibbon::MailChimpError (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"=>"6dc037d1-c550-c877-63ce-40feab6ab7c3"}, @raw_body="{\"type\":\"https://mailchimp.com/developer/marketing/docs/errors/\",\"title\":\"Resource Not Found\",\"status\":404,\"detail\":\"Invalid path\",\"instance\":\"6dc037d1-c550-c877-63ce-40feab6ab7c3\"}", @status_code=404):


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}})
Steve Delarwelle
I have set up mailchimp integration using an after_create on the user. Its failing and doesn't provide a clear reason why. 


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


Gibbon::MailChimpError (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"=>"6dc037d1-c550-c877-63ce-40feab6ab7c3"}, @raw_body="{\"type\":\"https://mailchimp.com/developer/marketing/docs/errors/\",\"title\":\"Resource Not Found\",\"status\":404,\"detail\":\"Invalid path\",\"instance\":\"6dc037d1-c550-c877-63ce-40feab6ab7c3\"}", @status_code=404):


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}})
Notifications
You’re not receiving notifications from this thread.
© 2022 Jumpstart Pro by GoRails, LLC