Skip to main content
This document describes how to call event-related APIs to manage event attendees. First, create an internal app. Then, use the APIs provided for events to create an event, add event attendees, retrieve event attendees, set the invitation response status, and remove event attendees.

Expected results

  • After the event is created successfully, the result appears as shown below.
  • The interface for adding event attendees appears as shown below.
  • The event response status appears as shown below.

Integration flow overview

This document demonstrates how to create an internal app and then use the APIs provided for events to manage event attendees. Prerequisite: Complete the App creation and configuration flow. Step 1: Retrieve App credentials, including the client ID and Client Secret. Step 2: Request API permissions for the event-related APIs. Step 3: Obtain the App access credential by following Get the access token of an internal app. The access token is used to authenticate the caller’s identity when calling APIs. Step 4: Call the server-side event-related APIs.
  1. Call the Server API New Event to create an event and retrieve the event id.
  2. Based on the event id, call the Server API Add event attendee to add event attendees.
  3. Based on the event id, call the Server API Get event attendees to retrieve attendee information.
  4. Based on the event id, call the Server API Set event invitation response status to set the attendee’s invitation response status.
  5. Based on the event id, call the Server API Delete Event attendee to remove event attendees.

Prerequisites

Complete the App creation and configuration flow.

Step 1: Retrieve App credentials

  1. Select the target app to open its details page, and click Basic information > Credentials and basic information.
  2. Retrieve the client ID and Client Secret.

Step 2: Add API permissions

Click Development configuration > Manage permissions. In the permission search box, enter Calendar.Event.Write and Calendar.Event.Read respectively, and request each permission.

Step 3: Obtain the access token

For differences between Server APIs, see Legacy API vs. new API. The following APIs all use Server APIs. For SDK downloads, see Server-side SDK downloads.
Use the client ID and Client Secret from Step 1 to obtain the access_token for the internal app.
  1. Call the Server API New Event to create an event and retrieve the event id.
  2. Based on the event id, call the Server API Add event attendee to add event attendees.
  3. Based on the event id, call the Server API Get event attendees to retrieve attendee information.
  4. Based on the event id, call the Server API Set event invitation response status to set the attendee’s invitation response status.
  5. Based on the event id, call the Server API Delete Event attendee to remove event attendees.