caldav_gleam

Values

pub fn basic_auth(
  username: String,
  password: String,
) -> auth.Auth
pub fn bearer_auth(token: String) -> auth.Auth
pub fn client_config(
  caldav_client: types.Client,
) -> config.Config
pub fn create_event(
  caldav_client: types.Client,
  calendar_url: String,
  file_name: String,
  ics_data: String,
) -> Result(types.Event, error.Error)
pub fn delete_event(
  caldav_client: types.Client,
  event_url: String,
  etag: option.Option(String),
) -> Result(Nil, error.Error)
pub fn discover(
  caldav_client: types.Client,
) -> Result(types.DiscoveryInfo, error.Error)
pub fn error_to_string(err: error.Error) -> String
pub fn find_calendar_home_set(
  caldav_client: types.Client,
  principal_url: String,
) -> Result(String, error.Error)
pub fn find_principal(
  caldav_client: types.Client,
) -> Result(String, error.Error)
pub fn get_event(
  caldav_client: types.Client,
  event_url: String,
) -> Result(types.Event, error.Error)
pub fn list_calendars(
  caldav_client: types.Client,
  discovery_info: types.DiscoveryInfo,
) -> Result(List(types.Calendar), error.Error)
pub fn list_events(
  caldav_client: types.Client,
  calendar_url: String,
) -> Result(List(types.Event), error.Error)
pub fn list_events_in_range(
  caldav_client: types.Client,
  calendar_url: String,
  range: types.TimeRange,
) -> Result(List(types.Event), error.Error)
pub fn new_client(cfg: config.Config) -> types.Client
pub fn new_config(
  base_url: String,
  credentials: auth.Auth,
) -> config.Config
pub fn no_auth() -> auth.Auth
pub fn oauth_auth() -> auth.Auth
pub fn update_event(
  caldav_client: types.Client,
  event_url: String,
  ics_data: String,
  etag: option.Option(String),
) -> Result(types.Event, error.Error)
pub fn with_timeout(
  cfg: config.Config,
  timeout_ms: Int,
) -> config.Config
pub fn with_user_agent(
  cfg: config.Config,
  user_agent: String,
) -> config.Config
Search Document