View Source CalDAVClient.Event (caldav_client v2.0.0)
Allows for managing events on the calendar server.
Link to this section Summary
Functions
Creates an event (see RFC 4791, section 5.3.2).
Deletes a specific event.
Returns an event with the specified UID property (see RFC 4791, section 7.8.6).
Returns a specific event in the iCalendar format along with its ETag.
Retrieves all events or its occurrences within a specific time range (see RFC 4791, section 7.8.1).
Retrieves all events or its occurrences having an VALARM within a specific time range (see RFC 4791, section 7.8.5).
Retrieves all occurrences of events for given XML request body.
Updates a specific event (see RFC 4791, section 5.3.2).
Link to this section Types
Specs
Link to this section Functions
Specs
create( CalDAVClient.Client.t(), event_url :: String.t(), event_icalendar :: String.t() ) :: {:ok, etag :: String.t() | nil} | {:error, any()}
Creates an event (see RFC 4791, section 5.3.2).
Specs
delete(CalDAVClient.Client.t(), event_url :: String.t(), opts :: keyword()) :: :ok | {:error, any()}
Deletes a specific event.
options
Options
etag
- a specific ETag used to ensure that the client overwrites the latest version of the event.
Specs
find_by_uid( CalDAVClient.Client.t(), calendar_url :: String.t(), event_uid :: String.t() ) :: {:ok, t()} | {:error, any()}
Returns an event with the specified UID property (see RFC 4791, section 7.8.6).
Specs
get(CalDAVClient.Client.t(), event_url :: String.t()) :: {:ok, icalendar :: String.t(), etag :: String.t()} | {:error, any()}
Returns a specific event in the iCalendar format along with its ETag.
Specs
get_events( CalDAVClient.Client.t(), calendar_url :: String.t(), from :: DateTime.t(), to :: DateTime.t(), opts :: keyword() ) :: {:ok, [t()]} | {:error, any()}
Retrieves all events or its occurrences within a specific time range (see RFC 4791, section 7.8.1).
options
Options
expand
- iftrue
, recurring events will be expanded to occurrences, defaults tofalse
.
get_events_by_alarm(caldav_client, calendar_url, from, to, opts \\ [])
View SourceSpecs
get_events_by_alarm( CalDAVClient.Client.t(), calendar_url :: String.t(), from :: DateTime.t(), to :: DateTime.t(), opts :: keyword() ) :: {:ok, [t()]} | {:error, any()}
Retrieves all events or its occurrences having an VALARM within a specific time range (see RFC 4791, section 7.8.5).
options
Options
expand
- iftrue
, recurring events will be expanded to occurrences, defaults tofalse
.event_from
- start of time range for events or occurrences, defaults to0000-00-00T00:00:00Z
.event_to
- end of time range for events or occurrences, defaults to9999-12-31T23:59:59Z
.
Specs
get_events_by_xml( CalDAVClient.Client.t(), calendar_url :: String.t(), request_xml :: String.t() ) :: {:ok, [t()]} | {:error, any()}
Retrieves all occurrences of events for given XML request body.
Specs
update( CalDAVClient.Client.t(), event_url :: String.t(), event_icalendar :: String.t(), opts :: keyword() ) :: {:ok, etag :: String.t() | nil} | {:error, any()}
Updates a specific event (see RFC 4791, section 5.3.2).
options
Options
etag
- a specific ETag used to ensure that the client overwrites the latest version of the event.