listSubscribe not working

Jan 23, 2012 at 10:59 AM

Trying to get the PerceptiveMC API up and running within a site (4.0 framework). From the documentation I am able to get the 'Test Install' OK

Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) _
Handles Me.Load
   Dim apikey As String = "YourApikey" ' or default to config
   GridView1.DataSource = MCAPISettings.ListAPISettings().ToList()
End Sub

I am trying to use the 'ListSubscribe' to enter a test to my MailChimp list but my output returns a failure each time

Dim input As listSubscribeInput = New listSubscribeInput()

        input.api_AccessType = EnumValues.AccessType.XmlRpc
        input.api_OutputType = EnumValues.OutputType.XmlRpc
        input.api_Validate = True
        input.parms.apikey = "xxxxxxxxxxxxxxxxxx-us4" = "xxxxxxxxx"
        input.parms.email_address = ""
        input.parms.email_type = EnumValues.emailType.html
        input.parms.double_optin = True
        input.parms.send_welcome = True
        input.parms.update_existing = True
        input.parms.replace_interests = True
        input.parms.merge_vars.Add("FNAME", "Test")
        input.parms.merge_vars.Add("LNAME", "Test")

        ' do it
        Dim cmd As New listSubscribe(input)

        Dim output As listSubscribeOutput = cmd.Execute()

        ' check output
        If output.result = True Then
        End If

During debugging I can see that cmd looks to be populated as expected but output.result returns as false.

I am not seeing any error message or warnings when building the code. Can anyone suggest how to uncover what the problem is?

N.B - I've ruled out a proxy issue at my side by uploading to a test server within the company that bypasses the normal proxy.

May 16, 2012 at 4:24 PM

Hi I had same problem, and I didt had any API key generated, even if you dont need any.

you can generate one here


after that it works fine ; )

May 19, 2012 at 6:49 PM

I've written a walkthrough on my blog explaining exactly how to do this step-by-step in both VB.NET and C# -

Hope this helps!


p.s. Don't forget to comment/like if you find helpful!