Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how we can restore deleted Subscriber ? #72

Open
atifgk opened this issue Nov 9, 2022 · 1 comment
Open

how we can restore deleted Subscriber ? #72

atifgk opened this issue Nov 9, 2022 · 1 comment

Comments

@atifgk
Copy link

atifgk commented Nov 9, 2022

                Subscriber subscriber = new Subscriber(auth, item.ListID);
                if (subscriber.Get(email, true) != null)
                    {
                        subscriber.Delete(email);
                    }                

Want to restore this deleted Subscriber?

@atifgk atifgk changed the title how we can restore delete how we can restore deleted Subscriber ? Nov 9, 2022
@markstaples
Copy link
Contributor

Hi @atifgk - you should be able to "restore" a deleted subscriber by using the add or update methods under Subscribers setting the resubscribe parameter to True

https://github.com/campaignmonitor/createsend-dotnet/blob/master/createsend-dotnet/Subscriber.cs#L38-L88

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants