/** * POST data with client object. * This method overrides the default behavior of Zend_Gdata_App, * providing support for Zend_Gdata_GApps_ServiceException. * * @param mixed $data The \Zend\GData\App\Entry or XML to post * @param string $uri (optional) POST URI * @param integer $remainingRedirects (optional) * @param string $contentType Content-type of the data * @param array $extraHaders Extra headers to add tot he request * @return \Zend\HTTP\Response\Response * @throws \Zend\GData\App\HttpException * @throws \Zend\GData\App\InvalidArgumentException * @throws \Zend\GData\GApps\ServiceException */ public function post($data, $uri = null, $remainingRedirects = null, $contentType = null, $extraHeaders = null) { try { return parent::post($data, $uri, $remainingRedirects, $contentType, $extraHeaders); } catch (App\HttpException $e) { self::throwServiceExceptionIfDetected($e); } }