$verify_ssl
$verify_ssl :
Super-simple, minimum abstraction MailChimp API v3 wrapper MailChimp API v3: http://developer.mailchimp.com This wrapper: https://github.com/drewm/mailchimp-api
new_batch(string $batch_id = null) : \DrewM\MailChimp\Batch
Create a new instance of a Batch request. Optionally with the ID of an existing batch.
string | $batch_id | Optional ID of an existing batch, if you need to check its status for example. |
New Batch object.
delete(string $method, array $args = array(), integer $timeout = 10) : array|false
Make an HTTP DELETE request - for deleting data
string | $method | URL of the API request method |
array | $args | Assoc array of arguments (if any) |
integer | $timeout | Timeout limit for request in seconds |
Assoc array of API response, decoded from JSON
get(string $method, array $args = array(), integer $timeout = 10) : array|false
Make an HTTP GET request - for retrieving data
string | $method | URL of the API request method |
array | $args | Assoc array of arguments (usually your data) |
integer | $timeout | Timeout limit for request in seconds |
Assoc array of API response, decoded from JSON
patch(string $method, array $args = array(), integer $timeout = 10) : array|false
Make an HTTP PATCH request - for performing partial updates
string | $method | URL of the API request method |
array | $args | Assoc array of arguments (usually your data) |
integer | $timeout | Timeout limit for request in seconds |
Assoc array of API response, decoded from JSON
post(string $method, array $args = array(), integer $timeout = 10) : array|false
Make an HTTP POST request - for creating and updating items
string | $method | URL of the API request method |
array | $args | Assoc array of arguments (usually your data) |
integer | $timeout | Timeout limit for request in seconds |
Assoc array of API response, decoded from JSON
put(string $method, array $args = array(), integer $timeout = 10) : array|false
Make an HTTP PUT request - for creating new items
string | $method | URL of the API request method |
array | $args | Assoc array of arguments (usually your data) |
integer | $timeout | Timeout limit for request in seconds |
Assoc array of API response, decoded from JSON
makeRequest(string $http_verb, string $method, array $args = array(), $timeout = 10) : array|false
Performs the underlying HTTP request. Not very exciting.
string | $http_verb | The HTTP verb to use: get, post, put, patch, delete |
string | $method | The API method to be called |
array | $args | Assoc array of parameters to be passed |
$timeout |
Assoc array of decoded result