Videos class

Returns a list of VideoItems that match the API request parameters.

Constructors

Videos(Dio dio)

Properties

accept String
finalinherited
contentType String
finalinherited
dio Dio
final
hashCode int
The hash code for this object.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

buildParts(List<String> partList, String part) String
inherited
delete({required String id, String? onBehalfOfContentOwner}) Future<void>
Deletes a YouTube video.
getRating({required String id, String? onBehalfOfContentOwner}) Future<VideoGetRatingResponse>
Retrieves the ratings that the authorized user gave to a list of specified videos.
insert({required Map<String, dynamic> body, required File videoFile, String part = 'snippet,status,contentDetails', List<String> partList = const [], bool? notifySubscribers, String? onBehalfOfContentOwner, String? onBehalfOfContentOwnerChannel}) Future<VideoItem>
Uploads a video to YouTube and optionally sets the video's metadata.
list({String part = 'snippet,status,contentDetails', List<String> partList = const [], String? chart, String? id, String? myRating, bool? hl, int? maxHeight, int? maxResults, int? maxWidth, String? onBehalfOfContentOwner, String? pageToken, String? regionCode, String? videoCategoryId}) Future<VideoListResponse>
Uploads a VideoItem to YouTube and optionally sets the video's metadata.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
rate({required String id, required String rating}) Future<void>
Add a like or dislike rating to a VideoItem or remove a rating from a VideoItem.
reportAbuse({required ReportAbuse body, String? onBehalfOfContentOwner}) Future<void>
Report a video for containing abusive content.
toString() String
A string representation of this object.
inherited
update({required Map<String, dynamic> body, String part = 'snippet,status,contentDetails', List<String> partList = const []}) Future<VideoItem>
Updates a VideoItem's metadata.

Operators

operator ==(Object other) bool
The equality operator.
inherited