Configure authentication using OAuth2
masterTo use OAuth2 authentication, call mailchimp.setConfig() and provide your accessToken and the server prefix (e.g., us19). The server prefix is required so the client can determine the appropriate host URL.
mailchimp.setConfig({
accessToken: 'YOUR_ACCESS_TOKEN',
server: 'YOUR_SERVER_PREFIX',
});