با شرکت کنندگان کار کنید

این راهنما نحوه دریافت جزئیات درباره شرکت‌کنندگانی که در کنفرانس گذشته شرکت کرده‌اند یا در یک کنفرانس فعال هستند، همراه با اطلاعات جلسه آنها با استفاده از Google Meet REST API توضیح می‌دهد.

شرکت‌کننده فردی است که به یک تماس ملحق شده است یا از حالت همراه استفاده می‌کند، به‌عنوان بیننده تماشا می‌کند، یا یک دستگاه اتاق متصل به تماس. برای هر فرد یک منبع participants وجود دارد.

جلسه شرکت‌کننده، شناسه جلسه منحصربه‌فردی است که برای هر جفت شرکت‌کننده-دستگاهی که به یک تماس می‌پیوندد ایجاد می‌شود. برای هر جلسه یک منبع participantSessions وجود دارد. اگر شرکت‌کننده چندین بار از یک جفت شرکت‌کننده-دستگاه به یک تماس بپیوندد، به هر یک از آنها شناسه‌های جلسه منحصربه‌فرد اختصاص داده می‌شود.

اگر مالک یا شرکت‌کننده فضای جلسه هستید، می‌توانید برای بازیابی سوابق شرکت‌کننده، متدهای get() و list() را هم در participants و هم در منابع participantSessions فراخوانی کنید.

احراز هویت و تأیید اعتبار با استفاده از اطلاعات کاربری به برنامه‌های Google Meet اجازه می‌دهد به داده‌های کاربر دسترسی داشته باشند و عملیات‌هایی را از طرف کاربر تأیید شده انجام دهند. احراز هویت با تفویض اختیار در سطح دامنه به شما امکان می‌دهد به حساب سرویس یک برنامه اجازه دهید بدون نیاز به رضایت هر کاربر به داده‌های کاربرانتان دسترسی داشته باشد.

شرکت کنندگان

بخش‌های زیر نحوه دریافت اطلاعات درباره شرکت‌کنندگان در یک رکورد کنفرانس را شرح می‌دهد.

participants اتحادیه‌های منابع را با فیلد user تامین می‌کنند. یک user می تواند تنها یکی از اشیاء زیر باشد:

  • یک signedinUser یکی است:

    • فردی که از رایانه شخصی، دستگاه تلفن همراه یا از طریق حالت Companion ملحق می شود.

    • یک حساب رباتی که توسط دستگاه های اتاق کنفرانس استفاده می شود.

  • یک anonymousUser یک کاربر ناشناس است که به یک حساب Google وارد نشده است.

  • phoneUser کاربری است که از تلفنی تماس می گیرد که هویت کاربر ناشناخته است زیرا با یک حساب Google وارد نشده است.

توجه داشته باشید که در حالی که هر سه شیء یک displayName برمی‌گردانند، signedinUser یک شناسه user منحصر به فرد را نیز برمی‌گرداند که با Admin SDK API و People API قابل همکاری است. قالب: users/{user} . برای اطلاعات بیشتر در مورد استفاده از شناسه user با People API، به بازیابی جزئیات شرکت‌کننده با People API مراجعه کنید.

جزئیات یک شرکت کننده را دریافت کنید

برای دریافت جزئیات در مورد یک شرکت‌کننده خاص، از متد get() در منبع participants با پارامتر مسیر name استفاده کنید. اگر نام شرکت‌کننده را نمی‌دانید، می‌توانید همه نام‌های شرکت‌کننده را با استفاده از متد list() فهرست کنید.

این روش داده‌های شرکت‌کننده را به عنوان نمونه‌ای از منبع participants برمی‌گرداند.

نمونه کد زیر نحوه بازیابی یک شرکت‌کننده خاص را نشان می‌دهد:

java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/getparticipant/AsyncGetParticipant.java
import com.google.api.core.ApiFuture;
import com.google.apps.meet.v2.ConferenceRecordsServiceClient;
import com.google.apps.meet.v2.GetParticipantRequest;
import com.google.apps.meet.v2.Participant;
import com.google.apps.meet.v2.ParticipantName;

public class AsyncGetParticipant {

  public static void main(String[] args) throws Exception {
    asyncGetParticipant();
  }

  public static void asyncGetParticipant() throws Exception {
    // This snippet has been automatically generated and should be regarded as a code template only.
    // It will require modifications to work:
    // - It may require correct/in-range values for request initialization.
    // - It may require specifying regional endpoints when creating the service client as shown in
    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    try (ConferenceRecordsServiceClient conferenceRecordsServiceClient =
        ConferenceRecordsServiceClient.create()) {
      GetParticipantRequest request =
          GetParticipantRequest.newBuilder()
              .setName(ParticipantName.of("[CONFERENCE_RECORD]", "[PARTICIPANT]").toString())
              .build();
      ApiFuture<Participant> future =
          conferenceRecordsServiceClient.getParticipantCallable().futureCall(request);
      // Do something.
      Participant response = future.get();
    }
  }
}
packages/google-apps-meet/samples/generated/v2/conference_records_service.get_participant.js
/**
 * This snippet has been automatically generated and should be regarded as a code template only.
 * It will require modifications to work.
 * It may require correct/in-range values for request initialization.
 * TODO(developer): Uncomment these variables before running the sample.
 */
/**
 *  Required. Resource name of the participant.
 */
// const name = 'abc123'

// Imports the Meet library
const {ConferenceRecordsServiceClient} = require('@google-apps/meet').v2;

// Instantiates a client
const meetClient = new ConferenceRecordsServiceClient();

async function callGetParticipant() {
  // Construct request
  const request = {
    name,
  };

  // Run request
  const response = await meetClient.getParticipant(request);
  console.log(response);
}

callGetParticipant();
packages/google-apps-meet/samples/generated_samples/meet_v2_generated_conference_records_service_get_participant_async.py
# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
#   client as shown in:
#   https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.apps import meet_v2


async def sample_get_participant():
    # Create a client
    client = meet_v2.ConferenceRecordsServiceAsyncClient()

    # Initialize request argument(s)
    request = meet_v2.GetParticipantRequest(
        name="name_value",
    )

    # Make the request
    response = await client.get_participant(request=request)

    # Handle the response
    print(response)

نام شرکت کننده را با نام شناسه شرکت کننده خاص در رکورد کنفرانس جایگزین کنید.

لیست همه شرکت کنندگان

برای فهرست کردن جزئیات مربوط به همه شرکت کنندگان در یک رکورد کنفرانس، از متد list() در منبع participants با پارامتر مسیر parent استفاده کنید. فرمت: conferenceRecords/{conferenceRecord} .

این روش فهرستی از شرکت کنندگان در کنفرانس را که توسط earliestStartTime به ترتیب نزولی مرتب شده اند، به عنوان نمونه ای از منابع participants برمی گرداند. برای تنظیم اندازه صفحه و فیلتر کردن نتایج پرس و جو، به سفارشی کردن صفحه بندی یا فیلتر کردن لیست شرکت کنندگان مراجعه کنید.

نمونه کد زیر نحوه فهرست کردن همه شرکت کنندگان در یک رکورد کنفرانس را نشان می دهد:

java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/listparticipants/AsyncListParticipants.java
import com.google.api.core.ApiFuture;
import com.google.apps.meet.v2.ConferenceRecordName;
import com.google.apps.meet.v2.ConferenceRecordsServiceClient;
import com.google.apps.meet.v2.ListParticipantsRequest;
import com.google.apps.meet.v2.Participant;

public class AsyncListParticipants {

  public static void main(String[] args) throws Exception {
    asyncListParticipants();
  }

  public static void asyncListParticipants() throws Exception {
    // This snippet has been automatically generated and should be regarded as a code template only.
    // It will require modifications to work:
    // - It may require correct/in-range values for request initialization.
    // - It may require specifying regional endpoints when creating the service client as shown in
    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    try (ConferenceRecordsServiceClient conferenceRecordsServiceClient =
        ConferenceRecordsServiceClient.create()) {
      ListParticipantsRequest request =
          ListParticipantsRequest.newBuilder()
              .setParent(ConferenceRecordName.of("[CONFERENCE_RECORD]").toString())
              .setPageSize(883849137)
              .setPageToken("pageToken873572522")
              .setFilter("filter-1274492040")
              .build();
      ApiFuture<Participant> future =
          conferenceRecordsServiceClient.listParticipantsPagedCallable().futureCall(request);
      // Do something.
      for (Participant element : future.get().iterateAll()) {
        // doThingsWith(element);
      }
    }
  }
}
packages/google-apps-meet/samples/generated/v2/conference_records_service.list_participants.js
/**
 * This snippet has been automatically generated and should be regarded as a code template only.
 * It will require modifications to work.
 * It may require correct/in-range values for request initialization.
 * TODO(developer): Uncomment these variables before running the sample.
 */
/**
 *  Required. Format: `conferenceRecords/{conference_record}`
 */
// const parent = 'abc123'
/**
 *  Maximum number of participants to return. The service might return fewer
 *  than this value.
 *  If unspecified, at most 100 participants are returned.
 *  The maximum value is 250; values above 250 are coerced to 250.
 *  Maximum might change in the future.
 */
