yt4droid
クラス YoutubeImpl

java.lang.Object
  上位を拡張 yt4droid.YoutubeBaseImpl
      上位を拡張 yt4droid.YoutubeImpl
すべての実装されたインタフェース:
CommentMethods, ContactMethods, EntryMethods, FeedsMethods, RatingMethods, UserProfileMethods, Auth, Youtube, YoutubeBase

public class YoutubeImpl
extends YoutubeBaseImpl
implements Youtube


メソッドの概要
 UpdateResult addContact(ContactUserParameter contactParam)
          To add a contact, send an API request that identifies the user who is adding the contact as well as the contact being added.
 ResponseList<Comments> createCommentsList(java.lang.String videoId, Paging paging)
          You will send API requests to retrieve or append to the list of comments for the video.
 ResponseList<Contact> createContactList(java.lang.String userName, Paging paging)
          To request another user's contact list, send a GET request to the following URL.
 ResponseList<Feeds> createFeedsWithQuery(QueryBuilder query, Paging paging)
          To request the video list with query.
 ResponseList<Contact> createMyContactList(Paging paging)
          To request the currently logged-in user's contact list, send a GET request to the following URL.
 ResponseList<Feeds> createMyUploadList(Paging paging)
          To request the currently logged-in user's video list.
 UserProfile createUserProfile(java.lang.String userId)
          A user profile contains information about a user, such as the user's hobbies, occupation, or favorite books, music and movies.
 ResponseList<Feeds> createUserUploadList(java.lang.String userName, Paging paging)
          To request the user's video list.
 UpdateResult deleteVideo(java.lang.String videoId)
          To delete a video, send a DELETE request to the edit URL.
 UpdateResult updateComments(java.lang.String videoId, CommentParameter comment)
          To add a comment to a video, send a POST request to the URL identified in the tag that appears inside the tag.
 UpdateResult updateContact(ContactUserParameter contactParam)
          To update a contact, send a PUT request to the edit url for that contact.
 UpdateResult updateRatings(java.lang.String videoId, RatingsParameter rating)
          The YouTube API allows users to rate videos, and it also returns rating information in any feed entry that contains information about a video.
 UpdateResult updateVideo(java.lang.String videoId, VideoMetaData videoMetaData)
          To update a video, retrieve the video entry from the video owner's uploaded videos feed and send a PUT request to the entry's edit URL
 void uploadCanceled()
           
 UploadResult uploadVideo(java.io.File file, VideoMetaData videoMetaData)
          if not success retuns null
 
クラス yt4droid.YoutubeBaseImpl から継承されたメソッド
getAuthAccessToken, getAuthorization, getConfiguration, getFile, setAuthAccessToken
 
クラス java.lang.Object から継承されたメソッド
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
インタフェース yt4droid.auth.Auth から継承されたメソッド
getAuthAccessToken, setAuthAccessToken
 

メソッドの詳細

uploadVideo

public UploadResult uploadVideo(java.io.File file,
                                VideoMetaData videoMetaData)
                         throws YoutubeException
if not success retuns null

定義:
インタフェース EntryMethods 内の uploadVideo
パラメータ:
file - Video file.
videoMetaData - To upload a video, send a POST request containing the video and associated metadata
戻り値:
UploadResult
例外:
YoutubeException

createMyUploadList

public ResponseList<Feeds> createMyUploadList(Paging paging)
                                       throws YoutubeException
インタフェース FeedsMethods の記述:
To request the currently logged-in user's video list.

定義:
インタフェース FeedsMethods 内の createMyUploadList
パラメータ:
paging - Optional.paging of the response from Youtube.
戻り値:
ResponseList
例外:
YoutubeException
関連項目:
http://code.google.com/intl/en/apis/youtube/2.0/developers_guide_protocol_understanding_video_feeds.html

createUserUploadList

public ResponseList<Feeds> createUserUploadList(java.lang.String userName,
                                                Paging paging)
                                         throws YoutubeException
インタフェース FeedsMethods の記述:
To request the user's video list.

定義:
インタフェース FeedsMethods 内の createUserUploadList
paging - Optional.paging of the response from Youtube.
戻り値:
ResponseList
例外:
YoutubeException
関連項目:
http://code.google.com/intl/en/apis/youtube/2.0/developers_guide_protocol_understanding_video_feeds.html

createCommentsList

public ResponseList<Comments> createCommentsList(java.lang.String videoId,
                                                 Paging paging)
                                          throws YoutubeException
インタフェース CommentMethods の記述:
You will send API requests to retrieve or append to the list of comments for the video.

定義:
インタフェース CommentMethods 内の createCommentsList
パラメータ:
videoId - Optional.ID of the target video to get comment
paging - Optional.paging of the response from Youtube.
戻り値:
ResuponseList
例外:
YoutubeException
関連項目:
http://code.google.com/intl/en/apis/youtube/2.0/developers_guide_protocol_comments.html

