google_calendar v0.1.3 GoogleCalendar.Event

Interact with google events

Check list of optons in https://developers.google.com/google-apps/calendar/v3/reference/events

# Access client which contains token from session if you have put it into session previously
client = get_session(conn, "client")

# Config your event variable. Event is [`Map`](https://hexdocs.pm/elixir/Map.html)/ `Nested Map` type
event = %{calendar_id: "YOUR CALENDAR ID", id: "YOUR EVENT ID"}

# Additional event information are included in event if you want to insert, update, or path
event = %{
  calendar_id: "YOUR CALENDAR ID",
  id: "YOUR EVENT ID",
  start: %{
    date_time: "2017-08-20T05:20:00Z",
    timezone: "UTC"
  }
}

# Add query parameter to opts.Opts is [`Keyword`](https://hexdocs.pm/elixir/Keyword.html) type
opts = [params: [maxResults: 5]]

GoogleCalendar.Event.get(client, event, opts)

# Return result will be either `{:ok, action, result}` or `{:error, code, error_message}`

Link to this section Summary

Link to this section Functions

Link to this function delete(client, event, opts \\ [], headers \\ [])
Link to this function delete!(client, event, opts \\ [], headers \\ [])
Link to this function get(client, event, opts \\ [], headers \\ [])
Link to this function get!(client, event, opts \\ [], headers \\ [])
Link to this function insert(client, event, opts \\ [], headers \\ [])
Link to this function insert!(client, event, opts \\ [], headers \\ [])
Link to this function list(client, event, opts \\ [], headers \\ [])

Function!/n is similar to Function/n but raises error if an error occurs during the request

Link to this function list!(client, event, opts \\ [], headers \\ [])
Link to this function patch(client, event, opts \\ [], headers \\ [])
Link to this function patch!(client, event, opts \\ [], headers \\ [])
Link to this function update(client, event, opts \\ [], headers \\ [])
Link to this function update!(client, event, opts \\ [], headers \\ [])