lib/google_oauth/calendar.rb
# Returns entries on the user's calendar list.
# CalendarList#list
Returns entries on the user's calendar list.
Returns entries on the user ' s calendar list .
def calendars
      page_token = nil
      result = execute(:api_method => service.calendar_list.list)
      entries = []
      while true
        entries += result.data.items
        if !(page_token = result.data.next_page_token)
          break
        end
        result = execute(:api_method => service.calendar_list.list,
                         :parameters => {'pageToken' => page_token})
      end
      entries
    end
def calendars page_token = nil result = execute ( :api_method => service . calendar_list . list ) entries = [ ] while true entries += result . data . items if ! ( page_token = result . data . next_page_token ) break end result = execute ( :api_method => service . calendar_list . list , :parameters => { 'pageToken' => page_token } ) end entries end
Returns entries on the user's calendar list.
Returns entries on the user ' s calendar list .