code: def post_event(self, event):
          
  
          url = "{0}/{1}/projects/{2}/events/{3}".format(self.base_url, self.api_version,
                                                         self.project_id,
                                                         event.event_collection)
          headers = utilities.headers(self.write_key)
          payload = event.to_json()
          response = self.fulfill(HTTPMethods.POST, url, data=payload, headers=headers, timeout=self.post_timeout)
          self._error_handling(response)
docs: Posts a single event to the Keen IO API. The write key must be set first.
  
          :param event: an Event to upload