Gcal.HTTPoisonMock (gcal v1.0.3)

This is a TestDouble for HTTPoison which returns a predictable response. Please see: github.com/dwyl/elixir-auth-google/issues/35

Link to this section Summary

Functions

get/1 retrieves the calendar. Returns a calendar object with valid data. https://developers.google.com/calendar/api/v3/reference/calendars

get/1 catch-all get function returns mock event list.

post/2 for create_event/3 returns valid event data

Link to this section Functions

Link to this function

get(binary, headers)

get/1 retrieves the calendar. Returns a calendar object with valid data. https://developers.google.com/calendar/api/v3/reference/calendars

Link to this function

get(url, headers, list)

get/1 catch-all get function returns mock event list.

Link to this function

post(url, body, headers)

post/2 for create_event/3 returns valid event data