// const pageSize = 1234
/**
 *  Page token returned from previous List Call.
 */
// const pageToken = 'abc123'
/**
 *  Optional. User specified filtering condition in EBNF
 *  format (https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form).
 *  The following are the filterable fields:
 *  * `earliest_start_time`
 *  * `latest_end_time`
 *  For example, `latest_end_time IS NULL` returns active participants in
 *  the conference.
 */
// const filter = 'abc123'

// Imports the Meet library
const {ConferenceRecordsServiceClient} = require('@google-apps/meet').v2;

// Instantiates a client
const meetClient = new ConferenceRecordsServiceClient();

async function callListParticipants() {
  // Construct request
  const request = {
    parent,
  };

  // Run request
  const iterable = meetClient.listParticipantsAsync(request);
  for await (const response of iterable) {
      console.log(response);
  }
}

callListParticipants();
packages/google-apps-meet/samples/generated_samples/meet_v2_generated_conference_records_service_list_participants_async.py
# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
#   client as shown in:
#   https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.apps import meet_v2


async def sample_list_participants():
    # Create a client
    client = meet_v2.ConferenceRecordsServiceAsyncClient()

    # Initialize request argument(s)
    request = meet_v2.ListParticipantsRequest(
        parent="parent_value",
    )

    # Make the request
    page_result = client.list_participants(request=request)

    # Handle the response
    async for response in page_result:
        print(response)

مقدار والد را با نام رکورد کنفرانس جایگزین کنید.

صفحه بندی را سفارشی کنید یا لیست شرکت کنندگان را فیلتر کنید

