from base import BaseClient

EVENTS_API_VERSION = 'v1'

class EventsClient(BaseClient):
  
    def _get_path(self, subpath):
        return 'events/%s/%s' % (EVENTS_API_VERSION, subpath)
    
    def get_events(self, **options):
        return self._call('events', **options)
    
    def create_event(self, description, create_date, url, event_type, **options):
        event_data = {
            'description': description,
            'createDate': create_date,
            'url': url,
            'eventType': event_type
        }
        return self._call('events', params=event_data, method='POST', **options)


from base import BaseClient

EVENTS_API_VERSION = 'v1'

class EventsClient(BaseClient):
  
    def _get_path(self, subpath):
        return 'events/%s/%s' % (EVENTS_API_VERSION, subpath)
    
    def get_events(self, **options):
        return self._call('events', **options)
  
    def get_event(self, event_id, **options):
        return self._call('events/%s' % event_id, **options)
    
    def create_event(self, description, create_date, url, event_type, **options):
        event_data = {
            'description': description,
            'createDate': create_date,
            'url': url,
            'eventType': event_type
        }
        return self._call('events', params=event_data, method='POST', **options)


Add method to fetch a single event
Add method to fetch a single event