createFeedsWithQuery

public ResponseList<Feeds> createFeedsWithQuery(QueryBuilder query,
                                                Paging paging)
                                         throws YoutubeException
インタフェース FeedsMethods の記述:
To request the video list with query.

定義:
インタフェース FeedsMethods 内の createFeedsWithQuery
paging - Optional.paging of the response from Youtube.
戻り値:
ResponseList
例外:
YoutubeException
関連項目:
http://code.google.com/intl/en/apis/youtube/2.0/developers_guide_protocol_understanding_video_feeds.html

updateRatings

public UpdateResult updateRatings(java.lang.String videoId,
                                  RatingsParameter rating)
                           throws YoutubeException
インタフェース RatingMethods の記述:
The YouTube API allows users to rate videos, and it also returns rating information in any feed entry that contains information about a video.

定義:
インタフェース RatingMethods 内の updateRatings
rating - Adding a numeric (1-5) video rating
戻り値:
UpdateResult
例外:
YoutubeException
関連項目:
http://code.google.com/intl/en/apis/youtube/2.0/developers_guide_protocol_ratings.html

updateComments

public UpdateResult updateComments(java.lang.String videoId,
                                   CommentParameter comment)
                            throws YoutubeException
インタフェース CommentMethods の記述:
To add a comment to a video, send a POST request to the URL identified in the tag that appears inside the tag. The actual comment that you are submitting appears as the value of the tag in the XML that constitutes the body of the POST request.

定義:
インタフェース CommentMethods 内の updateComments
パラメータ:
videoId - Optional.ID of the target video to get comment
comment - Optional.CommentParameter for the comment.
戻り値:
UpdateResult
例外:
YoutubeException
関連項目:
http://code.google.com/intl/en/apis/youtube/2.0/developers_guide_protocol_comments.html

deleteVideo

public UpdateResult deleteVideo(java.lang.String videoId)
                         throws YoutubeException
インタフェース EntryMethods の記述:
To delete a video, send a DELETE request to the edit URL.

定義:
インタフェース EntryMethods 内の deleteVideo
戻り値:
UpdateResult
例外:
YoutubeException

updateVideo

public UpdateResult updateVideo(java.lang.String videoId,
                                VideoMetaData videoMetaData)
                         throws YoutubeException
インタフェース EntryMethods の記述:
To update a video, retrieve the video entry from the video owner's uploaded videos feed and send a PUT request to the entry's edit URL

定義:
インタフェース EntryMethods 内の updateVideo
戻り値:
UpdateResult
例外:
YoutubeException

createUserProfile

public UserProfile createUserProfile(java.lang.String userId)
                              throws YoutubeException
インタフェース UserProfileMethods の記述:
A user profile contains information about a user, such as the user's hobbies, occupation, or favorite books, music and movies. Any personal information that appears in a user profile feed will have been entered by that user for publication on YouTube.

定義:
インタフェース UserProfileMethods 内の createUserProfile
戻り値:
UserProfile
例外:
YoutubeException
関連項目:
http://code.google.com/intl/en/apis/youtube/2.0/developers_guide_protocol_profiles.html

createMyContactList

public ResponseList<Contact> createMyContactList(Paging paging)
                                          throws YoutubeException
インタフェース ContactMethods の記述:
To request the currently logged-in user's contact list, send a GET request to the following URL.

定義:
インタフェース ContactMethods 内の createMyContactList
パラメータ:
paging - Optional.paging of the response from Youtube.
戻り値:
ResponseList
例外:
YoutubeException

createContactList

public ResponseList<Contact> createContactList(java.lang.String userName,
                                               Paging paging)
                                        throws YoutubeException
インタフェース ContactMethods の記述:
To request another user's contact list, send a GET request to the following URL. In the URL, you must replace the text username with the user's YouTube username.

定義:
インタフェース ContactMethods 内の createContactList
paging - Optional.paging of the response from Youtube.
戻り値:
ResponseList
例外:
YoutubeException

addContact

public UpdateResult addContact(ContactUserParameter contactParam)
                        throws YoutubeException
インタフェース ContactMethods の記述:
To add a contact, send an API request that identifies the user who is adding the contact as well as the contact being added.

定義:
インタフェース ContactMethods 内の addContact
戻り値:
UpdateResult
例外:
YoutubeException

updateContact

public UpdateResult updateContact(ContactUserParameter contactParam)
                           throws YoutubeException
インタフェース ContactMethods の記述:
To update a contact, send a PUT request to the edit url for that contact. The XML excerpt below shows how the edit URL appears in a contact entry:

定義:
インタフェース ContactMethods 内の updateContact
戻り値:
UpdateResult
例外:
YoutubeException

uploadCanceled

public void uploadCanceled()
定義:
インタフェース Youtube 内の uploadCanceled