Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • keilo 568 posts 1023 karma points
    Jul 25, 2015 @ 05:26
    keilo
    0

    How to get List of Custom Provider

    For retrieving the list of built-in mailing lists, the code below works fine; var subscriberepo = new NewsletterStudio.Infrastucture.Data.SubscriberRepository();
    var mailingListrepo = new NewsletterStudio.Infrastucture.Data.MailingListRepository();

    from which one can display a checkbox group for user to subscribe/unsubscribe.

    My question is how do you go about doing the same for Custom provider, taking the example from contribv2 I have the following;

    • testCustomProvider - which contains about 10 different groups (lists)
    • downloadprovider - which contains one main group (list)

    I would like to know how I can (show) iterate the "lists" in the custom providers, to serve end-user a consolidated lists (Default repo + Custom repo + download repo) from which user can select subscribe and unsubscribe via checkboxes.

    cheers!

  • Markus Johansson 1918 posts 5785 karma points MVP c-trib
    Jul 25, 2015 @ 13:05
    Markus Johansson
    0

    Hi!

    To get the "lists" you should just call the GetListItems()-method on the provider and to get the content of one list (the subscribers) you just call the GetSubacribersForSendOut()-method and passing the list id that you are looking for.

    Cheers!

Please Sign in or register to post replies

Write your reply to:

Draft