google_calendar v0.1.0 GoogleCalendar.Calendar
Interact with google calendars
Check list of options in https://developers.google.com/google-apps/calendar/v3/reference/calendars
# Access client which contains token from session if you have put it into session previously
client = get_session(conn, "client")
# Config your calenar variable. Calendar is [`Map`](https://hexdocs.pm/elixir/Map.html)/ `Nested Map` type
calendar = %{id: "YOUR CALENDAR ID"}
# Additional calendar information are included in event if you want to insert, update, or path
calendar = %{
id: "YOUR CALENDAR ID",
defaultReminders: %{
method: "YOUR METHOD"
}
}
# Add query parameter to opts.Opts is [`Keyword`](https://hexdocs.pm/elixir/Keyword.html) type
opts = [params: [showDeleted: true]]
GoogleCalendar.Event.get(client, event, opts)
# Return result will be either `{:ok, action, result}` or `{:error, code, error_message}`
Link to this section Summary
Functions
Only clear the primary calendar of an account
Link to this section Functions
Link to this function
clear(client, calendar, opts \\ [], headers \\ [])
Only clear the primary calendar of an account
Link to this function
delete(client, calendar, opts \\ [], headers \\ [])
Link to this function
get(client, calendar, opts \\ [], headers \\ [])
Link to this function
insert(client, calendar, opts \\ [], headers \\ [])
Link to this function
patch(client, calendar, opts \\ [], headers \\ [])
Link to this function
update(client, calendar, opts \\ [], headers \\ [])