View Source Excalt.Calendar (Excalt v0.1.1)

Execute the requests to CRUD the calender objects of the CalDav server.

Link to this section Summary

Functions

Returns the parsed xml of the calendars for a user from the CalDav server.

Fetches the raw xml of the calendars for a user from the CalDav server.

Link to this section Types

@type t() :: %Excalt.Calendar{
  name: String.t(),
  timezone: String.t(),
  type: String.t(),
  url: String.t()
}

Link to this section Functions

Link to this function

list!(server_url, username, password)

View Source
@spec list!(server_url :: String.t(), username :: String.t(), password :: String.t()) ::
  [t()]

Returns the parsed xml of the calendars for a user from the CalDav server.

Link to this function

list_raw(server_url, username, password)

View Source
@spec list_raw(
  server_url :: String.t(),
  username :: String.t(),
  password :: String.t()
) ::
  {:ok, xml :: String.t()} | {:error, any()}

Fetches the raw xml of the calendars for a user from the CalDav server.