|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.google.gdata.client.Service
com.google.gdata.client.GoogleService
com.google.gdata.client.media.MediaService
com.google.gdata.client.youtube.YouTubeService
public class YouTubeService
Java client service for the YouTube GData APIs.
| Nested Class Summary | |
|---|---|
static class |
YouTubeService.Versions
All released version of the YouTube API. |
| Nested classes/interfaces inherited from class com.google.gdata.client.GoogleService |
|---|
GoogleService.AccountDeletedException, GoogleService.AccountDisabledException, GoogleService.CaptchaRequiredException, GoogleService.InvalidCredentialsException, GoogleService.NotVerifiedException, GoogleService.ServiceUnavailableException, GoogleService.SessionExpiredException, GoogleService.TermsNotAgreedException |
| Nested classes/interfaces inherited from class com.google.gdata.client.Service |
|---|
Service.ClientInputProperties, Service.ClientOutputProperties, Service.ClientStreamProperties, Service.GDataRequest, Service.GDataRequestFactory |
| Field Summary | |
|---|---|
static Version |
DEFAULT_VERSION
Version 2 is currently the default version for clients. |
| Fields inherited from class com.google.gdata.client.media.MediaService |
|---|
DEFAULT_CHUNKED_BUFFER_SIZE, NO_CHUNKED_MEDIA_REQUEST |
| Fields inherited from class com.google.gdata.client.Service |
|---|
connectTimeout, extProfile, metadataRegistry, requestFactory |
| Constructor Summary | |
|---|---|
|
YouTubeService(java.lang.String applicationName)
Creates a new instance of the service with the given application name. |
|
YouTubeService(java.lang.String applicationName,
java.lang.String developerId)
Creates a new instance of the service with the given application name. |
protected |
YouTubeService(java.lang.String applicationName,
java.lang.String developerId,
java.net.URL authBaseUrl)
Creates a new instance of the service with the given application name and a custom user authentication URL. |
| Method Summary | ||
|---|---|---|
|
getFormUploadToken(java.net.URL url,
E entry)
Generate a form-upload token given the XML description of a new media entry. |
|
java.lang.String |
getServiceVersion()
Returns information about the service version. |
|
static Version |
getVersion()
Returns the current Version of the YouTube GData API. |
|
static boolean |
isCompatible(Version version)
Returns true if the current YouTube GData API version getVersion()
is compatible with the given version. |
|
| Methods inherited from class com.google.gdata.client.media.MediaService |
|---|
getDefaultAltRegistry, getMedia, getMedia, insert, insert, setChunkedMediaUpload, updateMedia, updateMedia |
| Methods inherited from class com.google.gdata.client.GoogleService |
|---|
addCookie, batch, createRequest, createRequest, delete, delete, getAuthToken, getAuthTokenFactory, getCookieManager, getCookies, getEntry, getEntry, getFeed, getFeed, getFeed, getFeed, handleRedirectException, handlesCookies, handleSessionExpiredException, makePostRequest, setAuthSubToken, setAuthSubToken, setAuthTokenFactory, setCookieManager, setHandlesCookies, setOAuthCredentials, setUserCredentials, setUserCredentials, setUserCredentials, setUserCredentials, setUserToken, tokenChanged, update |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final Version DEFAULT_VERSION
| Constructor Detail |
|---|
public YouTubeService(java.lang.String applicationName)
applicationName - should be a string identifying the application using
the API, usually in this format:
[company-id]-[app-name]-[app-version].
This is also used as the client id.
public YouTubeService(java.lang.String applicationName,
java.lang.String developerId)
applicationName - should be a string identifying the application using
the API, usually in this format:
[company-id]-[app-name]-[app-version].
This is also used as the client id.developerId - the developer id to send in every request made through
this client, can be null.
protected YouTubeService(java.lang.String applicationName,
java.lang.String developerId,
java.net.URL authBaseUrl)
applicationName - should be a string identifying the application using
the API, usually in this format:
[company-id]-[app-name]-[app-version].
This is also used as the client id.developerId - the developer id to send in every request made through
this client, can be null.authBaseUrl - the base URL pointing to the authentication server.| Method Detail |
|---|
public java.lang.String getServiceVersion()
Service
getServiceVersion in class Servicepublic static Version getVersion()
Version of the YouTube GData API.
public static boolean isCompatible(Version version)
getVersion()
is compatible with the given version.
version - version to check compatibility with.
public <E extends IEntry> FormUploadToken getFormUploadToken(java.net.URL url,
E entry)
throws ServiceException,
java.io.IOException
url - link with rel=YouTubeNamespace.GET_UPLOAD_TOKEN_REL on a user's
upload feedentry - XML metadata of a new media entry
ServiceException
java.io.IOException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||