insert method

Future<LiveBroadcastItem> insert({
  1. required Map<String, dynamic> body,
  2. String part = 'snippet,status,contentDetails',
  3. List<String> partList = const [],
  4. String? onBehalfOfContentOwner,
  5. String? onBehalfOfContentOwnerChannel,
})

Creates a broadcast.

Implementation

Future<LiveBroadcastItem> insert(
    {required Map<String, dynamic> body,
    String part = 'snippet,status,contentDetails',
    List<String> partList = const [],
    String? onBehalfOfContentOwner,
    String? onBehalfOfContentOwnerChannel}) async {
  return await _rest.insert(
      _authHeader, accept, contentType, buildParts(partList, part), body,
      onBehalfOfContentOwner: onBehalfOfContentOwner,
      onBehalfOfContentOwnerChannel: onBehalfOfContentOwnerChannel);
}