
target.apidocs.com.google.api.services.youtube.YouTube.Subscriptions.html Maven / Gradle / Ivy
YouTube.Subscriptions (YouTube Data API v3-rev20200402-1.30.9)
com.google.api.services.youtube
Class YouTube.Subscriptions
- java.lang.Object
-
- com.google.api.services.youtube.YouTube.Subscriptions
-
-
Nested Class Summary
Nested Classes
Modifier and Type
Class and Description
class
YouTube.Subscriptions.Delete
class
YouTube.Subscriptions.Insert
class
YouTube.Subscriptions.List
-
Constructor Summary
Constructors
Constructor and Description
Subscriptions()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
YouTube.Subscriptions.Delete
delete(String id)
Deletes a subscription.
YouTube.Subscriptions.Insert
insert(String part,
Subscription content)
Adds a subscription for the authenticated user's channel.
YouTube.Subscriptions.List
list(String part)
Returns subscription resources that match the API request criteria.
-
-
Method Detail
-
delete
public YouTube.Subscriptions.Delete delete(String id)
throws IOException
Deletes a subscription.
Create a request for the method "subscriptions.delete".
This request holds the parameters needed by the youtube server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
id
- The id parameter specifies the YouTube subscription ID for the resource that is being deleted. In a
subscription resource, the id property specifies the YouTube subscription ID.
- Returns:
- the request
- Throws:
IOException
-
insert
public YouTube.Subscriptions.Insert insert(String part,
Subscription content)
throws IOException
Adds a subscription for the authenticated user's channel.
Create a request for the method "subscriptions.insert".
This request holds the parameters needed by the youtube server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
part
- The part parameter serves two purposes in this operation. It identifies the properties that the
write operation will set as well as the properties that the API response will include.
content
- the Subscription
- Returns:
- the request
- Throws:
IOException
-
list
public YouTube.Subscriptions.List list(String part)
throws IOException
Returns subscription resources that match the API request criteria.
Create a request for the method "subscriptions.list".
This request holds the parameters needed by the youtube server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
part
- The part parameter specifies a comma-separated list of one or more subscription resource properties
that the API response will include.
If the parameter identifies a property that contains
child properties, the child properties will be included in the response. For example, in a
subscription resource, the snippet property contains other properties, such as a display
title for the subscription. If you set part=snippet, the API response will also contain
all of those nested properties.
- Returns:
- the request
- Throws:
IOException
Copyright © 2011–2020 Google. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy