public function api() {		
		if(!$this->gapi) {
			try {
				$this->gapi = new gapi(
					self::config()->email,
					Director::getAbsFile(self::config()->key_file_path)
				);
			}
			catch(Exception $e) {
				$this->error = $e->getMessage();

				return $this->gapi;			
			}
		}
		return $this->gapi;
	}
public function api() {		
		if(!$this->gapi) {
			try {
				$this->gapi = new gapi(
					self::config()->email,
					Director::getAbsFile(self::config()->key_file_path)
				);
			}
			catch(Exception $e) {
				$this->error = $e->getMessage();

				return $this->gapi;			
			}
		}
		return $this->gapi;
	}
public function api ( ) { if ( ! $ this -> gapi ) { try { $ this -> gapi = new gapi ( self :: config ( ) -> email , Director :: getAbsFile ( self :: config ( ) -> key_file_path ) ) ; } catch ( Exception $ e ) { $ this -> error = $ e -> getMessage ( ) ; return $ this -> gapi ; } } return $ this -> gapi ; }
Gets the GAPI object. Creates if necessary.

@return gapi
Gets the GAPI object . Creates if necessary .