Skip to content

Instantly share code, notes, and snippets.

@mrmch
Created March 14, 2016 20:19
Show Gist options
  • Select an option

  • Save mrmch/a6e2f3e207fc71b7c2a7 to your computer and use it in GitHub Desktop.

Select an option

Save mrmch/a6e2f3e207fc71b7c2a7 to your computer and use it in GitHub Desktop.
# map specific drip campaigns to email addresses
drip_campaign_map = {
"[email protected]": "dc_ZLc2i7ebzzcnYAPKWEcTWh",
"[email protected]": "dc_KN9qPMGMaS4sSntT9yzzA9"
}
try:
drip_id = drip_campaign_map[input['to']['email']]
return [{'email': input['email'], 'drip_id': drip_id}]
except:
pass
return [{'email': '', 'drip_id': ''}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment