goLiveWithHttpInfo method

Future<Response> goLiveWithHttpInfo(
  1. String type,
  2. String id,
  3. GoLiveRequest goLiveRequest
)

Set call as live

Sends events: - call.live_started Required permissions: - UpdateCall

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<Response> goLiveWithHttpInfo(
  String type,
  String id,
  GoLiveRequest goLiveRequest,
) async {
  // ignore: prefer_const_declarations
  final path = r'/video/call/{type}/{id}/go_live'
      .replaceAll('{type}', type)
      .replaceAll('{id}', id);

  // ignore: prefer_final_locals
  Object? postBody = goLiveRequest;

  final queryParams = <QueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

  const contentTypes = <String>['application/json'];

  return apiClient.invokeAPI(
    path,
    'POST',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
  );
}