public class YouTube.Subscriptions
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
class |
YouTube.Subscriptions.Delete |
class |
YouTube.Subscriptions.Insert |
class |
YouTube.Subscriptions.List |
| Constructor and Description |
|---|
YouTube.Subscriptions() |
| Modifier and Type | Method and Description |
|---|---|
YouTube.Subscriptions.Delete |
delete(java.lang.String id)
Deletes a subscription.
|
YouTube.Subscriptions.Insert |
insert(java.lang.String part,
Subscription content)
Adds a subscription for the authenticated user's channel.
|
YouTube.Subscriptions.List |
list(java.lang.String part)
Returns subscription resources that match the API request criteria.
|
public YouTube.Subscriptions.Delete delete(java.lang.String id) throws java.io.IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.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.java.io.IOExceptionpublic YouTube.Subscriptions.Insert insert(java.lang.String part, Subscription content) throws java.io.IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.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 Subscriptionjava.io.IOExceptionpublic YouTube.Subscriptions.List list(java.lang.String part) throws java.io.IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.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.java.io.IOException