Package com.vk.api.sdk.actions
Class Videos
- java.lang.Object
-
- com.vk.api.sdk.client.AbstractAction
-
- com.vk.api.sdk.actions.Videos
-
public class Videos extends AbstractAction
List of Videos methods
-
-
Constructor Summary
Constructors Constructor Description Videos(VkApiClient client)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VideoAddQueryadd(UserActor actor, int videoId, int ownerId)Adds a video to a user or community page.VideoAddAlbumQueryaddAlbum(UserActor actor)Creates an empty album for videos.VideoAddToAlbumQueryaddToAlbum(UserActor actor, int ownerId, int videoId)VideoCreateCommentQuerycreateComment(UserActor actor, int videoId)Adds a new comment on a video.VideoDeleteQuerydelete(UserActor actor, int videoId)Deletes a video from a user or community page.VideoDeleteAlbumQuerydeleteAlbum(UserActor actor, int albumId)Deletes a video album.VideoDeleteCommentQuerydeleteComment(UserActor actor, int commentId)Deletes a comment on a video.VideoEditQueryedit(UserActor actor, int videoId)Edits information about a video on a user or community page.VideoEditAlbumQueryeditAlbum(UserActor actor, int albumId, java.lang.String title)Edits the title of a video album.VideoEditCommentQueryeditComment(UserActor actor, int commentId)Edits the text of a comment on a video.VideoGetQueryget(UserActor actor)Returns detailed information about videos.VideoGetAlbumByIdQuerygetAlbumById(UserActor actor, int albumId)Returns video album infoVideoGetAlbumsQuerygetAlbums(UserActor actor)Returns a list of video albums owned by a user or community.VideoGetAlbumsByVideoQuerygetAlbumsByVideo(UserActor actor, int ownerId, int videoId)VideoGetAlbumsByVideoQueryWithExtendedgetAlbumsByVideoExtended(UserActor actor, int ownerId, int videoId)VideoGetAlbumsQueryWithExtendedgetAlbumsExtended(UserActor actor)Returns a list of video albums owned by a user or community.VideoGetCommentsQuerygetComments(UserActor actor, int videoId)Returns a list of comments on a video.VideoGetCommentsQueryWithExtendedgetCommentsExtended(UserActor actor, int videoId)Returns a list of comments on a video.VideoRemoveFromAlbumQueryremoveFromAlbum(UserActor actor, int ownerId, int videoId)VideoReorderAlbumsQueryreorderAlbums(UserActor actor, int albumId)Reorders the album in the list of user video albums.VideoReorderVideosQueryreorderVideos(UserActor actor, int ownerId, int videoId)Reorders the video in the video album.VideoReportQueryreport(UserActor actor, int ownerId, int videoId)Reports (submits a complaint about) a video.VideoReportCommentQueryreportComment(UserActor actor, int ownerId, int commentId)Reports (submits a complaint about) a comment on a video.VideoRestoreQueryrestore(UserActor actor, int videoId)Restores a previously deleted video.VideoRestoreCommentQueryrestoreComment(UserActor actor, int commentId)Restores a previously deleted comment on a video.VideoSaveQuerysave(UserActor actor)Returns a server address (required for upload) and video data.VideoSearchQuerysearch(UserActor actor, java.lang.String q)Returns a list of videos under the set search criterion.VideoSearchQueryWithExtendedsearchExtended(UserActor actor, java.lang.String q)Returns a list of videos under the set search criterion.-
Methods inherited from class com.vk.api.sdk.client.AbstractAction
getClient
-
-
-
-
Constructor Detail
-
Videos
public Videos(VkApiClient client)
Constructor- Parameters:
client- vk api client
-
-
Method Detail
-
add
public VideoAddQuery add(UserActor actor, int videoId, int ownerId)
Adds a video to a user or community page.- Parameters:
actor- vk actorvideoId- Video ID.ownerId- ID of the user or community that owns the video. Use a negative value to designate a community ID.- Returns:
- query
-
addAlbum
public VideoAddAlbumQuery addAlbum(UserActor actor)
Creates an empty album for videos.- Parameters:
actor- vk actor- Returns:
- query
-
addToAlbum
public VideoAddToAlbumQuery addToAlbum(UserActor actor, int ownerId, int videoId)
- Parameters:
actor- vk actorownerId-videoId-- Returns:
- query
-
createComment
public VideoCreateCommentQuery createComment(UserActor actor, int videoId)
Adds a new comment on a video.- Parameters:
actor- vk actorvideoId- Video ID.- Returns:
- query
-
delete
public VideoDeleteQuery delete(UserActor actor, int videoId)
Deletes a video from a user or community page.- Parameters:
actor- vk actorvideoId- Video ID.- Returns:
- query
-
deleteAlbum
public VideoDeleteAlbumQuery deleteAlbum(UserActor actor, int albumId)
Deletes a video album.- Parameters:
actor- vk actoralbumId- Album ID.- Returns:
- query
-
deleteComment
public VideoDeleteCommentQuery deleteComment(UserActor actor, int commentId)
Deletes a comment on a video.- Parameters:
actor- vk actorcommentId- ID of the comment to be deleted.- Returns:
- query
-
edit
public VideoEditQuery edit(UserActor actor, int videoId)
Edits information about a video on a user or community page.- Parameters:
actor- vk actorvideoId- Video ID.- Returns:
- query
-
editAlbum
public VideoEditAlbumQuery editAlbum(UserActor actor, int albumId, java.lang.String title)
Edits the title of a video album.- Parameters:
actor- vk actoralbumId- Album ID.title- New album title.- Returns:
- query
-
editComment
public VideoEditCommentQuery editComment(UserActor actor, int commentId)
Edits the text of a comment on a video.- Parameters:
actor- vk actorcommentId- Comment ID.- Returns:
- query
-
get
public VideoGetQuery get(UserActor actor)
Returns detailed information about videos.- Parameters:
actor- vk actor- Returns:
- query
-
getAlbumById
public VideoGetAlbumByIdQuery getAlbumById(UserActor actor, int albumId)
Returns video album info- Parameters:
actor- vk actoralbumId- Album ID.- Returns:
- query
-
getAlbumsExtended
public VideoGetAlbumsQueryWithExtended getAlbumsExtended(UserActor actor)
Returns a list of video albums owned by a user or community.- Parameters:
actor- vk actor- Returns:
- query
-
getAlbums
public VideoGetAlbumsQuery getAlbums(UserActor actor)
Returns a list of video albums owned by a user or community.- Parameters:
actor- vk actor- Returns:
- query
-
getAlbumsByVideo
public VideoGetAlbumsByVideoQuery getAlbumsByVideo(UserActor actor, int ownerId, int videoId)
- Parameters:
actor- vk actorownerId-videoId-- Returns:
- query
-
getAlbumsByVideoExtended
public VideoGetAlbumsByVideoQueryWithExtended getAlbumsByVideoExtended(UserActor actor, int ownerId, int videoId)
- Parameters:
actor- vk actorownerId-videoId-- Returns:
- query
-
getComments
public VideoGetCommentsQuery getComments(UserActor actor, int videoId)
Returns a list of comments on a video.- Parameters:
actor- vk actorvideoId- Video ID.- Returns:
- query
-
getCommentsExtended
public VideoGetCommentsQueryWithExtended getCommentsExtended(UserActor actor, int videoId)
Returns a list of comments on a video.- Parameters:
actor- vk actorvideoId- Video ID.- Returns:
- query
-
removeFromAlbum
public VideoRemoveFromAlbumQuery removeFromAlbum(UserActor actor, int ownerId, int videoId)
- Parameters:
actor- vk actorownerId-videoId-- Returns:
- query
-
reorderAlbums
public VideoReorderAlbumsQuery reorderAlbums(UserActor actor, int albumId)
Reorders the album in the list of user video albums.- Parameters:
actor- vk actoralbumId- Album ID.- Returns:
- query
-
reorderVideos
public VideoReorderVideosQuery reorderVideos(UserActor actor, int ownerId, int videoId)
Reorders the video in the video album.- Parameters:
actor- vk actorownerId- ID of the user or community that owns the video.videoId- ID of the video.- Returns:
- query
-
report
public VideoReportQuery report(UserActor actor, int ownerId, int videoId)
Reports (submits a complaint about) a video.- Parameters:
actor- vk actorownerId- ID of the user or community that owns the video.videoId- Video ID.- Returns:
- query
-
reportComment
public VideoReportCommentQuery reportComment(UserActor actor, int ownerId, int commentId)
Reports (submits a complaint about) a comment on a video.- Parameters:
actor- vk actorownerId- ID of the user or community that owns the video.commentId- ID of the comment being reported.- Returns:
- query
-
restore
public VideoRestoreQuery restore(UserActor actor, int videoId)
Restores a previously deleted video.- Parameters:
actor- vk actorvideoId- Video ID.- Returns:
- query
-
restoreComment
public VideoRestoreCommentQuery restoreComment(UserActor actor, int commentId)
Restores a previously deleted comment on a video.- Parameters:
actor- vk actorcommentId- ID of the deleted comment.- Returns:
- query
-
save
public VideoSaveQuery save(UserActor actor)
Returns a server address (required for upload) and video data.- Parameters:
actor- vk actor- Returns:
- query
-
search
public VideoSearchQuery search(UserActor actor, java.lang.String q)
Returns a list of videos under the set search criterion.- Parameters:
actor- vk actorq- Search query string (e.g., 'The Beatles').- Returns:
- query
-
searchExtended
public VideoSearchQueryWithExtended searchExtended(UserActor actor, java.lang.String q)
Returns a list of videos under the set search criterion.- Parameters:
actor- vk actorq- Search query string (e.g., 'The Beatles').- Returns:
- query
-
-