MailChimp.NET icon indicating copy to clipboard operation
MailChimp.NET copied to clipboard

Unsubscribe?

Open tcampione opened this issue 10 years ago • 2 comments

I can subscribe a person without issue using: EmailParameter results = mc.Subscribe("YourListID", email);

I would think that unsubscribing would therefore be: EmailParameter results = mc.Unsubscribe("YourListID", email);

However, VS2012 complains: "Cannot implicitly convert type 'MailChimp.Lists.UnsubscribeResult' to 'MailChimp.Helper.EmailParameter'"

What is the correct syntax for unsubscribe?

tcampione avatar Jan 29 '15 21:01 tcampione

The return value from Unsubscribe is an UnsubscribeResult -- not an EmailParameter like in your example. You should be able to see the return result with intellisense in Visual Studio. Does that make sense?

danesparza avatar Jan 29 '15 21:01 danesparza

Yep... got it. Thank you.

tcampione avatar Jan 29 '15 22:01 tcampione