I am using the MailChimp.net api here: https://github.com/danesparza/MailChimp.NET
Here is the code I currently have, which works for subscribing users to my list, but obviously it throws an exception when the email already exists in the mailchimp list, and the API isn't fully complete yet, so not all mailchimp methods are available to me.
//SUBSCRIBE IN MAILCHIMP
MailChimpManager mc = new MailChimpManager("**API-KEY**");
// Create the email parameter
EmailParameter subscriber = new EmailParameter()
{
Email = model.email
};
EmailParameter results = mc.Subscribe("**LIST-ID*", subscriber);
I've been trying to do something like this:
mc.GetMemberInfo("**LIST-ID**", "member email");
But i don't know the correct syntax or if that is even the correct method to use.
Mailchimp doesn't give me a clear cut way for handling exceptions, and I'm not the best backend developer. I know I need to check if the email exists in the list, just need a little help getting there.
Thanks all for any help!