function Mailchimp(api_key) { var api_key_regex = /.+\-.+/ if (!api_key_regex.test(api_key)) { throw new Error('missing or invalid api key: ' + api_key) } this.__api_key = api_key; this.__base_url = "https://"+ this.__api_key.split('-')[1] + ".api.mailchimp.com/3.0" }
n/a