gc_event_new: Create a new calendar event

Description Usage Arguments Details Value Examples

Description

Creates an event in a Google Calendar. This method operates on the Google Calendar API Events resource.

Usage

1
gc_event_new(x, start, end, ..., sendNotifications = FALSE, verbose = TRUE)

Arguments

x

googlecalendar object representing the calendar in which to create the event.

start, end

Named list representing the start or end time. May include the following properties: date, dateTime, and timeZone.

sendNotifications

Logical indicating whether to send notifications about the event.

verbose

Logical indicating whether to print informative messages.

...

Additional parameters to be passed as part of the HTTP request body. More information on these optional values is available below.

Details

For more information on the structure of an event object, see the Google Calendar API Events Resource Overview.

Value

Event metadata as an invisible event object (a custom class wrapping a named list).

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
cal <- gc_summary("Commitments")

gc_event_new(
  cal,
  start = list(dateTime = "2016-06-01T09:00:00Z"),
  end = list(dateTime = "2016-06-01T10:00:00Z"),
  summary = "Lunch with Alyssa"
)

## End(Not run)

benjcunningham/googlecalendar documentation built on May 12, 2019, 11:56 a.m.