new_batch() public method

Create a new instance of a Batch request. Optionally with the ID of an existing batch.
public new_batch ( string $batch_id = null ) : Batch
$batch_id string Optional ID of an existing batch, if you need to check its status for example.
return Batch New Batch object.
コード例 #1
0
ファイル: BatchTest.php プロジェクト: benuri/mailchimp-api
 public function testNewBatch()
 {
     $MC_API_KEY = getenv('MC_API_KEY');
     if (!$MC_API_KEY) {
         $this->markTestSkipped('No API key in ENV');
     }
     $MailChimp = new MailChimp($MC_API_KEY);
     $Batch = $MailChimp->new_batch();
     $this->assertInstanceOf('DrewM\\MailChimp\\Batch', $Batch);
 }