示例#1
0
 public static string Create(
     string clientID,
     string title,
     string unsubscribePage,
     bool confirmedOptIn,
     string confirmationSuccessPage,
     UnsubscribeSetting unsubscribeSetting)
 {
     return Create(CreateSendOptions.ApiKey, clientID, title,
         unsubscribePage, confirmedOptIn, confirmationSuccessPage,
         unsubscribeSetting);
 }
示例#2
0
 public static string Create(
     AuthenticationDetails auth,
     string clientID,
     string title,
     string unsubscribePage,
     bool confirmedOptIn,
     string confirmationSuccessPage,
     UnsubscribeSetting unsubscribeSetting)
 {
     return(HttpHelper.Post <ListDetail, string>(
                auth, string.Format("/lists/{0}.json", clientID), null,
                new ListDetail()
     {
         Title = title,
         UnsubscribePage = unsubscribePage,
         ConfirmedOptIn = confirmedOptIn,
         ConfirmationSuccessPage = confirmationSuccessPage,
         UnsubscribeSetting = unsubscribeSetting.ToString()
     }));
 }
示例#3
0
 public static string Create(
     AuthenticationDetails auth,
     string clientID,
     string title,
     string unsubscribePage,
     bool confirmedOptIn,
     string confirmationSuccessPage,
     UnsubscribeSetting unsubscribeSetting)
 {
     return HttpHelper.Post<ListDetail, string>(
         auth, string.Format("/lists/{0}.json", clientID), null,
         new ListDetail()
         {
             Title = title,
             UnsubscribePage = unsubscribePage,
             ConfirmedOptIn = confirmedOptIn,
             ConfirmationSuccessPage = confirmationSuccessPage,
             UnsubscribeSetting = unsubscribeSetting.ToString()
         });
 }
示例#4
0
 public static string Create(
     string apiKey,
     string clientID,
     string title,
     string unsubscribePage,
     bool confirmedOptIn,
     string confirmationSuccessPage,
     UnsubscribeSetting unsubscribeSetting)
 {
     return HttpHelper.Post<ListDetail, string>(
         new CreateSendCredentials(apiKey, "x"),
         string.Format("/lists/{0}.json", clientID), null,
         new ListDetail()
         {
             Title = title,
             UnsubscribePage = unsubscribePage,
             ConfirmedOptIn = confirmedOptIn,
             ConfirmationSuccessPage = confirmationSuccessPage,
             UnsubscribeSetting = unsubscribeSetting.ToString()
         });
 }
示例#5
0
 public void Update(
     string title,
     string unsubscribePage,
     bool confirmedOptIn,
     string confirmationSuccessPage,
     UnsubscribeSetting unsubscribeSetting,
     bool addUnsubscribesToSuppList,
     bool scrubActiveWithSuppList)
 {
     HttpPut <ListDetailForUpdate, string>(
         string.Format("/lists/{0}.json", ListID), null,
         new ListDetailForUpdate()
     {
         Title                     = title,
         UnsubscribePage           = unsubscribePage,
         ConfirmedOptIn            = confirmedOptIn,
         ConfirmationSuccessPage   = confirmationSuccessPage,
         UnsubscribeSetting        = unsubscribeSetting.ToString(),
         AddUnsubscribesToSuppList = addUnsubscribesToSuppList,
         ScrubActiveWithSuppList   = scrubActiveWithSuppList
     });
 }
示例#6
0
 public void Update(
     string title,
     string unsubscribePage,
     bool confirmedOptIn,
     string confirmationSuccessPage,
     UnsubscribeSetting unsubscribeSetting,
     bool addUnsubscribesToSuppList,
     bool scrubActiveWithSuppList)
 {
     HttpPut<ListDetailForUpdate, string>(
         string.Format("/lists/{0}.json", ListID), null,
         new ListDetailForUpdate()
         {
             Title = title,
             UnsubscribePage = unsubscribePage,
             ConfirmedOptIn = confirmedOptIn,
             ConfirmationSuccessPage = confirmationSuccessPage,
             UnsubscribeSetting = unsubscribeSetting.ToString(),
             AddUnsubscribesToSuppList = addUnsubscribesToSuppList,
             ScrubActiveWithSuppList = scrubActiveWithSuppList
         });
 }