caldav/event

Values

pub fn create_event(
  client: types.Client,
  calendar_url: String,
  file_name: String,
  ics_data: String,
) -> Result(types.Event, error.Error)

Creates a new event resource inside the target calendar.

pub fn delete_event(
  client: types.Client,
  event_url: String,
  etag: option.Option(String),
) -> Result(Nil, error.Error)

Deletes an event and optionally checks the current ETag.

pub fn get_event(
  client: types.Client,
  event_url: String,
) -> Result(types.Event, error.Error)

Fetches a single event by its full resource URL.

pub fn list_events(
  client: types.Client,
  calendar_url: String,
) -> Result(List(types.Event), error.Error)

Lists all events available in a calendar collection.

pub fn list_events_in_range(
  client: types.Client,
  calendar_url: String,
  range: types.TimeRange,
) -> Result(List(types.Event), error.Error)

Lists events that intersect with the given time range.

pub fn update_event(
  client: types.Client,
  event_url: String,
  ics_data: String,
  etag: option.Option(String),
) -> Result(types.Event, error.Error)

Updates an existing event and optionally checks the current ETag.

Search Document