Skip to main content

CalendarEventsService

A list of all methods in the CalendarEventsService service. Click on the method name to view detailed information about that method.

MethodsDescription
read_glip_events_newReturns all calendar events created by the current user.
create_event_newCreates a new calendar event.
read_event_newReturns the specified calendar event(s) by ID(s).
update_event_newUpdates the specified calendar event.
delete_event_newDeletes the specified calendar event.
list_group_events_newReturns a list of calendar events available for the current user within the specified group. Users can only see their personal tasks and public tasks.
create_event_by_group_id_newCreates a new calendar event within the specified group.

read_glip_events_new

Returns all calendar events created by the current user.

  • HTTP Method: GET
  • Endpoint: /team-messaging/v1/events

Parameters

NameTypeRequiredDescription
record_countintNumber of groups to be fetched by one request. The maximum value is 250, by default - 30.
page_tokenstrToken of a page to be returned

Return Type

TmEventList

Example Usage Code Snippet

from ring_central import RingCentral, Environment

sdk = RingCentral(
access_token="YOUR_ACCESS_TOKEN",
base_url=Environment.DEFAULT.value
)

result = sdk.calendar_events.read_glip_events_new(
record_count=30,
page_token="pageToken"
)

print(result)

create_event_new

Creates a new calendar event.

  • HTTP Method: POST
  • Endpoint: /team-messaging/v1/events

Parameters

NameTypeRequiredDescription
request_bodyTmCreateEventRequestThe request body.

Return Type

TmEventInfo

Example Usage Code Snippet

from ring_central import RingCentral, Environment
from ring_central.models import TmCreateEventRequest

sdk = RingCentral(
access_token="YOUR_ACCESS_TOKEN",
base_url=Environment.DEFAULT.value
)

request_body = TmCreateEventRequest(
id_="id",
creator_id="creatorId",
title="title",
start_time="startTime",
end_time="endTime",
all_day=True,
recurrence={
"schedule": "None",
"ending_condition": "None",
"ending_after": 6,
"ending_on": "endingOn"
},
color="Black",
location="location",
description="description"
)

result = sdk.calendar_events.create_event_new(request_body=request_body)

print(result)

read_event_new

Returns the specified calendar event(s) by ID(s).

  • HTTP Method: GET
  • Endpoint: /team-messaging/v1/events/{eventId}

Parameters

NameTypeRequiredDescription
event_idList[str]Event id or comma separated list of event ids.

Return Type

TmEventInfo

Example Usage Code Snippet

from ring_central import RingCentral, Environment

sdk = RingCentral(
access_token="YOUR_ACCESS_TOKEN",
base_url=Environment.DEFAULT.value
)
event_id=[
"eventId"
]

result = sdk.calendar_events.read_event_new(event_id=event_id)

print(result)

update_event_new

Updates the specified calendar event.

  • HTTP Method: PUT
  • Endpoint: /team-messaging/v1/events/{eventId}

Parameters

NameTypeRequiredDescription
request_bodyTmCreateEventRequestThe request body.
event_idstrInternal identifier of an event

Return Type

TmEventInfo

Example Usage Code Snippet

from ring_central import RingCentral, Environment
from ring_central.models import TmCreateEventRequest

sdk = RingCentral(
access_token="YOUR_ACCESS_TOKEN",
base_url=Environment.DEFAULT.value
)

request_body = TmCreateEventRequest(
id_="id",
creator_id="creatorId",
title="title",
start_time="startTime",
end_time="endTime",
all_day=True,
recurrence={
"schedule": "None",
"ending_condition": "None",
"ending_after": 6,
"ending_on": "endingOn"
},
color="Black",
location="location",
description="description"
)

result = sdk.calendar_events.update_event_new(
request_body=request_body,
event_id="eventId"
)

print(result)

delete_event_new

Deletes the specified calendar event.

  • HTTP Method: DELETE
  • Endpoint: /team-messaging/v1/events/{eventId}

Parameters

NameTypeRequiredDescription
event_idstrInternal identifier of an event to be deleted

Example Usage Code Snippet

from ring_central import RingCentral, Environment

sdk = RingCentral(
access_token="YOUR_ACCESS_TOKEN",
base_url=Environment.DEFAULT.value
)

result = sdk.calendar_events.delete_event_new(event_id="eventId")

print(result)

list_group_events_new

Returns a list of calendar events available for the current user within the specified group. Users can only see their personal tasks and public tasks.

  • HTTP Method: GET
  • Endpoint: /team-messaging/v1/groups/{groupId}/events

Parameters

NameTypeRequiredDescription
group_idstrInternal identifier of a group

Return Type

TmEventInfo

Example Usage Code Snippet

from ring_central import RingCentral, Environment

sdk = RingCentral(
access_token="YOUR_ACCESS_TOKEN",
base_url=Environment.DEFAULT.value
)

result = sdk.calendar_events.list_group_events_new(group_id="groupId")

print(result)

create_event_by_group_id_new

Creates a new calendar event within the specified group.

  • HTTP Method: POST
  • Endpoint: /team-messaging/v1/groups/{groupId}/events

Parameters

NameTypeRequiredDescription
request_bodyTmCreateEventRequestThe request body.
group_idstrInternal identifier of a group

Return Type

TmEventInfo

Example Usage Code Snippet

from ring_central import RingCentral, Environment
from ring_central.models import TmCreateEventRequest

sdk = RingCentral(
access_token="YOUR_ACCESS_TOKEN",
base_url=Environment.DEFAULT.value
)

request_body = TmCreateEventRequest(
id_="id",
creator_id="creatorId",
title="title",
start_time="startTime",
end_time="endTime",
all_day=True,
recurrence={
"schedule": "None",
"ending_condition": "None",
"ending_after": 6,
"ending_on": "endingOn"
},
color="Black",
location="location",
description="description"
)

result = sdk.calendar_events.create_event_by_group_id_new(
request_body=request_body,
group_id="groupId"
)

print(result)

Build Your Own SDKs with  liblab

Build developer friendly SDKs in minutes from your APIs

Start for Free →