Once your users have connected their Mailchimp account, you can use the Paragon SDK to access the Mailchimp API on behalf of connected users.See the Mailchimp REST API documentation for their full API reference.Any Mailchimp API endpoints can be accessed with the Paragon SDK as shown in this example.
JavaScript
Copy
Ask AI
// You can find your project ID in the Overview tab of any Integration.// Authenticate the userparagon.authenticate(<ProjectID>, <Paragon User Token>);// Create a Listawait paragon.request("mailchimp", "/lists/<List ID>", { method: "POST", body: { "members": [{ email_address: "[email protected]" }], "update_existing": true }});// List all Campaignsawait paragon.request("mailchimp", "/campaigns", method: “GET”});
Webhook triggers can be used to run workflows based on events in your users’ Mailchimp account. For example, you might want to trigger a workflow whenever new contacts are added to a Mailchimp list to sync your users’ Mailchimp contacts to your application in real-time.You can find the full list of Webhook Triggers for Mailchimp below: