isogeo_pysdk.api.routes_event module

Isogeo API v1 - API Routes for Events entities

See: http://help.isogeo.com/api/complete/index.html

class isogeo_pysdk.api.routes_event.ApiEvent(api_client=None)[source]

Bases: object

Routes as methods of Isogeo API used to manipulate events.

create(metadata: isogeo_pysdk.models.metadata.Metadata, event: isogeo_pysdk.models.event.Event) → isogeo_pysdk.models.event.Event[source]

Add a new event to a metadata (= resource).

Parameters:
  • metadata (Metadata) – metadata (resource) to edit
  • Event (Event) – event object to create
delete(event: isogeo_pysdk.models.event.Event, metadata: isogeo_pysdk.models.metadata.Metadata = None)[source]

Delete a event from Isogeo database.

Parameters:
  • event (class) – Event model object to delete
  • metadata (Metadata) – parent metadata (resource) containing the event
event(metadata_id: str, event_id: str) → isogeo_pysdk.models.event.Event[source]

Get details about a specific event.

Parameters:
  • event_id (str) – event UUID to get
  • event_id – event UUID
listing(metadata: isogeo_pysdk.models.metadata.Metadata) → list[source]

Get all events of a metadata.

Parameters:metadata (Metadata) – metadata (resource) to edit
update(event: isogeo_pysdk.models.event.Event, metadata: isogeo_pysdk.models.metadata.Metadata = None) → isogeo_pysdk.models.event.Event[source]

Update an event.

Parameters:
  • event (class) – Event model object to update
  • metadata (Metadata) – parent metadata (resource) containing the event