Table of Contents

Class EventsResource

Namespace
Google.Apis.Calendar.v3
Assembly
Google.Apis.Calendar.v3.dll

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 string

Calendar 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 string

Event identifier.

Returns

EventsResource.DeleteRequest

Get(string, string)

Returns an event.

public virtual EventsResource.GetRequest Get(string calendarId, string eventId)

Parameters

calendarId string

Calendar 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 string

Event identifier.

Returns

EventsResource.GetRequest

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 Event

The body of the request.

calendarId string

Calendar 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

EventsResource.ImportRequest

Insert(Event, string)

Creates an event.

public virtual EventsResource.InsertRequest Insert(Event body, string calendarId)

Parameters

body Event

The body of the request.

calendarId string

Calendar 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

EventsResource.InsertRequest

Instances(string, string)

Returns instances of the specified recurring event.

public virtual EventsResource.InstancesRequest Instances(string calendarId, string eventId)

Parameters

calendarId string

Calendar 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 string

Recurring event identifier.

Returns

EventsResource.InstancesRequest

List(string)

Returns events on the specified calendar.

public virtual EventsResource.ListRequest List(string calendarId)

Parameters

calendarId string

Calendar 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

EventsResource.ListRequest

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 string

Calendar identifier of the source calendar where the event currently is on.

eventId string

Event identifier.

destination string

Calendar identifier of the target calendar where the event is to be moved to.

Returns

EventsResource.MoveRequest

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 Event

The body of the request.

calendarId string

Calendar 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 string

Event identifier.

Returns

EventsResource.PatchRequest

QuickAdd(string, string)

Creates an event based on a simple text string.

public virtual EventsResource.QuickAddRequest QuickAdd(string calendarId, string text)

Parameters

calendarId string

Calendar 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 string

The text describing the event to be created.

Returns

EventsResource.QuickAddRequest

Update(Event, string, string)

Updates an event.

public virtual EventsResource.UpdateRequest Update(Event body, string calendarId, string eventId)

Parameters

body Event

The body of the request.

calendarId string

Calendar 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 string

Event identifier.

Returns

EventsResource.UpdateRequest

Watch(Channel, string)

Watch for changes to Events resources.

public virtual EventsResource.WatchRequest Watch(Channel body, string calendarId)

Parameters

body Channel

The body of the request.

calendarId string

Calendar 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

EventsResource.WatchRequest