mailbuild - php - Subscriber.AddWithCustomFields - help?

I've managed to get the Subscriber.Add php sample, subscribeMBPHP5.php, to work correctly, however, I have no idea how to modify it to work with Subscriber.AddWithCustomFields

//make soap call
    $result = $client->__soapCall(
                                    array(    new SoapVar("xxxxxxxxxx", XSD_STRING, null, null, "ApiKey",""),
                                        new SoapVar("xxxxxxxxxx", XSD_STRING, null, null, "ListID",""),
                                        new SoapVar("", XSD_STRING, null, null, "Email",""),
                                        new SoapVar("Mat", XSD_STRING, null, null, "Name",""),
                                        new SoapVar("Mr", XSD_STRING, null, null, "title",""),
                                        new SoapVar("Thingy Wotzit", XSD_STRING, null, null, "buildingname",""),
                                        new SoapVar("Wobbleton", XSD_STRING, null, null, "locality",""),
                                        new SoapVar("Newfoundland", XSD_STRING, null, null, "posttown",""),
                                        new SoapVar("BP1232", XSD_STRING, null, null, "postcode","")
                                        "soapaction"    => ""

Basically, everything after

new SoapVar("Mat", XSD_STRING, null, null, "Name","")

isn't added to my list, as obviously the system doesn't have a clue that these are custom form fields.

Any help would be much appreciated.

Jason Jason, 9 years ago

Hi Matt,

We'll be looking at expanding on the MailBuild documentation soon to cover this method call, but in the meantime the resources covering this at campaign monitor should get you going in the right direction. The code will be extremely similar, with just the substitution of the service endpoint and namespace to the MailBuild equivalents required.

If you run into any issues, get in touch with support like you have with this initially, and we'll be more than happy to help.

bb_matt, 9 years ago

Does that mean that currently, all the calls that are within campaign monitor, are available in mailbuild?

If so, a list would be extremely handy!

See why 200,000 companies worldwide love Campaign Monitor.

From Australia to Zimbabwe, and everywhere in between, companies count on Campaign Monitor for email campaigns that boost the bottom line.

Get started for free