Skip to content

Instantly share code, notes, and snippets.

@zubairov
Forked from khanzadyan/NewTaskAPISample.json
Last active November 9, 2015 13:55
Show Gist options
  • Save zubairov/52c56548b3c2bf636e0f to your computer and use it in GitHub Desktop.
Save zubairov/52c56548b3c2bf636e0f to your computer and use it in GitHub Desktop.
{
"name" : "WebHook to Mailchimp",
"nodes" : [
{
"action" : "elasticio/webhook:receive",
"config": {
"payload": "email,first,last"
}
},
{
"action" : "elasticio/mapper:map",
"config": {
"mapper" : {
"lastName" : "{{last}}",
"firstName" : "{{first}}",
"salutation" : "{{salutation}}",
"email_type" : "html",
"email" : "{{email}}"
},
"lookupTables": {
"salutation": "lookup-table-id-to-be-used-for-salutation"
}
}
},
{
"action" : "elsaticio/mailchimp:subscribe",
"config": {
"listId" : "8779dd762e",
"_account" : "54536902230d250700000016"
}
}
]
}
{
"name": "WebHook to Mailchimp",
"user": "54536862230d250700000014",
"status": "inactive",
"recipe": {
"nodes": [
{
"id": "elasticio/webhook:receive[0]",
"compId": "webhook",
"function": "receive"
},
{
"id": "elasticio/mapper:map[1]",
"compId": "mapper",
"function": "map"
},
{
"id": "elsaticio/mailchimp:subscribe[2]",
"compId": "mailchimp",
"function": "subscribe"
}
],
"connections": [
{
"to": "elasticio/mapper:map[1]",
"from": "elasticio/webhook:receive[0]"
},
{
"to": "elsaticio/mailchimp:subscribe[2]",
"from": "elasticio/mapper:map[1]"
}
]
},
"data": {
"elasticio/webhook:receive[0]": {
"payload": "email,first,last"
},
"elsaticio/mailchimp:subscribe[2]": {
"listId": "8779dd762e",
"_account": "54536902230d250700000016"
},
"elasticio/mapper:map[1]": {
"mapper": {
"lastName": "{{last}}",
"firstName": "{{first}}",
"email_type": "html",
"email": "{{email}}"
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment