email exists

Nov 2, 2011 at 9:09 AM

Is there an easy way to check if a given email already exists on a specific list?

I cant find a method for that in the api...

Coordinator
Nov 2, 2011 at 9:41 AM
http://apidocs.mailchimp.com/api/1.3/listmemberinfo.func.php

On Wed, Nov 2, 2011 at 11:09 AM, tommer70 <notifications@codeplex.com> wrote:

From: tommer70

Is there an easy way to check if a given email already exists on a specific list?

I cant find a method for that in the api...

Read the full discussion online.

To add a post to this discussion, reply to this email (mcapinet@discussions.codeplex.com)

To start a new discussion for this project, email mcapinet@discussions.codeplex.com

You are receiving this email because you subscribed to this discussion on CodePlex. You can unsubscribe or change your settings on codePlex.com.

Please note: Images and attachments will be removed from emails. Any posts to this discussion will also be available online at codeplex.com




--
Denis K
Nov 2, 2011 at 10:36 AM

Ok, i find that strange :-)

But here is my function if others need it:

 protected bool MCEmailExists(string strApiKey, string strListId, string strEmail)
  {
        bool blnReturn = true;
        var mcapi = new MCApi(strApiKey, true);
        List.MemberInfo memberinfo = mcapi.ListMemberInfo(strListId, strEmail);
        if (memberinfo.Success.Value==0)
        {
            blnReturn = false;
        }
        return blnReturn;
  }