https://areamembri.it/campaigns/subscribe.json
Subscribes a new user to an existing campaign.
Parameters:
api_user (required) | The provided API User credential for your account. |
api_key (required) | The provided API Key credential for your account. |
business_id (optional) | The project ID you want to query in. |
listname (required) | A valid campaign nicename. |
email (required) | The user’s email. |
name
(optional) |
The user’s full name. |
first_name
(optional) |
The user’s first name. |
last_name
(optional) |
The user’s last name. |
custom <key>
(optional) |
An user custom field, named <key> |
Return:
An object, containing:
- response: can either be “new”, “existing”, “noop” or “error”. “new” means the user is newly inserted to the campaign, “existing” means the user was already subscribed, “noop” and “error” are error codes.
In case the response is “new” or “existing”, there will be an extra “c_x_u” field with the subscriber data.
In case the response is “noop” or “error”, there will be an extra “error” field containing further details.