Skip to content

Instantly share code, notes, and snippets.

View ernestjumbe's full-sized avatar

Ernest Jumbe ernestjumbe

View GitHub Profile
@jpalala
jpalala / Generated Javascript file
Created October 16, 2017 06:36 — forked from bertt/Generated Javascript file
TypeScript and JQuery sample
var Person = (function () {
function Person(name) {
this.name = name;
}
return Person;
})();
function greeter(person) {
return "hallo " + person.name;
}
var person = new Person("bert");
As i had a hard time finding anything in the mailchimp documentation, i thought it might help a lost soul to put this info here:
If you cannot find your marketing_permission_id of your mailchimp list (eg. for GDPR compliance), you can do a signup request (maybe others too),
using the API, and it will return its data, including the marketing_permissions array containing the unique id for the opt-in.
POST:
{
"email_address": "[email protected]",
"status": "subscribed",
"status_if_new": "subscribed",
"merge_fields": {
"FNAME": "John",