Skip to content

Instantly share code, notes, and snippets.

View naoswilbrink's full-sized avatar

Naos Wilbrink naoswilbrink

  • Naos Productions BV
  • Amsterdam
View GitHub Profile
@vinknee
vinknee / MailChimpExample.gs
Last active May 12, 2021 06:58
Google Script to interact with MailChimp API v3.0
var API_KEY = 'XXXXXXX';
var API_USER = 'anystring';
var mc_list_id = 'XXXXX'; //List ID found in list settings
// Using adding members with custom signup forms in this example
var mc_base_url = 'https://us14.api.mailchimp.com/3.0/lists/' + mc_list_id + '/members';
//var mc_send = 'https://us14.api.mailchimp.com/3.0/automations/XXXX/emails/XXXXX/queue';
/**
* Used to convert email to MD5 hash to allow auto update of user information with MailChimp 3.0 API w/ PUT
*/