MailchimpAPI::AddSubscriber (open)
Subscribe a user
Syntax
LOADLIB "mod::system/lib/webapi/mail/mailchimp.whlib";
RECORD FUNCTION AddSubscriber(STRING listid, STRING email, RECORD options)
Parameters
STRING listid
STRING email
RECORD options
Options
RECORD ARRAY customfields
Custom fields to add
BOOLEAN resubscribe
Update the status to 'subscribed', even if not new
Return value
RECORD
Description
Optionally supplies custom data.
Note that you must create custom fields through the webinterface before you can use them (and you will not get an error when setting a nonexisting custom field)