Skip to content

Latest commit

 

History

History
309 lines (214 loc) · 11 KB

File metadata and controls

309 lines (214 loc) · 11 KB

cloudflare_dart.api.ActiveSessionApi

Load the API package

import 'package:cloudflare_dart/api.dart';

All URIs are relative to https://api.cloudflare.com/client/v4

Method HTTP request Description
createPoll POST /accounts/{account_id}/realtime/kit/{app_id}/meetings/{meeting_id}/active-session/poll Create a poll
getActiveSession GET /accounts/{account_id}/realtime/kit/{app_id}/meetings/{meeting_id}/active-session Fetch details of an active session
kickAllParticipants POST /accounts/{account_id}/realtime/kit/{app_id}/meetings/{meeting_id}/active-session/kick-all Kick all participants
kickPartcipants POST /accounts/{account_id}/realtime/kit/{app_id}/meetings/{meeting_id}/active-session/kick Kick participants from an active session
muteAllParticipants POST /accounts/{account_id}/realtime/kit/{app_id}/meetings/{meeting_id}/active-session/mute-all Mute all participants
muteParticipants POST /accounts/{account_id}/realtime/kit/{app_id}/meetings/{meeting_id}/active-session/mute Mute participants of an active session

createPoll

CreatePoll201Response createPoll(accountId, appId, meetingId, createPollRequest)

Create a poll

Creates a new poll in an active session for the given meeting ID.

Example

import 'package:cloudflare_dart/api.dart';

final api = CloudflareDart().getActiveSessionApi();
final String accountId = accountId_example; // String | 
final String appId = appId_example; // String | 
final String meetingId = meetingId_example; // String | ID of the meeting
final CreatePollRequest createPollRequest = ; // CreatePollRequest | Request body for creating a new poll

try {
    final response = api.createPoll(accountId, appId, meetingId, createPollRequest);
    print(response);
} catch on DioException (e) {
    print('Exception when calling ActiveSessionApi->createPoll: $e\n');
}

Parameters

Name Type Description Notes
accountId String
appId String
meetingId String ID of the meeting
createPollRequest CreatePollRequest Request body for creating a new poll [optional]

Return type

CreatePoll201Response

Authorization

api_token

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

getActiveSession

GetActiveSession200Response getActiveSession(accountId, appId, meetingId)

Fetch details of an active session

Returns details of an ongoing active session for the given meeting ID.

Example

import 'package:cloudflare_dart/api.dart';

final api = CloudflareDart().getActiveSessionApi();
final String accountId = accountId_example; // String | 
final String appId = appId_example; // String | 
final String meetingId = meetingId_example; // String | ID of the meeting

try {
    final response = api.getActiveSession(accountId, appId, meetingId);
    print(response);
} catch on DioException (e) {
    print('Exception when calling ActiveSessionApi->getActiveSession: $e\n');
}

Parameters

Name Type Description Notes
accountId String
appId String
meetingId String ID of the meeting

Return type

GetActiveSession200Response

Authorization

api_token

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

kickAllParticipants

KickAllParticipants200Response kickAllParticipants(accountId, appId, meetingId)

Kick all participants

Kicks all participants from an active session for the given meeting ID.

Example

import 'package:cloudflare_dart/api.dart';

final api = CloudflareDart().getActiveSessionApi();
final String accountId = accountId_example; // String | 
final String appId = appId_example; // String | 
final String meetingId = meetingId_example; // String | ID of the meeting

try {
    final response = api.kickAllParticipants(accountId, appId, meetingId);
    print(response);
} catch on DioException (e) {
    print('Exception when calling ActiveSessionApi->kickAllParticipants: $e\n');
}

Parameters

Name Type Description Notes
accountId String
appId String
meetingId String ID of the meeting

Return type

KickAllParticipants200Response

Authorization

api_token

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

kickPartcipants

KickPartcipants200Response kickPartcipants(accountId, appId, meetingId, kickPartcipantsRequest)

Kick participants from an active session

Kicks one or more participants from an active session using user ID or custom participant ID.

Example

import 'package:cloudflare_dart/api.dart';

final api = CloudflareDart().getActiveSessionApi();
final String accountId = accountId_example; // String | 
final String appId = appId_example; // String | 
final String meetingId = meetingId_example; // String | ID of the meeting
final KickPartcipantsRequest kickPartcipantsRequest = ; // KickPartcipantsRequest | Request body for kicking participants from an active session. Only one of `participant_id` or `custom_participant_id` is required.

try {
    final response = api.kickPartcipants(accountId, appId, meetingId, kickPartcipantsRequest);
    print(response);
} catch on DioException (e) {
    print('Exception when calling ActiveSessionApi->kickPartcipants: $e\n');
}

Parameters

Name Type Description Notes
accountId String
appId String
meetingId String ID of the meeting
kickPartcipantsRequest KickPartcipantsRequest Request body for kicking participants from an active session. Only one of participant_id or custom_participant_id is required. [optional]

Return type

KickPartcipants200Response

Authorization

api_token

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

muteAllParticipants

MuteAllParticipants200Response muteAllParticipants(accountId, appId, meetingId, muteAllParticipantsRequest)

Mute all participants

Mutes all participants of an active session for the given meeting ID.

Example

import 'package:cloudflare_dart/api.dart';

final api = CloudflareDart().getActiveSessionApi();
final String accountId = accountId_example; // String | 
final String appId = appId_example; // String | 
final String meetingId = meetingId_example; // String | ID of the meeting
final MuteAllParticipantsRequest muteAllParticipantsRequest = ; // MuteAllParticipantsRequest | Request body for muting all participants in an active session.

try {
    final response = api.muteAllParticipants(accountId, appId, meetingId, muteAllParticipantsRequest);
    print(response);
} catch on DioException (e) {
    print('Exception when calling ActiveSessionApi->muteAllParticipants: $e\n');
}

Parameters

Name Type Description Notes
accountId String
appId String
meetingId String ID of the meeting
muteAllParticipantsRequest MuteAllParticipantsRequest Request body for muting all participants in an active session. [optional]

Return type

MuteAllParticipants200Response

Authorization

api_token

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

muteParticipants

KickPartcipants200Response muteParticipants(accountId, appId, meetingId, kickPartcipantsRequest)

Mute participants of an active session

Mutes one or more participants from an active session using user ID or custom participant ID.

Example

import 'package:cloudflare_dart/api.dart';

final api = CloudflareDart().getActiveSessionApi();
final String accountId = accountId_example; // String | 
final String appId = appId_example; // String | 
final String meetingId = meetingId_example; // String | ID of the meeting
final KickPartcipantsRequest kickPartcipantsRequest = ; // KickPartcipantsRequest | Request body for kicking participants from an active session. Only one of `participant_id` or `custom_participant_id` is required.

try {
    final response = api.muteParticipants(accountId, appId, meetingId, kickPartcipantsRequest);
    print(response);
} catch on DioException (e) {
    print('Exception when calling ActiveSessionApi->muteParticipants: $e\n');
}

Parameters

Name Type Description Notes
accountId String
appId String
meetingId String ID of the meeting
kickPartcipantsRequest KickPartcipantsRequest Request body for kicking participants from an active session. Only one of participant_id or custom_participant_id is required. [optional]

Return type

KickPartcipants200Response

Authorization

api_token

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]