$MailChimp
$MailChimp :
A MailChimp Batch operation.
http://developer.mailchimp.com/documentation/mailchimp/reference/batches/
__construct(\DrewM\MailChimp\MailChimp $MailChimp, $batch_id = null)
\DrewM\MailChimp\MailChimp | $MailChimp | |
$batch_id |
patch(string $id, string $method, array $args = array()) : void
Add an HTTP PATCH request operation to the batch - for performing partial updates
string | $id | ID for the operation within the batch |
string | $method | URL of the API request method |
array | $args | Assoc array of arguments (usually your data) |
post(string $id, string $method, array $args = array()) : void
Add an HTTP POST request operation to the batch - for creating and updating items
string | $id | ID for the operation within the batch |
string | $method | URL of the API request method |
array | $args | Assoc array of arguments (usually your data) |
put(string $id, string $method, array $args = array()) : void
Add an HTTP PUT request operation to the batch - for creating new items
string | $id | ID for the operation within the batch |
string | $method | URL of the API request method |
array | $args | Assoc array of arguments (usually your data) |
check_status(string $batch_id = null) : array|false
Check the status of a batch request. If the current instance of the Batch object was used to make the request, the batch_id is already known and is therefore optional.
string | $batch_id | ID of the batch about which to enquire |
Assoc array of API response, decoded from JSON