public class YouTubeClient extends Object
Constructor and Description |
---|
YouTubeClient(com.google.api.client.auth.oauth2.Credential credential) |
Modifier and Type | Method and Description |
---|---|
boolean |
delete(String videoId) |
List<com.google.api.services.youtube.model.Channel> |
getChannels() |
protected OAuth2ServiceProviderRegistry |
getOAuth2ServiceProviderRegistry() |
com.google.api.services.youtube.model.VideoStatistics |
getStatistics(String videoId) |
List<com.google.api.services.youtube.model.Video> |
getVideos() |
List<com.google.api.services.youtube.model.PlaylistItem> |
getVideos(com.google.api.services.youtube.model.Channel channel) |
com.google.api.services.youtube.YouTube |
getYouTube() |
boolean |
isAuthorized() |
void |
setPrivacyStatus(String videoId,
String privacyStatus) |
com.google.api.services.youtube.model.Video |
upload(com.google.api.services.youtube.model.Video video,
InputStream stream,
String type,
long length,
com.google.api.client.googleapis.media.MediaHttpUploaderProgressListener uploadListener) |
public YouTubeClient(com.google.api.client.auth.oauth2.Credential credential)
protected OAuth2ServiceProviderRegistry getOAuth2ServiceProviderRegistry()
public boolean isAuthorized()
public com.google.api.services.youtube.YouTube getYouTube() throws IOException
IOException
public List<com.google.api.services.youtube.model.Video> getVideos() throws IOException
IOException
public List<com.google.api.services.youtube.model.Channel> getChannels() throws IOException
IOException
public List<com.google.api.services.youtube.model.PlaylistItem> getVideos(com.google.api.services.youtube.model.Channel channel) throws IOException
IOException
public com.google.api.services.youtube.model.Video upload(com.google.api.services.youtube.model.Video video, InputStream stream, String type, long length, com.google.api.client.googleapis.media.MediaHttpUploaderProgressListener uploadListener) throws IOException
IOException
public void setPrivacyStatus(String videoId, String privacyStatus) throws IOException
IOException
public boolean delete(String videoId) throws IOException
IOException
public com.google.api.services.youtube.model.VideoStatistics getStatistics(String videoId) throws IOException
IOException
Copyright © 2016 Nuxeo SA. All rights reserved.