src/Net/API/Google/Code/PostCommit.php
public function receiveData( Net_HTTP_Request_Receiver $request)
	{
		$data	= $request->getRawPostData();
		if( !$data )
			throw new RuntimeException( 'No raw POST data received' );
		$digest	= hash_hmac( "md5", $data, $this->authKey );
		$header	= array_pop( $request->getHeadersByName( $this->headerName ) );
		if( $digest !== $header->getValue() )
			throw new RuntimeException( 'Authentication failed' );
		return $data;
	}
public function receiveData( Net_HTTP_Request_Receiver $request)
	{
		$data	= $request->getRawPostData();
		if( !$data )
			throw new RuntimeException( 'No raw POST data received' );
		$digest	= hash_hmac( "md5", $data, $this->authKey );
		$header	= array_pop( $request->getHeadersByName( $this->headerName ) );
		if( $digest !== $header->getValue() )
			throw new RuntimeException( 'Authentication failed' );
		return $data;
	}
public function receiveData ( Net_HTTP_Request_Receiver $ request ) { $ data = $ request -> getRawPostData ( ) ; if ( ! $ data ) throw new RuntimeException ( 'No raw POST data received' ) ; $ digest = hash_hmac ( "md5" , $ data , $ this -> authKey ) ; $ header = array_pop ( $ request -> getHeadersByName ( $ this -> headerName ) ) ; if ( $ digest !== $ header -> getValue ( ) ) throw new RuntimeException ( 'Authentication failed' ) ; return $ data ; }
Receives Data from Google Code Post-Commit Hook and returns JSON string.
@access		public
@return		string
@throws		RuntimeException if raw POST data is empty
@throws		RuntimeException if Key is invalid
Receives Data from Google Code Post - Commit Hook and returns JSON string .