Gcal.HTTPoisonMock (gcal v1.0.0)

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 Obviously, don't invoke it from your App unless you want people to see fails.

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

post/2 will just return a mocked success.

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 Obviously, don't invoke it from your App unless you want people to see fails.

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 will just return a mocked success.