
target.apidocs.com.google.api.services.youtube.YouTube.Activities.html Maven / Gradle / Ivy
YouTube.Activities (YouTube Data API v3-rev20200402-1.30.9)
com.google.api.services.youtube
Class YouTube.Activities
- java.lang.Object
-
- com.google.api.services.youtube.YouTube.Activities
-
-
Nested Class Summary
Nested Classes
Modifier and Type
Class and Description
class
YouTube.Activities.Insert
class
YouTube.Activities.List
-
Constructor Summary
Constructors
Constructor and Description
Activities()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
YouTube.Activities.Insert
insert(String part,
Activity content)
Posts a bulletin for a specific channel.
YouTube.Activities.List
list(String part)
Returns a list of channel activity events that match the request criteria.
-
-
Method Detail
-
insert
public YouTube.Activities.Insert insert(String part,
Activity content)
throws IOException
Posts a bulletin for a specific channel. (The user submitting the request must be authorized to
act on the channel's behalf.)
Note: Even though an activity resource can contain information about actions like a user rating a
video or marking a video as a favorite, you need to use other API methods to generate those
activity resources. For example, you would use the API's videos.rate() method to rate a video and
the playlistItems.insert() method to mark a video as a favorite.
Create a request for the method "activities.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 Activity
- Returns:
- the request
- Throws:
IOException
-
list
public YouTube.Activities.List list(String part)
throws IOException
Returns a list of channel activity events that match the request criteria. For example, you can
retrieve events associated with a particular channel, events associated with the user's
subscriptions and Google+ friends, or the YouTube home page feed, which is customized for each
user.
Create a request for the method "activities.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 activity 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 an
activity resource, the snippet property contains other properties that identify the type
of activity, a display title for the activity, and so forth. 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