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;
	}