public function create($hash = false, $name = false)
{
if ($hash) {
$this->_hash = $hash;
}
if ($name) {
$this->_name = $name;
}
if (strlen($this->_hash) == 0) {
throw new DataSift_Exception_InvalidData('Cannot start a recording without a hash');
}
$params = array('hash' => $this->_hash);
if (!empty($this->_name)) {
$params['name'] = $this->_name;
}
$response = $this->_user->post('pylon/start', $params);
$this->load($response);
return $response;
}