Created
March 14, 2016 20:19
-
-
Save mrmch/a6e2f3e207fc71b7c2a7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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