public function createTextBatch(Api\MtBatchTextSmsCreate $batch)
    {
        $json = Serialize::textBatch($batch);
        $result = $this->_post($this->_url('/batches'), $json);
        return Deserialize::batchResponse($result);
    }
public function createTextBatch(Api\MtBatchTextSmsCreate $batch)
    {
        $json = Serialize::textBatch($batch);
        $result = $this->_post($this->_url('/batches'), $json);
        return Deserialize::batchResponse($result);
    }
public function createTextBatch ( Api \ MtBatchTextSmsCreate $ batch ) { $ json = Serialize :: textBatch ( $ batch ) ; $ result = $ this -> _post ( $ this -> _url ( '/batches' ) , $ json ) ; return Deserialize :: batchResponse ( $ result ) ; }
Creates a new text batch.

The text batch will be created as described in the given
object.

@param Api\MtBatchTextSmsCreate $batch the batch description

@return Api\MtBatchTextSmsResult the creation result
Creates a new text batch .