DrewM\MailChimp\Batch::post PHP Method

post() public method

Add an HTTP POST request operation to the batch - for creating and updating items
public post ( string $id, string $method, array $args = [] ) : void
$id string ID for the operation within the batch
$method string URL of the API request method
$args array Assoc array of arguments (usually your data)
return void
    public function post($id, $method, $args = array())
    {
        $this->queueOperation('POST', $id, $method, $args);
    }