DrewM\MailChimp\Batch::check_status PHP Méthode

check_status() public méthode

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.
public check_status ( string $batch_id = null ) : array | false
$batch_id string ID of the batch about which to enquire
Résultat array | false Assoc array of API response, decoded from JSON
    public function check_status($batch_id = null)
    {
        if ($batch_id === null && $this->batch_id) {
            $batch_id = $this->batch_id;
        }
        return $this->MailChimp->get('batches/' . $batch_id);
    }