voice/GoogleVoice.php
/**
	 * Communicate with Google voice server using post
	 * @param $path Path appended to the google voice server url
	 * @param $options Required options for the specified path
	 */
Communicate with Google voice server using post
@param $path Path appended to the google voice server url
@param $options Required options for the specified path
Communicate with Google voice server using post @param $path Path appended to the google voice server url @param $options Required options for the specified path
private function _post($path, $options)
	{
		$this->_logIn();
		$options['_rnr_se'] = $this->_rnr_se;
		$this->_curlUrl = self::GV_SERVER_URL . $path;
		$this->_curlOptions = $options;
		\curl_setopt($this->_ch, \CURLOPT_URL, $this->_curlUrl);
		\curl_setopt($this->_ch, \CURLOPT_POST, true);
		\curl_setopt($this->_ch, \CURLOPT_RETURNTRANSFER, true);
		\curl_setopt($this->_ch, \CURLOPT_POSTFIELDS, $options);
		$this->_result = \curl_exec($this->_ch);
		return $this->_result;
	}
private function _post ( $ path , $ options ) { $ this -> _logIn ( ) ; $ options [ '_rnr_se' ] = $ this -> _rnr_se ; $ this -> _curlUrl = self :: GV_SERVER_URL . $ path ; $ this -> _curlOptions = $ options ; \ curl_setopt ( $ this -> _ch , \ CURLOPT_URL , $ this -> _curlUrl ) ; \ curl_setopt ( $ this -> _ch , \ CURLOPT_POST , true ) ; \ curl_setopt ( $ this -> _ch , \ CURLOPT_RETURNTRANSFER , true ) ; \ curl_setopt ( $ this -> _ch , \ CURLOPT_POSTFIELDS , $ options ) ; $ this -> _result = \ curl_exec ( $ this -> _ch ) ; return $ this -> _result ; }
Communicate with Google voice server using post
 @param $path Path appended to the google voice server url
 @param $options Required options for the specified path
Communicate with Google voice server using post @param $path Path appended to the google voice server url @param $options Required options for the specified path
// Login to the service if not already done. // Send HTTP POST request.