Method | Description | |
---|---|---|
__construct ( |
||
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. | |
delete ( string $id, string $method ) : void | Add an HTTP DELETE request operation to the batch - for deleting data | |
execute ( integer $timeout = 10 ) : array | false | Execute the batch request | |
get ( string $id, string $method, array $args = [] ) : void | Add an HTTP GET request operation to the batch - for retrieving data | |
patch ( string $id, string $method, array $args = [] ) : void | Add an HTTP PATCH request operation to the batch - for performing partial updates | |
post ( string $id, string $method, array $args = [] ) : void | Add an HTTP POST request operation to the batch - for creating and updating items | |
put ( string $id, string $method, array $args = [] ) : void | Add an HTTP PUT request operation to the batch - for creating new items |
Method | Description | |
---|---|---|
queueOperation ( string $http_verb, string $id, string $method, array $args = null ) : void | Add an operation to the internal queue. |
public __construct ( |
||
$MailChimp |
public check_status ( string $batch_id = null ) : array | false | ||
$batch_id | string | ID of the batch about which to enquire |
return | array | false | Assoc array of API response, decoded from JSON |