Uses 4337K of libraries. Click here for Pure Java version (2689L/17K).
1 | please include class GoogleAccess. |
2 | |
3 | import com.google.api.client.util.DateTime; |
4 | import com.google.api.services.calendar.Calendar; |
5 | import com.google.api.services.calendar.model.Event; |
6 | import com.google.api.services.calendar.model.Events; |
7 | |
8 | static L<Event> googleCalendar_eventsInDateRange(Calendar calendarService, TimeZone tz, long startDate, long endDate, int maxEvents) { |
9 | ret googleCalendar_eventsInDateRange(calendarService, tz, longRange(startDate, endDate), maxEvents); |
10 | } |
11 | |
12 | static L<Event> googleCalendar_eventsInDateRange(Calendar calendarService, TimeZone tz, LongRange dateRange, int maxEvents) ctex { |
13 | Events events = calendarService.events().list("primary") |
14 | .setMaxResults(maxEvents) |
15 | .setTimeMin(new DateTime(new java.util.Date(dateRange.start), tz)) |
16 | .setTimeMax(new DateTime(new java.util.Date(dateRange.end), tz)) |
17 | .setOrderBy("startTime") |
18 | .setSingleEvents(true) |
19 | .execute(); |
20 | ret events.getItems(); |
21 | } |
download show line numbers debug dex old transpilations
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1028555 |
Snippet name: | googleCalendar_eventsInDateRange |
Eternal ID of this version: | #1028555/7 |
Text MD5: | ad4c738898f25452f6d4d8b3647dbdd2 |
Transpilation MD5: | 98b7002048fa28d12b17dcacca0b9afc |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-06-28 18:27:02 |
Source code size: | 957 bytes / 21 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 220 / 323 |
Version history: | 6 change(s) |
Referenced in: | [show references] |