12 Comments

  1. Hi, very nice tutorial. Very helpful. One thing is not working:

                var model = await Manager.Members.GetAllAsync("f809a0eba9", new MemberRequest { 
                   Limit = 100, 
                   Status = Status.Subscribed 
                });
    

    This parameter is not working: Status = Status.Subscribed (or any other Status, nothing is passed to model)

  2. Hi @MVafx,

    I haven’t had a chance to look at this but it’s possible the Status object might be broken in a new release of the library. Try rolling back to version 1.9.1 and see if that fixes the problem. If not, there is something else wrong with your code.

    Update, 30 October 2017: See Rohit’s comment below.

  3. @MVafx,

    I faced the same issue and chatted with the mailchimp support, please also set “StatusIfNew” flag to Status.Subscribed as well, then it will work.

    Thanks
    Rohit

  4. HI article is very nice,but I would like to know how to add multiple members to a list,please post the link if available.

  5. Hi Doug, I know it’s a stupid question, but I don’t understand why this code works fine during the debug session instead of the release mode in production.
    Sorry but I’m new in the async world and it’s a little bit complicate to understand the dynamics…
    Thanks for you support.

  6. @Filippo: Generally speaking, the only real difference between a debug and release version of a project is the configuration file. My guess is you have a bad API key in your release configuration.

  7. @Pedro: If you know the segment ID, it would be something like this:

    var model = await Manager.ListSegments.GetAllMembersAsync(listId, segmentId, new QueryableBaseRequest { Limit = 100 });
    

    model will be an IEnumerable<MailChimp.Net.Models.Member>

    That method is defined in the ListSegmentLogic class.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

  • Check out the Commenting Guidelines before commenting, please!
  • Want to share code? Please put it into a GitHub Gist, CodePen or pastebin and link to that in your comment.
  • Just have a line or two of markup? Wrap them in an appropriate SyntaxHighlighter Evolved shortcode for your programming language, please!