View Source Excalt.Todo (Excalt v0.1.2)
Represents the parsed CalDav reply for todo items.
Link to this section Summary
Functions
Creates a new todo item with the given icalendar text.
Deletes a todo item with the given uuid.
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.
Returns the sorted parsed list of events for a period of time, where also the icalendar parts are parsed.
Updates a single todo item, given an uid of the todo, the new version, and the etag. Will throw an error, if the etag has changed in the meantime. (see RFC 4791, section 7.8.1).
Link to this section Types
Link to this section Functions
create(server_url, username, password, calendar_name, ical_text, uuid)
View Source@spec create( server_url :: String.t(), username :: String.t(), password :: String.t(), calendar_name :: String.t(), ical_text :: String.t(), uuid :: String.t() ) :: {:ok, etag :: String.t() | nil} | {:error, any()}
Creates a new todo item with the given icalendar text.
@spec delete( server_url :: String.t(), username :: String.t(), password :: String.t(), calendar_name :: String.t(), uuid :: String.t() ) :: {:ok, etag :: String.t() | nil} | {:error, any()}
Deletes a todo item with the given uuid.
@spec list!( server_url :: String.t(), username :: String.t(), password :: String.t(), calendar_name :: String.t() ) :: [t()]
Returns the parsed xml of the calendars for a user from the CalDav server.
@spec list_raw( server_url :: String.t(), username :: String.t(), password :: String.t(), calendar_name :: String.t() ) :: {:ok, xml :: String.t()} | {:error, any()}
Fetches the raw xml of the calendars for a user from the CalDav server.
@spec parsed_list!( server_url :: String.t(), username :: String.t(), password :: String.t(), calendar_name :: String.t() ) :: [t()]
Returns the sorted parsed list of events for a period of time, where also the icalendar parts are parsed.
update(server_url, username, password, calendar_name, uuid, ical_text, etag, opts \\ [])
View Source@spec update( server_url :: String.t(), username :: String.t(), password :: String.t(), calendar_name :: String.t(), uuid :: String.t(), ical_text :: String.t(), etag :: String.t(), opts :: keyword() ) :: {:ok, [t()]} | {:error, any()}
Updates a single todo item, given an uid of the todo, the new version, and the etag. Will throw an error, if the etag has changed in the meantime. (see RFC 4791, section 7.8.1).