Webhook for email confirmation.

274 views
Skip to first unread message

Tomas Rainbolt

unread,
Nov 14, 2011, 5:17:44 PM11/14/11
to MailChimp API Discuss
I'm new to the Mailchimp API and although it's very easy to use I must
be missing something here. I need a webhook to notify of confirmed
emails or I need to send them to a custom page. Preferably the latter
because I need to update the user session if one is open. It's
important to know if the user is confirmed without having to hit my
database on every action just to check if it's confirmed.

Any ideas?

winfred

unread,
Nov 14, 2011, 5:26:35 PM11/14/11
to mailchimp-...@googlegroups.com
http://apidocs.mailchimp.com/webhooks/

for example, the confirmed subscription hook posts this data to your server.

"type": "subscribe", 
"fired_at": "2009-03-26 21:35:57", 
"data[id]": "8a25ff1d98", 
"data[list_id]": "a6b5da1054",
"data[email]": "blahblahblah", 
"data[email_type]": "html", 
"data[merges][EMAIL]": "blahblahblahATblah.com", 
"data[merges][FNAME]": "MailChimp", 
"data[merges][LNAME]": "API", 
"data[merges][INTERESTS]": "Group1,Group2", 
"data[ip_opt]": "10.20.10.30", 
"data[ip_signup]": "10.20.10.30"

And setting custom thank you pages can be done with their application.

Can I design and host my own “thank you” pages instead of using MailChimps?: http://eepurl.com/gOGB

Tomas Rainbolt

unread,
Nov 14, 2011, 5:37:26 PM11/14/11
to MailChimp API Discuss
Ok, but what is different from what's returned here between
"subscribe" and "confirm." Am I not going to get the same exact
response on both events?

winfred

unread,
Nov 14, 2011, 5:49:27 PM11/14/11
to mailchimp-...@googlegroups.com
Sure thing, perhaps I'm missing something here. (Just a friendly fellow dev)

Here are their events with hooks
  • Subscribes
  • Unsubscribes
  • Profile Updates
  • Email Address Changes
  • Cleaned Emails
  • Campaign Sending status (can not be limited by source)
The subscribe event is the confirm event. (there aren't two) The subscribe event won't send out until they have confirmed subscription to the list (if using double opt-in).

Tomas Rainbolt

unread,
Nov 14, 2011, 6:00:39 PM11/14/11
to MailChimp API Discuss
Ok good. The way I took it was that it fired on subscribe, if this is
the confirm event they really should rename it or put that in the
documentation.

Thanks.



On Nov 14, 5:49 pm, winfred <win.nad...@gmail.com> wrote:
> Sure thing, perhaps I'm missing something here. (Just a friendly fellow dev)
>
> Here are their events with hooks
>
>    - Subscribes
>    - Unsubscribes
>    - Profile Updates
>    - Email Address Changes
>    - Cleaned <http://eepurl.com/gY52> Emails
>    - Campaign Sending status (can not be limited by source)

winfred

unread,
Nov 14, 2011, 6:37:29 PM11/14/11
to mailchimp-...@googlegroups.com
But they haven't subscribed until they have confirmed (if using double opt-in)


???
Reply all
Reply to author
Forward
0 new messages