Class EventsResource
The "events" collection of methods.
Inheritance
Namespace: Google.Apis.Calendar.v3
Assembly: Google.Apis.Calendar.v3.dll
Syntax
public class EventsResource : object
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 |
|---|---|---|
| System.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. |
| System.String | eventId | Event identifier. |
Returns
| Type | Description |
|---|---|
| EventsResource.DeleteRequest |
Get(String, String)
Returns an event.
Declaration
public virtual EventsResource.GetRequest Get(string calendarId, string eventId)
Parameters
| Type | Name | Description |
|---|---|---|
| System.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. |
| System.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.
Declaration
public virtual EventsResource.ImportRequest Import(Event body, string calendarId)
Parameters
| Type | Name | Description |
|---|---|---|
| Event | body | The body of the request. |
| System.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. |
| System.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 |
|---|---|---|
| System.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. |
| System.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 |
|---|---|---|
| System.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.
Declaration
public virtual EventsResource.MoveRequest Move(string calendarId, string eventId, string destination)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | calendarId | Calendar identifier of the source calendar where the event currently is on. |
| System.String | eventId | Event identifier. |
| System.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. |
| System.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. |
| System.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 |
|---|---|---|
| System.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. |
| System.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. |
| System.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. |
| System.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. |
| System.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 |