You are here

public function Mailchimp::getBatchOperation in Mailchimp 8

Gets the status of a batch request.

Parameters

string $batch_id: The ID of the batch operation.

Return value

object

See also

http://developer.mailchimp.com/documentation/mailchimp/reference/batches...

File

lib/mailchimp-api-php/src/Mailchimp.php, line 192

Class

Mailchimp
Mailchimp library.

Namespace

Mailchimp

Code

public function getBatchOperation($batch_id) {
  $tokens = [
    'batch_id' => $batch_id,
  ];
  return $this
    ->request('GET', '/batches/{batch_id}', $tokens);
}