This is certainly useless for you except if you want to have an example how to use GetResponse API. Their API doc is currently quite messy and their support is definitely not good.
Anyway, I figured out how to add a contact and use a custom field to a campaign and then send a first email.
FYI, this script is used to validate all social sites powered by my Social CMS, pH7CMS.