برای سفارشی کردن صفحه بندی یا فیلتر کردن شرکت کنندگان، پارامترهای پرس و جو زیر را ارسال کنید:

  • pageSize : حداکثر تعداد شرکت کنندگانی که باید برگردند. ممکن است این سرویس کمتر از این مقدار را برگرداند. اگر نامشخص باشد، حداکثر 100 شرکت کننده برگردانده می شوند. حداکثر مقدار 250 است. مقادیر بیش از 250 به طور خودکار به 250 تغییر می کند.

  • pageToken : یک نشانه صفحه، دریافت شده از یک تماس فهرست قبلی. این نشانه را برای بازیابی صفحه بعدی ارائه دهید.

  • filter : اختیاری یک فیلتر پرس و جو برای بازیابی موارد خاص در نتایج منابع participants .

    می‌توانید از فیلدهای earliestStartTime یا latestEndTime برای فیلتر کردن کاربرانی که قبل یا بعد از زمان مشخصی عضو شده‌اند استفاده کنید. هر دو فیلد از قالب مهر زمانی در قالب RFC 3339 UTC "Zulu"، با وضوح نانوثانیه و حداکثر نه رقم کسری استفاده می‌کنند: {year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z . به عنوان مثال:

    • earliestStartTime < 2023-10-01T15:01:23Z
    • latestEndTime < 2023-10-01T15:01:23Z

    برای فهرست کردن همه شرکت‌کنندگان فعال در یک کنفرانس موجود، از latestEndTime IS NULL استفاده کنید.

جزئیات شرکت‌کننده را با People API بازیابی کنید

برای بازیابی جزئیات در مورد یک شرکت کننده، از متد get() در منبع people در People API استفاده کنید.

  1. شناسه شخص را از منبع participant با استفاده از جزء دنباله دار مسیر استخراج کنید. برای مثال، اگر مقدار منبع participant conferenceRecords/abc-123/participants/12345 باشد، شناسه برای People API 12345 است.

  2. شامل READ_SOURCE_TYPE_PROFILE ، READ_SOURCE_TYPE_CONTACT ، و READ_SOURCE_TYPE_OTHER_CONTACT ReadSourceType . این اطمینان حاصل می کند که هم کاربران داخلی یک سازمان Google Workspace و هم مخاطبین خارجی در پاسخ گنجانده شده اند.

نمونه کد زیر نحوه جستجوی نمایه‌های سازمان و مخاطبین یک شخص را نشان می‌دهد:

CURL
curl \
   'https://people.googleapis.com/v1/people/PERSON_ID?personFields=names%2CemailAddresses&sources=READ_SOURCE_TYPE_OTHER_CONTACT&sources=READ_SOURCE_TYPE_PROFILE&sources=READ_SOURCE_TYPE_CONTACT' \
   --header 'Authorization: Bearer ACCESS_TOKEN' \
   --header 'Accept: application/json' \
   --compressed

موارد زیر را جایگزین کنید:

  • PERSON_ID : شناسه شخصی که باید پیدا شود.
  • ACCESS_TOKEN : نشانه دسترسی که به چندین API دسترسی می دهد.

جلسات شرکت کننده

بخش‌های زیر نحوه دریافت اطلاعات درباره جلسات شرکت‌کننده یک شرکت‌کننده در رکورد کنفرانس را شرح می‌دهد.

جزئیات جلسه شرکت کننده را دریافت کنید

برای دریافت جزئیات در مورد یک جلسه شرکت کننده خاص، از متد get() در منبع participantSessions با پارامتر مسیر name استفاده کنید. اگر نام جلسه شرکت‌کننده را نمی‌دانید، می‌توانید تمام جلسات شرکت‌کننده یک شرکت‌کننده را با استفاده از متد list() فهرست کنید.

این روش نام شرکت کننده را به عنوان نمونه ای از منبع participantSessions برمی گرداند.

نمونه کد زیر نحوه بازیابی یک جلسه شرکت کننده خاص را نشان می دهد:

java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/getparticipantsession/AsyncGetParticipantSession.java
import com.google.api.core.ApiFuture;
import com.google.apps.meet.v2.ConferenceRecordsServiceClient;
import com.google.apps.meet.v2.GetParticipantSessionRequest;
import com.google.apps.meet.v2.ParticipantSession;
import com.google.apps.meet.v2.ParticipantSessionName;

public class AsyncGetParticipantSession {

  public static void main(String[] args) throws Exception {
    asyncGetParticipantSession();
  }

  public static void asyncGetParticipantSession() throws Exception {
    // This snippet has been automatically generated and should be regarded as a code template only.
    // It will require modifications to work:
    // - It may require correct/in-range values for request initialization.
    // - It may require specifying regional endpoints when creating the service client as shown in
    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    try (ConferenceRecordsServiceClient conferenceRecordsServiceClient =
        ConferenceRecordsServiceClient.create()) {
      GetParticipantSessionRequest request =
          GetParticipantSessionRequest.newBuilder()
              .setName(
                  ParticipantSessionName.of(
                          "[CONFERENCE_RECORD]", "[PARTICIPANT]", "[PARTICIPANT_SESSION]")
                      .toString())
              .build();
      ApiFuture<ParticipantSession> future =
          conferenceRecordsServiceClient.getParticipantSessionCallable().futureCall(request);
      // Do something.
      ParticipantSession response = future.get();
    }
  }
}
packages/google-apps-meet/samples/generated/v2/conference_records_service.get_participant_session.js
/**
 * This snippet has been automatically generated and should be regarded as a code template only.
 * It will require modifications to work.
 * It may require correct/in-range values for request initialization.
 * TODO(developer): Uncomment these variables before running the sample.
 */
/**
 *  Required. Resource name of the participant.
 */
// const name = 'abc123'

// Imports the Meet library
const {ConferenceRecordsServiceClient} = require('@google-apps/meet').v2;

// Instantiates a client
const meetClient = new ConferenceRecordsServiceClient();

async function callGetParticipantSession() {
  // Construct request
  const request = {
    name,
  };

  // Run request
  const response = await meetClient.getParticipantSession(request);
  console.log(response);
}

callGetParticipantSession();
packages/google-apps-meet/samples/generated_samples/meet_v2_generated_conference_records_service_get_participant_session_async.py
# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
#   client as shown in:
#   https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.apps import meet_v2


async def sample_get_participant_session():
    # Create a client
    client = meet_v2.ConferenceRecordsServiceAsyncClient()

    # Initialize request argument(s)
    request = meet_v2.GetParticipantSessionRequest(
        name="name_value",
    )

    # Make the request
    response = await client.get_participant_session(request=request)

    # Handle the response
    print(response)

نام شرکت کننده را با نام شناسه جلسه شرکت کننده خاص در جلسه شرکت کننده جایگزین کنید.

لیست تمام جلسات شرکت کننده

برای فهرست کردن جزئیات مربوط به تمام جلسات شرکت کننده یک شرکت کننده در یک رکورد کنفرانس، از متد list() در منبع participantSessions با پارامتر مسیر parent استفاده کنید. قالب: conferenceRecords/{conferenceRecord}/participants/{participant} .

این روش فهرستی از جلسات شرکت‌کننده را که توسط startTime به ترتیب نزولی مرتب شده‌اند، به عنوان نمونه‌ای از یک منبع participantSession برمی‌گرداند. برای تنظیم اندازه صفحه و فیلتر کردن نتایج پرس و جو، به سفارشی کردن صفحه بندی مراجعه کنید یا لیست جلسات شرکت کننده را فیلتر کنید .

نمونه کد زیر نحوه فهرست کردن تمام جلسات شرکت‌کننده را در یک رکورد کنفرانس نشان می‌دهد:

java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/listparticipantsessions/AsyncListParticipantSessions.java
import com.google.api.core.ApiFuture;
import com.google.apps.meet.v2.ConferenceRecordsServiceClient;
import com.google.apps.meet.v2.ListParticipantSessionsRequest;
import com.google.apps.meet.v2.ParticipantName;
import com.google.apps.meet.v2.ParticipantSession;

public class AsyncListParticipantSessions {

  public static void main(String[] args) throws Exception {
    asyncListParticipantSessions();
  }

  public static void asyncListParticipantSessions() throws Exception {
    // This snippet has been automatically generated and should be regarded as a code template only.
    // It will require modifications to work:
    // - It may require correct/in-range values for request initialization.
    // - It may require specifying regional endpoints when creating the service client as shown in
    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    try (ConferenceRecordsServiceClient conferenceRecordsServiceClient =
        ConferenceRecordsServiceClient.create()) {
      ListParticipantSessionsRequest request =
          ListParticipantSessionsRequest.newBuilder()
              .setParent(ParticipantName.of("[CONFERENCE_RECORD]", "[PARTICIPANT]").toString())
              .setPageSize(883849137)
              .setPageToken("pageToken873572522")
              .setFilter("filter-1274492040")
              .build();
      ApiFuture<ParticipantSession> future =
          conferenceRecordsServiceClient.listParticipantSessionsPagedCallable().futureCall(request);
      // Do something.
      for (ParticipantSession element : future.get().iterateAll()) {
        // doThingsWith(element);
      }
    }
  }
}
packages/google-apps-meet/samples/generated/v2/conference_records_service.list_participant_sessions.js
// Copyright 2025 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
// ** This file is automatically generated by gapic-generator-typescript. **
// ** https://github.com/googleapis/gapic-generator-typescript **
// ** All changes to this file may be overwritten. **



'use strict';

function main(parent) {
  /**
   * This snippet has been automatically generated and should be regarded as a code template only.
   * It will require modifications to work.
   * It may require correct/in-range values for request initialization.
   * TODO(developer): Uncomment these variables before running the sample.
   */
  /**
   *  Required. Format:
   *  `conferenceRecords/{conference_record}/participants/{participant}`
   */
  // const parent = 'abc123'
  /**
   *  Optional. Maximum number of participant sessions to return. The service
   *  might return fewer than this value. If unspecified, at most 100
   *  participants are returned. The maximum value is 250; values above 250 are
   *  coerced to 250. Maximum might change in the future.
   */
  // const pageSize = 1234
  /**
   *  Optional. Page token returned from previous List Call.
   */
  // const pageToken = 'abc123'
  /**
   *  Optional. User specified filtering condition in EBNF
   *  format (https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form).
   *  The following are the filterable fields:
   *  * `start_time`
   *  * `end_time`
   *  For example, `end_time IS NULL` returns active participant sessions in
   *  the conference record.
   */
  // const filter = 'abc123'

  // Imports the Meet library
  const {ConferenceRecordsServiceClient} = require('@google-apps/meet').v2;

  // Instantiates a client
  const meetClient = new ConferenceRecordsServiceClient();

  async function callListParticipantSessions() {
    // Construct request
    const request = {
      parent,
    };

    // Run request
    const iterable = meetClient.listParticipantSessionsAsync(request);
    for await (const response of iterable) {
        console.log(response);
    }
  }

  callListParticipantSessions();
}

process.on('unhandledRejection', err => {
  console.error(err.message);
  process.exitCode = 1;
});
main(...process.argv.slice(2));
packages/google-apps-meet/samples/generated_samples/meet_v2_generated_conference_records_service_list_participant_sessions_async.py
# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
#   client as shown in:
#   https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.apps import meet_v2


async def sample_list_participant_sessions():
    # Create a client
    client = meet_v2.ConferenceRecordsServiceAsyncClient()

    # Initialize request argument(s)
    request = meet_v2.ListParticipantSessionsRequest(
        parent="parent_value",
    )

    # Make the request
    page_result = client.list_participant_sessions(request=request)

    # Handle the response
    async for response in page_result:
        print(response)

مقدار والد را با نام جلسات شرکت کننده یک شرکت کننده در رکورد کنفرانس جایگزین کنید.

صفحه بندی را سفارشی کنید یا لیست جلسات شرکت کننده را فیلتر کنید

برای سفارشی کردن صفحه بندی یا فیلتر کردن جلسات شرکت کننده، پارامترهای پرس و جو اختیاری زیر را ارسال کنید:

  • pageSize : حداکثر تعداد جلسات شرکت کننده برای بازگشت. ممکن است این سرویس کمتر از این مقدار را برگرداند. اگر مشخص نشده باشد، حداکثر 100 جلسه شرکت کننده برگردانده می شوند. حداکثر مقدار 250 است. مقادیر بیش از 250 به طور خودکار به 250 تغییر می کند.

  • pageToken : یک نشانه صفحه، دریافت شده از یک تماس فهرست قبلی. این نشانه را برای بازیابی صفحه بعدی ارائه دهید.

  • filter : اختیاری یک فیلتر پرس و جو برای بازیابی موارد خاص در نتایج منابع participants .

    می‌توانید از فیلدهای startTime یا endTime برای فیلتر کردن کاربرانی استفاده کنید که قبل یا بعد از زمان مشخصی عضو شده‌اند. هر دو فیلد از قالب مهر زمانی در قالب RFC 3339 UTC "Zulu"، با وضوح نانوثانیه و حداکثر نه رقم کسری استفاده می‌کنند: {year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z . به عنوان مثال:

    • startTime < 2023-10-01T15:01:23Z
    • endTime < 2023-10-01T15:01:23Z

    برای فهرست کردن تمام جلسات شرکت‌کننده فعال در رکورد کنفرانس، endTime IS NULL استفاده کنید.

،

این راهنما نحوه دریافت جزئیات درباره شرکت‌کنندگانی که در کنفرانس گذشته شرکت کرده‌اند یا در یک کنفرانس فعال هستند، همراه با اطلاعات جلسه آنها با استفاده از Google Meet REST API توضیح می‌دهد.

شرکت‌کننده فردی است که به یک تماس ملحق شده است یا از حالت همراه استفاده می‌کند، به‌عنوان بیننده تماشا می‌کند، یا یک دستگاه اتاق متصل به تماس. برای هر فرد یک منبع participants وجود دارد.

جلسه شرکت‌کننده، شناسه جلسه منحصربه‌فردی است که برای هر جفت شرکت‌کننده-دستگاهی که به یک تماس می‌پیوندد ایجاد می‌شود. برای هر جلسه یک منبع participantSessions وجود دارد. اگر شرکت‌کننده چندین بار از یک جفت شرکت‌کننده-دستگاه به یک تماس بپیوندد، به هر یک از آنها شناسه‌های جلسه منحصربه‌فرد اختصاص داده می‌شود.

اگر مالک یا شرکت‌کننده فضای جلسه هستید، می‌توانید برای بازیابی سوابق شرکت‌کننده، متدهای get() و list() را هم در participants و هم در منابع participantSessions فراخوانی کنید.

احراز هویت و تأیید اعتبار با استفاده از اطلاعات کاربری به برنامه‌های Google Meet اجازه می‌دهد به داده‌های کاربر دسترسی داشته باشند و عملیات‌هایی را از طرف کاربر تأیید شده انجام دهند. احراز هویت با تفویض اختیار در سطح دامنه به شما امکان می‌دهد به حساب سرویس یک برنامه اجازه دهید بدون نیاز به رضایت هر کاربر به داده‌های کاربرانتان دسترسی داشته باشد.

شرکت کنندگان

بخش‌های زیر نحوه دریافت اطلاعات درباره شرکت‌کنندگان در یک رکورد کنفرانس را شرح می‌دهد.

participants اتحادیه‌های منابع را با فیلد user تامین می‌کنند. یک user می تواند تنها یکی از اشیاء زیر باشد:

  • یک signedinUser یکی است:

    • فردی که از رایانه شخصی، دستگاه تلفن همراه یا از طریق حالت Companion ملحق می شود.

    • یک حساب رباتی که توسط دستگاه های اتاق کنفرانس استفاده می شود.

  • یک anonymousUser یک کاربر ناشناس است که به یک حساب Google وارد نشده است.

  • phoneUser کاربری است که از تلفنی تماس می گیرد که هویت کاربر ناشناخته است زیرا با یک حساب Google وارد نشده است.

توجه داشته باشید که در حالی که هر سه شیء یک displayName برمی‌گردانند، signedinUser یک شناسه user منحصر به فرد را نیز برمی‌گرداند که با Admin SDK API و People API قابل همکاری است. قالب: users/{user} . برای اطلاعات بیشتر در مورد استفاده از شناسه user با People API، به بازیابی جزئیات شرکت‌کننده با People API مراجعه کنید.

جزئیات یک شرکت کننده را دریافت کنید

برای دریافت جزئیات در مورد یک شرکت‌کننده خاص، از متد get() در منبع participants با پارامتر مسیر name استفاده کنید. اگر نام شرکت‌کننده را نمی‌دانید، می‌توانید همه نام‌های شرکت‌کننده را با استفاده از متد list() فهرست کنید.

این روش داده‌های شرکت‌کننده را به عنوان نمونه‌ای از منبع participants برمی‌گرداند.

نمونه کد زیر نحوه بازیابی یک شرکت‌کننده خاص را نشان می‌دهد:

java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/getparticipant/AsyncGetParticipant.java
import com.google.api.core.ApiFuture;
import com.google.apps.meet.v2.ConferenceRecordsServiceClient;
import com.google.apps.meet.v2.GetParticipantRequest;
import com.google.apps.meet.v2.Participant;
import com.google.apps.meet.v2.ParticipantName;

public class AsyncGetParticipant {

  public static void main(String[] args) throws Exception {
    asyncGetParticipant();
  }

  public static void asyncGetParticipant() throws Exception {
    // This snippet has been automatically generated and should be regarded as a code template only.
    // It will require modifications to work:
    // - It may require correct/in-range values for request initialization.
    // - It may require specifying regional endpoints when creating the service client as shown in
    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    try (ConferenceRecordsServiceClient conferenceRecordsServiceClient =
        ConferenceRecordsServiceClient.create()) {
      GetParticipantRequest request =
          GetParticipantRequest.newBuilder()
              .setName(ParticipantName.of("[CONFERENCE_RECORD]", "[PARTICIPANT]").toString())
              .build();
      ApiFuture<Participant> future =
          conferenceRecordsServiceClient.getParticipantCallable().futureCall(request);
      // Do something.
      Participant response = future.get();
    }
  }
}
packages/google-apps-meet/samples/generated/v2/conference_records_service.get_participant.js
/**
 * This snippet has been automatically generated and should be regarded as a code template only.
 * It will require modifications to work.
 * It may require correct/in-range values for request initialization.
 * TODO(developer): Uncomment these variables before running the sample.
 */
/**
 *  Required. Resource name of the participant.
 */
// const name = 'abc123'

// Imports the Meet library
const {ConferenceRecordsServiceClient} = require('@google-apps/meet').v2;

// Instantiates a client
const meetClient = new ConferenceRecordsServiceClient();

async function callGetParticipant() {
  // Construct request
  const request = {
    name,
  };

  // Run request
  const response = await meetClient.getParticipant(request);
  console.log(response);
}

callGetParticipant();
packages/google-apps-meet/samples/generated_samples/meet_v2_generated_conference_records_service_get_participant_async.py
# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
#   client as shown in:
#   https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.apps import meet_v2


async def sample_get_participant():
    # Create a client
    client = meet_v2.ConferenceRecordsServiceAsyncClient()

    # Initialize request argument(s)
    request = meet_v2.GetParticipantRequest(
        name="name_value",
    )

    # Make the request
    response = await client.get_participant(request=request)

    # Handle the response
    print(response)

نام شرکت کننده را با نام شناسه شرکت کننده خاص در رکورد کنفرانس جایگزین کنید.

لیست همه شرکت کنندگان

برای فهرست کردن جزئیات مربوط به همه شرکت کنندگان در یک رکورد کنفرانس، از متد list() در منبع participants با پارامتر مسیر parent استفاده کنید. فرمت: conferenceRecords/{conferenceRecord} .

این روش فهرستی از شرکت کنندگان در کنفرانس را که توسط earliestStartTime به ترتیب نزولی مرتب شده اند، به عنوان نمونه ای از منابع participants برمی گرداند. برای تنظیم اندازه صفحه و فیلتر کردن نتایج پرس و جو، به سفارشی کردن صفحه بندی یا فیلتر کردن لیست شرکت کنندگان مراجعه کنید.

نمونه کد زیر نحوه فهرست کردن همه شرکت کنندگان در یک رکورد کنفرانس را نشان می دهد:

java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/listparticipants/AsyncListParticipants.java
import com.google.api.core.ApiFuture;
import com.google.apps.meet.v2.ConferenceRecordName;
import com.google.apps.meet.v2.ConferenceRecordsServiceClient;
import com.google.apps.meet.v2.ListParticipantsRequest;
import com.google.apps.meet.v2.Participant;

public class AsyncListParticipants {

  public static void main(String[] args) throws Exception {
    asyncListParticipants();
  }

  public static void asyncListParticipants() throws Exception {
    // This snippet has been automatically generated and should be regarded as a code template only.
    // It will require modifications to work:
    // - It may require correct/in-range values for request initialization.
    // - It may require specifying regional endpoints when creating the service client as shown in
    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    try (ConferenceRecordsServiceClient conferenceRecordsServiceClient =
        ConferenceRecordsServiceClient.create()) {
      ListParticipantsRequest request =
          ListParticipantsRequest.newBuilder()
              .setParent(ConferenceRecordName.of("[CONFERENCE_RECORD]").toString())
              .setPageSize(883849137)
              .setPageToken("pageToken873572522")
              .setFilter("filter-1274492040")
              .build();
      ApiFuture<Participant> future =
          conferenceRecordsServiceClient.listParticipantsPagedCallable().futureCall(request);
      // Do something.
      for (Participant element : future.get().iterateAll()) {
        // doThingsWith(element);
      }
    }
  }
}
packages/google-apps-meet/samples/generated/v2/conference_records_service.list_participants.js
/**
 * This snippet has been automatically generated and should be regarded as a code template only.
 * It will require modifications to work.
 * It may require correct/in-range values for request initialization.
 * TODO(developer): Uncomment these variables before running the sample.
 */
/**
 *  Required. Format: `conferenceRecords/{conference_record}`
 */
// const parent = 'abc123'
/**
 *  Maximum number of participants to return. The service might return fewer
 *  than this value.
 *  If unspecified, at most 100 participants are returned.
 *  The maximum value is 250; values above 250 are coerced to 250.
 *  Maximum might change in the future.
 */
// const pageSize = 1234
/**
 *  Page token returned from previous List Call.
 */
// const pageToken = 'abc123'
/**
 *  Optional. User specified filtering condition in EBNF
 *  format (https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form).
 *  The following are the filterable fields:
 *  * `earliest_start_time`
 *  * `latest_end_time`
 *  For example, `latest_end_time IS NULL` returns active participants in
 *  the conference.
 */
// const filter = 'abc123'

// Imports the Meet library
const {ConferenceRecordsServiceClient} = require('@google-apps/meet').v2;

// Instantiates a client
const meetClient = new ConferenceRecordsServiceClient();

async function callListParticipants() {
  // Construct request
  const request = {
    parent,
  };

  // Run request
  const iterable = meetClient.listParticipantsAsync(request);
  for await (const response of iterable) {
      console.log(response);
  }
}

callListParticipants();
packages/google-apps-meet/samples/generated_samples/meet_v2_generated_conference_records_service_list_participants_async.py
# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
#   client as shown in:
#   https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.apps import meet_v2


async def sample_list_participants():
    # Create a client
    client = meet_v2.ConferenceRecordsServiceAsyncClient()

    # Initialize request argument(s)
    request = meet_v2.ListParticipantsRequest(
        parent="parent_value",
    )

    # Make the request
    page_result = client.list_participants(request=request)

    # Handle the response
    async for response in page_result:
        print(response)

مقدار والد را با نام رکورد کنفرانس جایگزین کنید.

صفحه بندی را سفارشی کنید یا لیست شرکت کنندگان را فیلتر کنید

برای سفارشی کردن صفحه بندی یا فیلتر کردن شرکت کنندگان، پارامترهای پرس و جو زیر را ارسال کنید:

  • pageSize : حداکثر تعداد شرکت کنندگانی که باید برگردند. ممکن است این سرویس کمتر از این مقدار را برگرداند. اگر نامشخص باشد، حداکثر 100 شرکت کننده برگردانده می شوند. حداکثر مقدار 250 است. مقادیر بیش از 250 به طور خودکار به 250 تغییر می کند.

  • pageToken : یک نشانه صفحه، دریافت شده از یک تماس فهرست قبلی. این نشانه را برای بازیابی صفحه بعدی ارائه دهید.

  • filter : اختیاری یک فیلتر پرس و جو برای بازیابی موارد خاص در نتایج منابع participants .

    می‌توانید از فیلدهای earliestStartTime یا latestEndTime برای فیلتر کردن کاربرانی استفاده کنید که قبل یا بعد از زمان مشخصی عضو شده‌اند. هر دو فیلد از قالب مهر زمانی در قالب RFC 3339 UTC "Zulu"، با وضوح نانوثانیه و حداکثر نه رقم کسری استفاده می‌کنند: {year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z . به عنوان مثال:

    • earliestStartTime < 2023-10-01T15:01:23Z
    • latestEndTime < 2023-10-01T15:01:23Z

    برای فهرست کردن همه شرکت‌کنندگان فعال در یک کنفرانس موجود، از latestEndTime IS NULL استفاده کنید.

جزئیات شرکت‌کننده را با People API بازیابی کنید

برای بازیابی جزئیات در مورد یک شرکت کننده، از متد get() در منبع people در People API استفاده کنید.

  1. شناسه شخص را از منبع participant با استفاده از جزء دنباله دار مسیر استخراج کنید. برای مثال، اگر مقدار منبع participant conferenceRecords/abc-123/participants/12345 باشد، شناسه برای People API 12345 است.

  2. شامل READ_SOURCE_TYPE_PROFILE ، READ_SOURCE_TYPE_CONTACT ، و READ_SOURCE_TYPE_OTHER_CONTACT ReadSourceType . این اطمینان حاصل می کند که هم کاربران داخلی یک سازمان Google Workspace و هم مخاطبین خارجی در پاسخ گنجانده شده اند.

نمونه کد زیر نحوه جستجوی نمایه‌های سازمان و مخاطبین یک شخص را نشان می‌دهد:

CURL
curl \
   'https://people.googleapis.com/v1/people/PERSON_ID?personFields=names%2CemailAddresses&sources=READ_SOURCE_TYPE_OTHER_CONTACT&sources=READ_SOURCE_TYPE_PROFILE&sources=READ_SOURCE_TYPE_CONTACT' \
   --header 'Authorization: Bearer ACCESS_TOKEN' \
   --header 'Accept: application/json' \
   --compressed

موارد زیر را جایگزین کنید:

  • PERSON_ID : شناسه شخصی که باید پیدا شود.
  • ACCESS_TOKEN : نشانه دسترسی که به چندین API دسترسی می دهد.

جلسات شرکت کننده

بخش‌های زیر نحوه دریافت اطلاعات درباره جلسات شرکت‌کننده یک شرکت‌کننده در رکورد کنفرانس را شرح می‌دهد.

جزئیات جلسه شرکت کننده را دریافت کنید

برای دریافت جزئیات در مورد یک جلسه شرکت کننده خاص، از متد get() در منبع participantSessions با پارامتر مسیر name استفاده کنید. اگر نام جلسه شرکت‌کننده را نمی‌دانید، می‌توانید تمام جلسات شرکت‌کننده یک شرکت‌کننده را با استفاده از متد list() فهرست کنید.

این روش نام شرکت کننده را به عنوان نمونه ای از منبع participantSessions برمی گرداند.

نمونه کد زیر نحوه بازیابی یک جلسه شرکت کننده خاص را نشان می دهد:

java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/getparticipantsession/AsyncGetParticipantSession.java
import com.google.api.core.ApiFuture;
import com.google.apps.meet.v2.ConferenceRecordsServiceClient;
import com.google.apps.meet.v2.GetParticipantSessionRequest;
import com.google.apps.meet.v2.ParticipantSession;
import com.google.apps.meet.v2.ParticipantSessionName;

public class AsyncGetParticipantSession {

  public static void main(String[] args) throws Exception {
    asyncGetParticipantSession();
  }

  public static void asyncGetParticipantSession() throws Exception {
    // This snippet has been automatically generated and should be regarded as a code template only.
    // It will require modifications to work:
    // - It may require correct/in-range values for request initialization.
    // - It may require specifying regional endpoints when creating the service client as shown in
    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    try (ConferenceRecordsServiceClient conferenceRecordsServiceClient =
        ConferenceRecordsServiceClient.create()) {
      GetParticipantSessionRequest request =
          GetParticipantSessionRequest.newBuilder()
              .setName(
                  ParticipantSessionName.of(
                          "[CONFERENCE_RECORD]", "[PARTICIPANT]", "[PARTICIPANT_SESSION]")
                      .toString())
              .build();
      ApiFuture<ParticipantSession> future =
          conferenceRecordsServiceClient.getParticipantSessionCallable().futureCall(request);
      // Do something.
      ParticipantSession response = future.get();
    }
  }
}
packages/google-apps-meet/samples/generated/v2/conference_records_service.get_participant_session.js
/**
 * This snippet has been automatically generated and should be regarded as a code template only.
 * It will require modifications to work.
 * It may require correct/in-range values for request initialization.
 * TODO(developer): Uncomment these variables before running the sample.
 */
/**
 *  Required. Resource name of the participant.
 */
// const name = 'abc123'

// Imports the Meet library
const {ConferenceRecordsServiceClient} = require('@google-apps/meet').v2;

// Instantiates a client
const meetClient = new ConferenceRecordsServiceClient();

async function callGetParticipantSession() {
  // Construct request
  const request = {
    name,
  };

  // Run request
  const response = await meetClient.getParticipantSession(request);
  console.log(response);
}

callGetParticipantSession();
packages/google-apps-meet/samples/generated_samples/meet_v2_generated_conference_records_service_get_participant_session_async.py
# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
#   client as shown in:
#   https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.apps import meet_v2


async def sample_get_participant_session():
    # Create a client
    client = meet_v2.ConferenceRecordsServiceAsyncClient()

    # Initialize request argument(s)
    request = meet_v2.GetParticipantSessionRequest(
        name="name_value",
    )

    # Make the request
    response = await client.get_participant_session(request=request)

    # Handle the response
    print(response)

نام شرکت کننده را با نام شناسه جلسه شرکت کننده خاص در جلسه شرکت کننده جایگزین کنید.

لیست تمام جلسات شرکت کننده

برای فهرست کردن جزئیات مربوط به تمام جلسات شرکت کننده یک شرکت کننده در یک رکورد کنفرانس، از متد list() در منبع participantSessions با پارامتر مسیر parent استفاده کنید. قالب: conferenceRecords/{conferenceRecord}/participants/{participant} .

این روش فهرستی از جلسات شرکت‌کننده را که توسط startTime به ترتیب نزولی مرتب شده‌اند، به عنوان نمونه‌ای از یک منبع participantSession برمی‌گرداند. برای تنظیم اندازه صفحه و فیلتر کردن نتایج پرس و جو، به سفارشی کردن صفحه بندی مراجعه کنید یا لیست جلسات شرکت کننده را فیلتر کنید .

نمونه کد زیر نحوه فهرست کردن تمام جلسات شرکت‌کننده را در یک رکورد کنفرانس نشان می‌دهد:

java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/listparticipantsessions/AsyncListParticipantSessions.java
import com.google.api.core.ApiFuture;
import com.google.apps.meet.v2.ConferenceRecordsServiceClient;
import com.google.apps.meet.v2.ListParticipantSessionsRequest;
import com.google.apps.meet.v2.ParticipantName;
import com.google.apps.meet.v2.ParticipantSession;

public class AsyncListParticipantSessions {

  public static void main(String[] args) throws Exception {
    asyncListParticipantSessions();
  }

  public static void asyncListParticipantSessions() throws Exception {
    // This snippet has been automatically generated and should be regarded as a code template only.
    // It will require modifications to work:
    // - It may require correct/in-range values for request initialization.
    // - It may require specifying regional endpoints when creating the service client as shown in
    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    try (ConferenceRecordsServiceClient conferenceRecordsServiceClient =
        ConferenceRecordsServiceClient.create()) {
      ListParticipantSessionsRequest request =
          ListParticipantSessionsRequest.newBuilder()
              .setParent(ParticipantName.of("[CONFERENCE_RECORD]", "[PARTICIPANT]").toString())
              .setPageSize(883849137)
              .setPageToken("pageToken873572522")
              .setFilter("filter-1274492040")
              .build();
      ApiFuture<ParticipantSession> future =
          conferenceRecordsServiceClient.listParticipantSessionsPagedCallable().futureCall(request);
      // Do something.
      for (ParticipantSession element : future.get().iterateAll()) {
        // doThingsWith(element);
      }
    }
  }
}
packages/google-apps-meet/samples/generated/v2/conference_records_service.list_participant_sessions.js
// Copyright 2025 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
// ** This file is automatically generated by gapic-generator-typescript. **
// ** https://github.com/googleapis/gapic-generator-typescript **
// ** All changes to this file may be overwritten. **



'use strict';

function main(parent) {
  /**
   * This snippet has been automatically generated and should be regarded as a code template only.
   * It will require modifications to work.
   * It may require correct/in-range values for request initialization.
   * TODO(developer): Uncomment these variables before running the sample.
   */
  /**
   *  Required. Format:
   *  `conferenceRecords/{conference_record}/participants/{participant}`
   */
  // const parent = 'abc123'
  /**
   *  Optional. Maximum number of participant sessions to return. The service
   *  might return fewer than this value. If unspecified, at most 100
   *  participants are returned. The maximum value is 250; values above 250 are
   *  coerced to 250. Maximum might change in the future.
   */
  // const pageSize = 1234
  /**
   *  Optional. Page token returned from previous List Call.
   */
  // const pageToken = 'abc123'
  /**
   *  Optional. User specified filtering condition in EBNF
   *  format (https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form).
   *  The following are the filterable fields:
   *  * `start_time`
   *  * `end_time`
   *  For example, `end_time IS NULL` returns active participant sessions in
   *  the conference record.
   */
  // const filter = 'abc123'

  // Imports the Meet library
  const {ConferenceRecordsServiceClient} = require('@google-apps/meet').v2;

  // Instantiates a client
  const meetClient = new ConferenceRecordsServiceClient();

  async function callListParticipantSessions() {
    // Construct request
    const request = {
      parent,
    };

    // Run request
    const iterable = meetClient.listParticipantSessionsAsync(request);
    for await (const response of iterable) {
        console.log(response);
    }
  }

  callListParticipantSessions();
}

process.on('unhandledRejection', err => {
  console.error(err.message);
  process.exitCode = 1;
});
main(...process.argv.slice(2));
packages/google-apps-meet/samples/generated_samples/meet_v2_generated_conference_records_service_list_participant_sessions_async.py
# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
#   client as shown in:
#   https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.apps import meet_v2


async def sample_list_participant_sessions():
    # Create a client
    client = meet_v2.ConferenceRecordsServiceAsyncClient()

    # Initialize request argument(s)
    request = meet_v2.ListParticipantSessionsRequest(
        parent="parent_value",
    )

    # Make the request
    page_result = client.list_participant_sessions(request=request)

    # Handle the response
    async for response in page_result:
        print(response)

مقدار والد را با نام جلسات شرکت کننده یک شرکت کننده در رکورد کنفرانس جایگزین کنید.

صفحه بندی را سفارشی کنید یا لیست جلسات شرکت کننده را فیلتر کنید

برای سفارشی کردن صفحه بندی یا فیلتر کردن جلسات شرکت کننده، پارامترهای پرس و جو اختیاری زیر را ارسال کنید:

  • pageSize : حداکثر تعداد جلسات شرکت کننده برای بازگشت. ممکن است این سرویس کمتر از این مقدار را برگرداند. اگر مشخص نشده باشد، حداکثر 100 جلسه شرکت کننده برگردانده می شوند. حداکثر مقدار 250 است. مقادیر بیش از 250 به طور خودکار به 250 تغییر می کند.

  • pageToken : یک نشانه صفحه، دریافت شده از یک تماس فهرست قبلی. این نشانه را برای بازیابی صفحه بعدی ارائه دهید.

  • filter : اختیاری یک فیلتر پرس و جو برای بازیابی موارد خاص در نتایج منابع participants .

    می‌توانید از فیلدهای startTime یا endTime برای فیلتر کردن کاربرانی استفاده کنید که قبل یا بعد از زمان مشخصی عضو شده‌اند. هر دو فیلد از قالب مهر زمانی در قالب RFC 3339 UTC "Zulu"، با وضوح نانوثانیه و حداکثر نه رقم کسری استفاده می‌کنند: {year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z . به عنوان مثال:

    • startTime < 2023-10-01T15:01:23Z
    • endTime < 2023-10-01T15:01:23Z

    برای فهرست کردن تمام جلسات شرکت‌کننده فعال در رکورد کنفرانس، endTime IS NULL استفاده کنید.

،

این راهنما نحوه دریافت جزئیات درباره شرکت‌کنندگانی که در کنفرانس گذشته شرکت کرده‌اند یا در یک کنفرانس فعال هستند، همراه با اطلاعات جلسه آنها با استفاده از Google Meet REST API توضیح می‌دهد.

شرکت‌کننده فردی است که به یک تماس ملحق شده است یا از حالت همراه استفاده می‌کند، به‌عنوان بیننده تماشا می‌کند، یا یک دستگاه اتاق متصل به تماس. برای هر فرد یک منبع participants وجود دارد.

جلسه شرکت‌کننده، شناسه جلسه منحصربه‌فردی است که برای هر جفت شرکت‌کننده-دستگاهی که به یک تماس می‌پیوندد ایجاد می‌شود. برای هر جلسه یک منبع participantSessions وجود دارد. اگر شرکت‌کننده چندین بار از یک جفت شرکت‌کننده-دستگاه به یک تماس بپیوندد، به هر یک از آنها شناسه‌های جلسه منحصربه‌فرد اختصاص داده می‌شود.

اگر مالک یا شرکت‌کننده فضای جلسه هستید، می‌توانید برای بازیابی سوابق شرکت‌کننده، متدهای get() و list() را هم در participants و هم در منابع participantSessions فراخوانی کنید.

احراز هویت و تأیید اعتبار با استفاده از اطلاعات کاربری به برنامه‌های Google Meet اجازه می‌دهد به داده‌های کاربر دسترسی داشته باشند و عملیات‌هایی را از طرف کاربر تأیید شده انجام دهند. احراز هویت با تفویض اختیار در سطح دامنه به شما امکان می‌دهد به حساب سرویس یک برنامه اجازه دهید بدون نیاز به رضایت هر کاربر به داده‌های کاربرانتان دسترسی داشته باشد.

شرکت کنندگان

بخش‌های زیر نحوه دریافت اطلاعات درباره شرکت‌کنندگان در یک رکورد کنفرانس را شرح می‌دهد.

participants اتحادیه‌های منابع را با فیلد user تامین می‌کنند. یک user می تواند تنها یکی از اشیاء زیر باشد:

  • یک signedinUser یکی است:

    • فردی که از رایانه شخصی، دستگاه تلفن همراه یا از طریق حالت Companion ملحق می شود.

    • یک حساب رباتی که توسط دستگاه های اتاق کنفرانس استفاده می شود.

  • یک anonymousUser یک کاربر ناشناس است که به یک حساب Google وارد نشده است.

  • phoneUser کاربری است که از تلفنی تماس می گیرد که هویت کاربر ناشناخته است زیرا با یک حساب Google وارد نشده است.

توجه داشته باشید که در حالی که هر سه شیء یک displayName برمی‌گردانند، signedinUser یک شناسه user منحصر به فرد را نیز برمی‌گرداند که با Admin SDK API و People API قابل همکاری است. قالب: users/{user} . برای اطلاعات بیشتر در مورد استفاده از شناسه user با People API، به بازیابی جزئیات شرکت‌کننده با People API مراجعه کنید.

جزئیات یک شرکت کننده را دریافت کنید

برای دریافت جزئیات در مورد یک شرکت‌کننده خاص، از متد get() در منبع participants با پارامتر مسیر name استفاده کنید. اگر نام شرکت‌کننده را نمی‌دانید، می‌توانید همه نام‌های شرکت‌کننده را با استفاده از متد list() فهرست کنید.

این روش داده‌های شرکت‌کننده را به عنوان نمونه‌ای از منبع participants برمی‌گرداند.

نمونه کد زیر نحوه بازیابی یک شرکت‌کننده خاص را نشان می‌دهد:

java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/getparticipant/AsyncGetParticipant.java
import com.google.api.core.ApiFuture;
import com.google.apps.meet.v2.ConferenceRecordsServiceClient;
import com.google.apps.meet.v2.GetParticipantRequest;
import com.google.apps.meet.v2.Participant;
import com.google.apps.meet.v2.ParticipantName;

public class AsyncGetParticipant {

  public static void main(String[] args) throws Exception {
    asyncGetParticipant();
  }

  public static void asyncGetParticipant() throws Exception {
    // This snippet has been automatically generated and should be regarded as a code template only.
    // It will require modifications to work:
    // - It may require correct/in-range values for request initialization.
    // - It may require specifying regional endpoints when creating the service client as shown in
    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    try (ConferenceRecordsServiceClient conferenceRecordsServiceClient =
        ConferenceRecordsServiceClient.create()) {
      GetParticipantRequest request =
          GetParticipantRequest.newBuilder()
              .setName(ParticipantName.of("[CONFERENCE_RECORD]", "[PARTICIPANT]").toString())
              .build();
      ApiFuture<Participant> future =
          conferenceRecordsServiceClient.getParticipantCallable().futureCall(request);
      // Do something.
      Participant response = future.get();
    }
  }
}
packages/google-apps-meet/samples/generated/v2/conference_records_service.get_participant.js
/**
 * This snippet has been automatically generated and should be regarded as a code template only.
 * It will require modifications to work.
 * It may require correct/in-range values for request initialization.
 * TODO(developer): Uncomment these variables before running the sample.
 */
/**
 *  Required. Resource name of the participant.
 */
// const name = 'abc123'

// Imports the Meet library
const {ConferenceRecordsServiceClient} = require('@google-apps/meet').v2;

// Instantiates a client
const meetClient = new ConferenceRecordsServiceClient();

async function callGetParticipant() {
  // Construct request
  const request = {
    name,
  };

  // Run request
  const response = await meetClient.getParticipant(request);
  console.log(response);
}

callGetParticipant();
packages/google-apps-meet/samples/generated_samples/meet_v2_generated_conference_records_service_get_participant_async.py
# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
#   client as shown in:
#   https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.apps import meet_v2


async def sample_get_participant():
    # Create a client
    client = meet_v2.ConferenceRecordsServiceAsyncClient()

    # Initialize request argument(s)
    request = meet_v2.GetParticipantRequest(
        name="name_value",
    )

    # Make the request
    response = await client.get_participant(request=request)

    # Handle the response
    print(response)

نام شرکت کننده را با نام شناسه شرکت کننده خاص در رکورد کنفرانس جایگزین کنید.

لیست همه شرکت کنندگان

برای فهرست کردن جزئیات مربوط به همه شرکت کنندگان در یک رکورد کنفرانس، از متد list() در منبع participants با پارامتر مسیر parent استفاده کنید. فرمت: conferenceRecords/{conferenceRecord} .

این روش فهرستی از شرکت کنندگان در کنفرانس را که توسط earliestStartTime به ترتیب نزولی مرتب شده اند، به عنوان نمونه ای از منابع participants برمی گرداند. برای تنظیم اندازه صفحه و فیلتر کردن نتایج پرس و جو، به سفارشی کردن صفحه بندی یا فیلتر کردن لیست شرکت کنندگان مراجعه کنید.

نمونه کد زیر نحوه فهرست کردن همه شرکت کنندگان در یک رکورد کنفرانس را نشان می دهد:

java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/listparticipants/AsyncListParticipants.java
import com.google.api.core.ApiFuture;
import com.google.apps.meet.v2.ConferenceRecordName;
import com.google.apps.meet.v2.ConferenceRecordsServiceClient;
import com.google.apps.meet.v2.ListParticipantsRequest;
import com.google.apps.meet.v2.Participant;

public class AsyncListParticipants {

  public static void main(String[] args) throws Exception {
    asyncListParticipants();
  }

  public static void asyncListParticipants() throws Exception {
    // This snippet has been automatically generated and should be regarded as a code template only.
    // It will require modifications to work:
    // - It may require correct/in-range values for request initialization.
    // - It may require specifying regional endpoints when creating the service client as shown in
    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    try (ConferenceRecordsServiceClient conferenceRecordsServiceClient =
        ConferenceRecordsServiceClient.create()) {
      ListParticipantsRequest request =
          ListParticipantsRequest.newBuilder()
              .setParent(ConferenceRecordName.of("[CONFERENCE_RECORD]").toString())
              .setPageSize(883849137)
              .setPageToken("pageToken873572522")
              .setFilter("filter-1274492040")
              .build();
      ApiFuture<Participant> future =
          conferenceRecordsServiceClient.listParticipantsPagedCallable().futureCall(request);
      // Do something.
      for (Participant element : future.get().iterateAll()) {
        // doThingsWith(element);
      }
    }
  }
}
packages/google-apps-meet/samples/generated/v2/conference_records_service.list_participants.js
/**
 * This snippet has been automatically generated and should be regarded as a code template only.
 * It will require modifications to work.
 * It may require correct/in-range values for request initialization.
 * TODO(developer): Uncomment these variables before running the sample.
 */
/**
 *  Required. Format: `conferenceRecords/{conference_record}`
 */
// const parent = 'abc123'
/**
 *  Maximum number of participants to return. The service might return fewer
 *  than this value.
 *  If unspecified, at most 100 participants are returned.
 *  The maximum value is 250; values above 250 are coerced to 250.
 *  Maximum might change in the future.
 */
// const pageSize = 1234
/**
 *  Page token returned from previous List Call.
 */
// const pageToken = 'abc123'
/**
 *  Optional. User specified filtering condition in EBNF
 *  format (https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form).
 *  The following are the filterable fields:
 *  * `earliest_start_time`
 *  * `latest_end_time`
 *  For example, `latest_end_time IS NULL` returns active participants in
 *  the conference.
 */
// const filter = 'abc123'

// Imports the Meet library
const {ConferenceRecordsServiceClient} = require('@google-apps/meet').v2;

// Instantiates a client
const meetClient = new ConferenceRecordsServiceClient();

async function callListParticipants() {
  // Construct request
  const request = {
    parent,
  };

  // Run request
  const iterable = meetClient.listParticipantsAsync(request);
  for await (const response of iterable) {
      console.log(response);
  }
}

callListParticipants();
packages/google-apps-meet/samples/generated_samples/meet_v2_generated_conference_records_service_list_participants_async.py
# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
#   client as shown in:
#   https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.apps import meet_v2


async def sample_list_participants():
    # Create a client
    client = meet_v2.ConferenceRecordsServiceAsyncClient()

    # Initialize request argument(s)
    request = meet_v2.ListParticipantsRequest(
        parent="parent_value",
    )

    # Make the request
    page_result = client.list_participants(request=request)

    # Handle the response
    async for response in page_result:
        print(response)

مقدار والد را با نام رکورد کنفرانس جایگزین کنید.

صفحه بندی را سفارشی کنید یا لیست شرکت کنندگان را فیلتر کنید

برای سفارشی کردن صفحه بندی یا فیلتر کردن شرکت کنندگان، پارامترهای پرس و جو زیر را ارسال کنید:

  • pageSize : حداکثر تعداد شرکت کنندگانی که باید برگردند. ممکن است این سرویس کمتر از این مقدار را برگرداند. اگر نامشخص باشد، حداکثر 100 شرکت کننده برگردانده می شوند. حداکثر مقدار 250 است. مقادیر بیش از 250 به طور خودکار به 250 تغییر می کند.

  • pageToken : یک نشانه صفحه، دریافت شده از یک تماس فهرست قبلی. این نشانه را برای بازیابی صفحه بعدی ارائه دهید.

  • filter : اختیاری یک فیلتر پرس و جو برای بازیابی موارد خاص در نتایج منابع participants .

    می‌توانید از فیلدهای earliestStartTime یا latestEndTime برای فیلتر کردن کاربرانی استفاده کنید که قبل یا بعد از زمان مشخصی عضو شده‌اند. هر دو فیلد از قالب مهر زمانی در قالب RFC 3339 UTC "Zulu"، با وضوح نانوثانیه و حداکثر نه رقم کسری استفاده می‌کنند: {year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z . به عنوان مثال:

    • earliestStartTime < 2023-10-01T15:01:23Z
    • latestEndTime < 2023-10-01T15:01:23Z

    برای فهرست کردن همه شرکت‌کنندگان فعال در یک کنفرانس موجود، از latestEndTime IS NULL استفاده کنید.

جزئیات شرکت‌کننده را با People API بازیابی کنید

برای بازیابی جزئیات در مورد یک شرکت کننده، از متد get() در منبع people در People API استفاده کنید.

  1. شناسه شخص را از منبع participant با استفاده از جزء دنباله دار مسیر استخراج کنید. برای مثال، اگر مقدار منبع participant conferenceRecords/abc-123/participants/12345 باشد، شناسه برای People API 12345 است.

  2. شامل READ_SOURCE_TYPE_PROFILE ، READ_SOURCE_TYPE_CONTACT ، و READ_SOURCE_TYPE_OTHER_CONTACT ReadSourceType . این اطمینان حاصل می کند که هم کاربران داخلی یک سازمان Google Workspace و هم مخاطبین خارجی در پاسخ گنجانده شده اند.

نمونه کد زیر نحوه جستجوی نمایه‌های سازمان و مخاطبین یک شخص را نشان می‌دهد:

CURL
curl \
   'https://people.googleapis.com/v1/people/PERSON_ID?personFields=names%2CemailAddresses&sources=READ_SOURCE_TYPE_OTHER_CONTACT&sources=READ_SOURCE_TYPE_PROFILE&sources=READ_SOURCE_TYPE_CONTACT' \
   --header 'Authorization: Bearer ACCESS_TOKEN' \
   --header 'Accept: application/json' \
   --compressed

موارد زیر را جایگزین کنید:

  • PERSON_ID : شناسه شخصی که باید پیدا شود.
  • ACCESS_TOKEN : نشانه دسترسی که به چندین API دسترسی می دهد.

جلسات شرکت کننده

بخش‌های زیر نحوه دریافت اطلاعات درباره جلسات شرکت‌کننده یک شرکت‌کننده در رکورد کنفرانس را شرح می‌دهد.

جزئیات جلسه شرکت کننده را دریافت کنید

برای دریافت جزئیات در مورد یک جلسه شرکت کننده خاص، از متد get() در منبع participantSessions با پارامتر مسیر name استفاده کنید. اگر نام جلسه شرکت‌کننده را نمی‌دانید، می‌توانید تمام جلسات شرکت‌کننده یک شرکت‌کننده را با استفاده از متد list() فهرست کنید.

این روش نام شرکت کننده را به عنوان نمونه ای از منبع participantSessions برمی گرداند.

نمونه کد زیر نحوه بازیابی یک جلسه شرکت کننده خاص را نشان می دهد:

java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/getparticipantsession/AsyncGetParticipantSession.java
import com.google.api.core.ApiFuture;
import com.google.apps.meet.v2.ConferenceRecordsServiceClient;
import com.google.apps.meet.v2.GetParticipantSessionRequest;
import com.google.apps.meet.v2.ParticipantSession;
import com.google.apps.meet.v2.ParticipantSessionName;

public class AsyncGetParticipantSession {

  public static void main(String[] args) throws Exception {
    asyncGetParticipantSession();
  }

  public static void asyncGetParticipantSession() throws Exception {
    // This snippet has been automatically generated and should be regarded as a code template only.
    // It will require modifications to work:
    // - It may require correct/in-range values for request initialization.
    // - It may require specifying regional endpoints when creating the service client as shown in
    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    try (ConferenceRecordsServiceClient conferenceRecordsServiceClient =
        ConferenceRecordsServiceClient.create()) {
      GetParticipantSessionRequest request =
          GetParticipantSessionRequest.newBuilder()
              .setName(
                  ParticipantSessionName.of(
                          "[CONFERENCE_RECORD]", "[PARTICIPANT]", "[PARTICIPANT_SESSION]")
                      .toString())
              .build();
      ApiFuture<ParticipantSession> future =
          conferenceRecordsServiceClient.getParticipantSessionCallable().futureCall(request);
      // Do something.
      ParticipantSession response = future.get();
    }
  }
}
packages/google-apps-meet/samples/generated/v2/conference_records_service.get_participant_session.js
/**
 * This snippet has been automatically generated and should be regarded as a code template only.
 * It will require modifications to work.
 * It may require correct/in-range values for request initialization.
 * TODO(developer): Uncomment these variables before running the sample.
 */
/**
 *  Required. Resource name of the participant.
 */
// const name = 'abc123'

// Imports the Meet library
const {ConferenceRecordsServiceClient} = require('@google-apps/meet').v2;

// Instantiates a client
const meetClient = new ConferenceRecordsServiceClient();

async function callGetParticipantSession() {
  // Construct request
  const request = {
    name,
  };

  // Run request
  const response = await meetClient.getParticipantSession(request);
  console.log(response);
}

callGetParticipantSession();
packages/google-apps-meet/samples/generated_samples/meet_v2_generated_conference_records_service_get_participant_session_async.py
# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
#   client as shown in:
#   https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.apps import meet_v2


async def sample_get_participant_session():
    # Create a client
    client = meet_v2.ConferenceRecordsServiceAsyncClient()

    # Initialize request argument(s)
    request = meet_v2.GetParticipantSessionRequest(
        name="name_value",
    )

    # Make the request
    response = await client.get_participant_session(request=request)

    # Handle the response
    print(response)

نام شرکت کننده را با نام شناسه جلسه شرکت کننده خاص در جلسه شرکت کننده جایگزین کنید.

لیست تمام جلسات شرکت کننده

برای فهرست کردن جزئیات مربوط به تمام جلسات شرکت کننده یک شرکت کننده در یک رکورد کنفرانس، از متد list() در منبع participantSessions با پارامتر مسیر parent استفاده کنید. قالب: conferenceRecords/{conferenceRecord}/participants/{participant} .

این روش فهرستی از جلسات شرکت‌کننده را که توسط startTime به ترتیب نزولی مرتب شده‌اند، به عنوان نمونه‌ای از یک منبع participantSession برمی‌گرداند. برای تنظیم اندازه صفحه و فیلتر کردن نتایج پرس و جو، به سفارشی کردن صفحه بندی مراجعه کنید یا لیست جلسات شرکت کننده را فیلتر کنید .

نمونه کد زیر نحوه فهرست کردن تمام جلسات شرکت‌کننده را در یک رکورد کنفرانس نشان می‌دهد:

java-meet/samples/snippets/generated/com/google/apps/meet/v2/conferencerecordsservice/listparticipantsessions/AsyncListParticipantSessions.java
import com.google.api.core.ApiFuture;
import com.google.apps.meet.v2.ConferenceRecordsServiceClient;
import com.google.apps.meet.v2.ListParticipantSessionsRequest;
import com.google.apps.meet.v2.ParticipantName;
import com.google.apps.meet.v2.ParticipantSession;

public class AsyncListParticipantSessions {

  public static void main(String[] args) throws Exception {
    asyncListParticipantSessions();
  }

  public static void asyncListParticipantSessions() throws Exception {
    // This snippet has been automatically generated and should be regarded as a code template only.
    // It will require modifications to work:
    // - It may require correct/in-range values for request initialization.
    // - It may require specifying regional endpoints when creating the service client as shown in
    // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    try (ConferenceRecordsServiceClient conferenceRecordsServiceClient =
        ConferenceRecordsServiceClient.create()) {
      ListParticipantSessionsRequest request =
          ListParticipantSessionsRequest.newBuilder()
              .setParent(ParticipantName.of("[CONFERENCE_RECORD]", "[PARTICIPANT]").toString())
              .setPageSize(883849137)
              .setPageToken("pageToken873572522")
              .setFilter("filter-1274492040")
              .build();
      ApiFuture<ParticipantSession> future =
          conferenceRecordsServiceClient.listParticipantSessionsPagedCallable().futureCall(request);
      // Do something.
      for (ParticipantSession element : future.get().iterateAll()) {
        // doThingsWith(element);
      }
    }
  }
}
packages/google-apps-meet/samples/generated/v2/conference_records_service.list_participant_sessions.js
// Copyright 2025 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//     https://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
// ** This file is automatically generated by gapic-generator-typescript. **
// ** https://github.com/googleapis/gapic-generator-typescript **
// ** All changes to this file may be overwritten. **



'use strict';

function main(parent) {
  /**
   * This snippet has been automatically generated and should be regarded as a code template only.
   * It will require modifications to work.
   * It may require correct/in-range values for request initialization.
   * TODO(developer): Uncomment these variables before running the sample.
   */
  /**
   *  Required. Format:
   *  `conferenceRecords/{conference_record}/participants/{participant}`
   */
  // const parent = 'abc123'
  /**
   *  Optional. Maximum number of participant sessions to return. The service
   *  might return fewer than this value. If unspecified, at most 100
   *  participants are returned. The maximum value is 250; values above 250 are
   *  coerced to 250. Maximum might change in the future.
   */
  // const pageSize = 1234
  /**
   *  Optional. Page token returned from previous List Call.
   */
  // const pageToken = 'abc123'
  /**
   *  Optional. User specified filtering condition in EBNF
   *  format (https://en.wikipedia.org/wiki/Extended_Backus%E2%80%93Naur_form).
   *  The following are the filterable fields:
   *  * `start_time`
   *  * `end_time`
   *  For example, `end_time IS NULL` returns active participant sessions in
   *  the conference record.
   */
  // const filter = 'abc123'

  // Imports the Meet library
  const {ConferenceRecordsServiceClient} = require('@google-apps/meet').v2;

  // Instantiates a client
  const meetClient = new ConferenceRecordsServiceClient();

  async function callListParticipantSessions() {
    // Construct request
    const request = {
      parent,
    };

    // Run request
    const iterable = meetClient.listParticipantSessionsAsync(request);
    for await (const response of iterable) {
        console.log(response);
    }
  }

  callListParticipantSessions();
}

process.on('unhandledRejection', err => {
  console.error(err.message);
  process.exitCode = 1;
});
main(...process.argv.slice(2));
packages/google-apps-meet/samples/generated_samples/meet_v2_generated_conference_records_service_list_participant_sessions_async.py
# This snippet has been automatically generated and should be regarded as a
# code template only.
# It will require modifications to work:
# - It may require correct/in-range values for request initialization.
# - It may require specifying regional endpoints when creating the service
#   client as shown in:
#   https://googleapis.dev/python/google-api-core/latest/client_options.html
from google.apps import meet_v2


async def sample_list_participant_sessions():
    # Create a client
    client = meet_v2.ConferenceRecordsServiceAsyncClient()

    # Initialize request argument(s)
    request = meet_v2.ListParticipantSessionsRequest(
        parent="parent_value",
    )

    # Make the request
    page_result = client.list_participant_sessions(request=request)

    # Handle the response
    async for response in page_result:
        print(response)

مقدار والد را با نام جلسات شرکت کننده یک شرکت کننده در رکورد کنفرانس جایگزین کنید.

صفحه بندی را سفارشی کنید یا لیست جلسات شرکت کننده را فیلتر کنید

برای سفارشی کردن صفحه بندی یا فیلتر کردن جلسات شرکت کننده، پارامترهای پرس و جو اختیاری زیر را ارسال کنید:

  • pageSize : حداکثر تعداد جلسات شرکت کننده برای بازگشت. ممکن است این سرویس کمتر از این مقدار را برگرداند. اگر مشخص نشده باشد، حداکثر 100 جلسه شرکت کننده برگردانده می شوند. حداکثر مقدار 250 است. مقادیر بیش از 250 به طور خودکار به 250 تغییر می کند.

  • pageToken : یک نشانه صفحه، دریافت شده از یک تماس فهرست قبلی. این نشانه را برای بازیابی صفحه بعدی ارائه دهید.

  • filter : اختیاری یک فیلتر پرس و جو برای بازیابی موارد خاص در نتایج منابع participants .

    می‌توانید از فیلدهای startTime یا endTime برای فیلتر کردن کاربرانی استفاده کنید که قبل یا بعد از زمان مشخصی عضو شده‌اند. هر دو فیلد از قالب مهر زمانی در قالب RFC 3339 UTC "Zulu"، با وضوح نانوثانیه و حداکثر نه رقم کسری استفاده می‌کنند: {year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z . به عنوان مثال:

    • startTime < 2023-10-01T15:01:23Z
    • endTime < 2023-10-01T15:01:23Z

    برای فهرست کردن تمام جلسات شرکت‌کننده فعال در رکورد کنفرانس، endTime IS NULL استفاده کنید.