midas/sdk/google/calendar

Types

pub type DateOrDatetime {
  Date(String)
  Datetime(String)
}

Constructors

  • Date(String)
  • Datetime(String)
pub type Event {
  Event(
    summary: String,
    location: Option(String),
    start: DateOrDatetime,
    end: DateOrDatetime,
  )
}

Constructors

  • Event(
      summary: String,
      location: Option(String),
      start: DateOrDatetime,
      end: DateOrDatetime,
    )

Functions

pub fn date_or_datetime_decoder(
  raw: Dynamic,
) -> Result(DateOrDatetime, List(DecodeError))
pub fn event_decoder(
  raw: Dynamic,
) -> Result(Event, List(DecodeError))
pub fn list_events(
  token: String,
  calendar_id: String,
  time_min: String,
) -> Effect(List(Event))
pub fn list_events_request(
  token: String,
  calendar_id: String,
  time_min: String,
) -> Request(BitArray)
pub fn list_events_response(
  response: Response(BitArray),
) -> Result(List(Event), Snag)
Search Document