public void New_Subscriber_Is_Added()
        {
            MailChimpClient client = new MailChimpClient(Constants.ApiKey);

            var request = new AddSubscriberRequest(Constants.ListId);
            request.EmailAddress = "*****@*****.**";
            request.Status = SubscriberStatus.Subscribed;
            request.MergeFields = new Dictionary<string, object>() { { "subscribe", "GET FREE PDF" }, { "JARBOO_PLA", "GetPdfEbook" } };
            var response = client.Subscribers.Post(request);

            Assert.IsNotNull(response);
            Assert.IsNotNull(response.Result);
        }
        public void Subscribe(Subscriber subscriber)
        {
            var addSubscriberRequest = new AddSubscriberRequest(listId);
            addSubscriberRequest.EmailAddress = subscriber.Email;
            addSubscriberRequest.Status = SubscriberStatus.Subscribed;
            addSubscriberRequest.MergeFields = new Dictionary<string, object>() { { JARBOO_PLA, subscriber.JarbooPlacement } };

            try
            {
                _mailChimpClient.Subscribers.Post(addSubscriberRequest);
            }
            catch (Exception ex)
            {
                Logger.Error(ex);
            }
        }