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); }
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() })); }
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() }); }
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() }); }
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 }); }
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 }); }