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.
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.
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;
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!
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!
is working on a reply...