Class EventsResource
The "events" collection of methods.
Inherited Members
Namespace: Google.Apis.Calendar.v3
Assembly: Google.Apis.Calendar.v3.dll
Syntax
public class EventsResource
Constructors
EventsResource(IClientService)
Constructs a new resource.
Declaration
public EventsResource(IClientService service)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service |
Methods
Delete(string, string)
Deletes an event.
Declaration
public virtual EventsResource.DeleteRequest Delete(string calendarId, string eventId)
Parameters
| Type | Name | Description |
|---|---|---|
| string | calendarId | 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. |
| string | eventId | Event identifier. |
Returns
| Type | Description |
|---|---|
| EventsResource.DeleteRequest |
Get(string, string)
Returns an event based on its Google Calendar ID. To retrieve an event using its iCalendar ID, call the events.list method using the iCalUID parameter.
Declaration
public virtual EventsResource.GetRequest Get(string calendarId, string eventId)
Parameters
| Type | Name | Description |
|---|---|---|
| string | calendarId | 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. |
| string | eventId | Event identifier. |
Returns
| Type | Description |
|---|---|
| EventsResource.GetRequest |
Import(Event, string)
Imports an event. This operation is used to add a private copy of an existing event to a calendar. Only events with an eventType of default may be imported. Deprecated behavior: If a non-default event is imported, its type will be changed to default and any event-type-specific properties it may have will be dropped.
Declaration
public virtual EventsResource.ImportRequest Import(Event body, string calendarId)
Parameters
| Type | Name | Description |
|---|---|---|
| Event | body | The body of the request. |
| string | calendarId | 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
| Type | Description |
|---|---|
| EventsResource.ImportRequest |
Insert(Event, string)
Creates an event.
Declaration
public virtual EventsResource.InsertRequest Insert(Event body, string calendarId)
Parameters
| Type | Name | Description |
|---|---|---|
| Event | body | The body of the request. |
| string | calendarId | 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
| Type | Description |
|---|---|
| EventsResource.InsertRequest |
Instances(string, string)
Returns instances of the specified recurring event.
Declaration
public virtual EventsResource.InstancesRequest Instances(string calendarId, string eventId)
Parameters
| Type | Name | Description |
|---|---|---|
| string | calendarId | 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. |
| string | eventId | Recurring event identifier. |
Returns
| Type | Description |
|---|---|
| EventsResource.InstancesRequest |
List(string)
Returns events on the specified calendar.
Declaration
public virtual EventsResource.ListRequest List(string calendarId)
Parameters
| Type | Name | Description |
|---|---|---|
| string | calendarId | 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
| Type | Description |
|---|---|
| EventsResource.ListRequest |
Move(string, string, string)
Moves an event to another calendar, i.e. changes an event's organizer. Note that only default events can be moved; birthday, focusTime, fromGmail, outOfOffice and workingLocation events cannot be moved.
Declaration
public virtual EventsResource.MoveRequest Move(string calendarId, string eventId, string destination)
Parameters
| Type | Name | Description |
|---|---|---|
| string | calendarId | Calendar identifier of the source calendar where the event currently is on. |
| string | eventId | Event identifier. |
| string | destination | Calendar identifier of the target calendar where the event is to be moved to. |
Returns
| Type | Description |
|---|---|
| EventsResource.MoveRequest |
Patch(Event, string, string)
Updates an event. This method supports patch semantics.
Declaration
public virtual EventsResource.PatchRequest Patch(Event body, string calendarId, string eventId)
Parameters
| Type | Name | Description |
|---|---|---|
| Event | body | The body of the request. |
| string | calendarId | 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. |
| string | eventId | Event identifier. |
Returns
| Type | Description |
|---|---|
| EventsResource.PatchRequest |
QuickAdd(string, string)
Creates an event based on a simple text string.
Declaration
public virtual EventsResource.QuickAddRequest QuickAdd(string calendarId, string text)
Parameters
| Type | Name | Description |
|---|---|---|
| string | calendarId | 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. |
| string | text | The text describing the event to be created. |
Returns
| Type | Description |
|---|---|
| EventsResource.QuickAddRequest |
Update(Event, string, string)
Updates an event.
Declaration
public virtual EventsResource.UpdateRequest Update(Event body, string calendarId, string eventId)
Parameters
| Type | Name | Description |
|---|---|---|
| Event | body | The body of the request. |
| string | calendarId | 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. |
| string | eventId | Event identifier. |
Returns
| Type | Description |
|---|---|
| EventsResource.UpdateRequest |
Watch(Channel, string)
Watch for changes to Events resources.
Declaration
public virtual EventsResource.WatchRequest Watch(Channel body, string calendarId)
Parameters
| Type | Name | Description |
|---|---|---|
| Channel | body | The body of the request. |
| string | calendarId | 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
| Type | Description |
|---|---|
| EventsResource.WatchRequest |