Class EventsResource
The "events" collection of methods.
public class EventsResource
- Inheritance
-
EventsResource
- Inherited Members
Constructors
EventsResource(IClientService)
Constructs a new resource.
public EventsResource(IClientService service)
Parameters
service
IClientService
Methods
Delete(string, string)
Deletes an event.
public virtual EventsResource.DeleteRequest Delete(string calendarId, string eventId)
Parameters
calendarId
stringCalendar identifier. To retrieve calendar IDs call the calendarList.list method. If you want to access the primary calendar of the currently logged in user, use the "primary" keyword.
eventId
stringEvent identifier.
Returns
Get(string, string)
Returns an event.
public virtual EventsResource.GetRequest Get(string calendarId, string eventId)
Parameters
calendarId
stringCalendar identifier. To retrieve calendar IDs call the calendarList.list method. If you want to access the primary calendar of the currently logged in user, use the "primary" keyword.
eventId
stringEvent identifier.
Returns
Import(Event, string)
Imports an event. This operation is used to add a private copy of an existing event to a calendar.
public virtual EventsResource.ImportRequest Import(Event body, string calendarId)
Parameters
body
EventThe body of the request.
calendarId
stringCalendar identifier. To retrieve calendar IDs call the calendarList.list method. If you want to access the primary calendar of the currently logged in user, use the "primary" keyword.
Returns
Insert(Event, string)
Creates an event.
public virtual EventsResource.InsertRequest Insert(Event body, string calendarId)
Parameters
body
EventThe body of the request.
calendarId
stringCalendar identifier. To retrieve calendar IDs call the calendarList.list method. If you want to access the primary calendar of the currently logged in user, use the "primary" keyword.
Returns
Instances(string, string)
Returns instances of the specified recurring event.
public virtual EventsResource.InstancesRequest Instances(string calendarId, string eventId)
Parameters
calendarId
stringCalendar identifier. To retrieve calendar IDs call the calendarList.list method. If you want to access the primary calendar of the currently logged in user, use the "primary" keyword.
eventId
stringRecurring event identifier.
Returns
List(string)
Returns events on the specified calendar.
public virtual EventsResource.ListRequest List(string calendarId)
Parameters
calendarId
stringCalendar identifier. To retrieve calendar IDs call the calendarList.list method. If you want to access the primary calendar of the currently logged in user, use the "primary" keyword.
Returns
Move(string, string, string)
Moves an event to another calendar, i.e. changes an event's organizer.
public virtual EventsResource.MoveRequest Move(string calendarId, string eventId, string destination)
Parameters
calendarId
stringCalendar identifier of the source calendar where the event currently is on.
eventId
stringEvent identifier.
destination
stringCalendar identifier of the target calendar where the event is to be moved to.
Returns
Patch(Event, string, string)
Updates an event. This method supports patch semantics.
public virtual EventsResource.PatchRequest Patch(Event body, string calendarId, string eventId)
Parameters
body
EventThe body of the request.
calendarId
stringCalendar identifier. To retrieve calendar IDs call the calendarList.list method. If you want to access the primary calendar of the currently logged in user, use the "primary" keyword.
eventId
stringEvent identifier.
Returns
QuickAdd(string, string)
Creates an event based on a simple text string.
public virtual EventsResource.QuickAddRequest QuickAdd(string calendarId, string text)
Parameters
calendarId
stringCalendar identifier. To retrieve calendar IDs call the calendarList.list method. If you want to access the primary calendar of the currently logged in user, use the "primary" keyword.
text
stringThe text describing the event to be created.
Returns
Update(Event, string, string)
Updates an event.
public virtual EventsResource.UpdateRequest Update(Event body, string calendarId, string eventId)
Parameters
body
EventThe body of the request.
calendarId
stringCalendar identifier. To retrieve calendar IDs call the calendarList.list method. If you want to access the primary calendar of the currently logged in user, use the "primary" keyword.
eventId
stringEvent identifier.
Returns
Watch(Channel, string)
Watch for changes to Events resources.
public virtual EventsResource.WatchRequest Watch(Channel body, string calendarId)
Parameters
body
ChannelThe body of the request.
calendarId
stringCalendar identifier. To retrieve calendar IDs call the calendarList.list method. If you want to access the primary calendar of the currently logged in user, use the "primary" keyword.