Copied to clipboard

Flag this post as spam?

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


  • keilo 563 posts 1018 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 1701 posts 4879 karma points 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!

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies