/**
  * Delete the $id entry
  *
  * @param int $id
  *            Id to delete
  * @return bool True on success
  */
 protected function _delete($id)
 {
     if (empty($id)) {
         throw new Exception\InvalidArgumentException("You must specify the ID");
     }
     $api = $this;
     $this->api->setApi('delete', function ($params) use($api) {
         $id = $params[0];
         return array('url' => $api->getUrl() . '/' . $id, 'header' => array('Content-Type' => 'application/json'), 'method' => 'DELETE', 'response' => array('format' => 'json', 'valid_codes' => array(200, 204)));
     });
     $this->api->delete($id);
     return $this->api->isSuccess();
 }
 /**
  * Get the API URL
  *
  * @return string
  */
 public function getUrl()
 {
     return $this->api->getUrl();
 }