0

Here they published the https://github.com/brandonseydel/MailChimp.Net api 3.0, it is live now. But they didn't say anything about how to use batch to upload many members in one request.

I have searched in stackoverflow and also google, they either implement using php or said it was not supported yet. such as from this topic (MailChimp API 3.0 batch/bulk subscribe), was from 2015. As a year passed, just wonder anyone know how can I send multiple members (email addresses) to a list in one request using the .net api 3.0

Community
  • 1
  • 1
Pengzhi Zhou
  • 481
  • 1
  • 6
  • 24

1 Answers1

1

I have the same problem. Take a look at issues on API GitHub repository. In this one there is code that may help you: https://github.com/brandonseydel/MailChimp.Net/issues/107

ShereKhan
  • 11
  • 2
  • Thanks, that maybe a solution, I will try with that. And since you are working in this as well, I am wondering how much time does it take to subscribe 1000 members? It seems takes a long time, like 20 seconds. (While I am using .net API 2) – Pengzhi Zhou Oct 05 '16 at 09:15
  • I still have not tested with a lot of subscribers. I suppose it is the same as in API V2. – ShereKhan Oct 05 '16 at 09:19
  • Thanks anyway, but the function there for API3 is working right? I will try with that later. Right now I have changed to use API2, and struggling in the long time issue now. I will get back to you after I have tried API3 with the method you mentioned. – Pengzhi Zhou Oct 05 '16 at 09:28
  • Yes it works. I'm currently working on batch subscribe. – ShereKhan Oct 05 '16 at 09:46
  • I just tried with the method from you link, but each time when I run to var batch = mc.Batches.AddAsync(batchRequest).Result; it just go back to the view, and nothing happens. The members are not imported in mailchimp, do you know why? – Pengzhi Zhou Oct 05 '16 at 20:49
  • You need to wait for the operation to finish. After that check the results. – ShereKhan Oct 06 '16 at 05:38
  • It is never going to finish.. No idea why. And no idea when it can be done as well. As async, it just go back to my view. and not even continue running to next line. – Pengzhi Zhou Oct 06 '16 at 08:20