Subscriptions class
A subscription resource contains information about a YouTube user subscription. A subscription notifies a user when new videos are added to a channel or when another user takes one of several actions on YouTube, such as uploading a video, rating a video, or commenting on a video.
Constructors
- Subscriptions(Dio dio)
Properties
- accept → String
-
finalinherited
- contentType → String
-
finalinherited
- dio → Dio
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
buildParts(
List< String> partList, String part) → String -
inherited
-
delete(
{required String id, String? onBehalfOfContentOwner, String? onBehalfOfContentOwnerChannel}) → Future< void> - Deletes a subscription.
-
insert(
{String part = 'contentDetails,id,snippet,subscriberSnippet', List< String> partList = const [], required Map<String, dynamic> body, String? onBehalfOfContentOwner, String? onBehalfOfContentOwnerChannel}) → Future<Subscription> - Adds a subscription for the authenticated user's channel.
-
list(
{String part = 'contentDetails,id,snippet,subscriberSnippet', List< String> partList = const [], String? channelId, String? id, bool? mine, bool? myRecentSubscribers, bool? mySubscribers, String? forChannelId, int? maxResults, String? onBehalfOfContentOwner, String? onBehalfOfContentOwnerChannel, String? order, String? pageToken}) → Future<SubscriptionListResponse> - Returns subscription resources that match the API request criteria.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited