def get_event(self, param):
if param is None:<EOL><INDENT>return None<EOL><DEDENT>if isinstance(param, str):<EOL><INDENT>url = self.build_url(<EOL>self._endpoints.get('<STR_LIT>').format(id=self.calendar_id,<EOL>ide=param))<EOL>params = None<EOL>by_id = True<EOL><DEDENT>else:<EOL><INDENT>url = self.build_url(<EOL>self._endpoints.get('<STR_LIT>').format(id=self.calendar_id))<EOL>params = {'<STR_LIT>': <NUM_LIT:1>}<EOL>params.update(param.as_params())<EOL>by_id = False<EOL><DEDENT>response = self.con.get(url, params=params,<EOL>headers={'<STR_LIT>': '<STR_LIT>'})<EOL>if not response:<EOL><INDENT>return None<EOL><DEDENT>if by_id:<EOL><INDENT>event = response.json()<EOL><DEDENT>else:<EOL><INDENT>event = response.json().get('<STR_LIT:value>', [])<EOL>if event:<EOL><INDENT>event = event[<NUM_LIT:0>]<EOL><DEDENT>else:<EOL><INDENT>return None<EOL><DEDENT><DEDENT>return self.event_constructor(parent=self,<EOL>**{self._cloud_data_key: event})<EOL>
Returns an Event instance by it's id

        :param param: an event_id or a Query instance
        :return: event for the specified info
        :rtype: Event