A little help for a newbie (a simple subscribe!)

Jan 16, 2013 at 3:20 PM

Hi to all, I've downloaded PerceptiveMCAPI wrapper for the MailChimp API and I'm trying to get first, basic, step: adding a subscriber to my MailChimp List.

I've got my API Key and I've got my list Unique ID.

I've found a tutorial and I've copied the following code:

Private Sub listBatchSubscribe_method()
        Dim input As listBatchSubscribeInput = New listBatchSubscribeInput()
        ' any directive overrides
        With input
            .api_Validate = True
            .api_AccessType = EnumValues.AccessType.Serial
            .api_OutputType = EnumValues.OutputType.JSON
            ' method parameters
            .parms.apikey = Settings.MailchimpAPIKey
            .parms.id = Settings.MailchimpUniqueIDList
            .parms.double_optin = False
            .parms.replace_interests = True
            .parms.update_existing = True
        End With
        Dim batch As List(Of Dictionary(Of String, Object)) = New List(Of Dictionary(Of String, Object))
        Dim entry As Dictionary(Of String, Object) = New Dictionary(Of String, Object)
        With entry
            .Add("EMAIL", "giulioferri@gmail.com")
            .Add("EMAIL_TYPE", EnumValues.emailType.html)
            .Add("FNAME", "Giulietto")
            .Add("LNAME", "Ferruzzo")
            Dim RagSociale As String = "Pandora"
            .Add("RAGSOCIALE", RagSociale)
        End With

        input.parms.batch = batch
        ' execution
        Dim cmd As listBatchSubscribe = New listBatchSubscribe(input)
        Dim output As listBatchSubscribeOutput = cmd.Execute()
        ' output, format with user control
End Sub

It doesn't work :-(

Can someone help me get subscribing a new record in my MailChimp list?

Thanks to all.


Jan 16, 2013 at 3:29 PM

Ciao Giulio,

Because you're a "newbie" I would ask you this:
> Why would you try a library that was never updated for more than 2 years? 

MCAPI.NET is another MailChimp Library and it has much more development. plus it has a nuget package as well and it's really simple to use. As I said before around here I already have given up this library (PerceptiveMCAPI), even have sent them an email a year ago asking permissions to take it further but nothing happen, so I started to use the other one and I'm very happy :)

Give it a  try:


Jan 16, 2013 at 3:34 PM

Thanks A LOT!

I hope I'll be happy too :-)


Jan 16, 2013 at 4:31 PM

I've downloaded MCAPI.NET dll but it works only with framework 4.0! :-(

Any other solutions for framework 3.5???