lib/goauth2/calendar.rb in goauth2-0.0.7 vs lib/goauth2/calendar.rb in goauth2-0.0.9

- old
+ new

@@ -1,15 +1,15 @@ module Goauth2 class Client - def all_calendars(params = {}) - _get_jsonc('https://www.google.com/calendar/feeds/default/allcalendars/full', params) + def all_calendars(params = {}, headers = {}) + _get_jsonc('https://www.google.com/calendar/feeds/default/allcalendars/full', params, headers.merge({'GData-Version' => '2'})) end - def own_calendars(params = {}) - _get_jsonc('https://www.google.com/calendar/feeds/default/owncalendars/full', params) + def own_calendars(params = {}, headers = {}) + _get_jsonc('https://www.google.com/calendar/feeds/default/owncalendars/full', params, headers.merge({'GData-Version' => '2'})) end - def events(event_feed, params = {}) - _get_jsonc(event_feed, params) + def events(event_feed, params = {}, headers = {}) + _get_jsonc(event_feed, params, headers.merge({'GData-Version' => '2'})) end end end