Class: Vk::API::Photos
- Inherits:
-
Schema::Namespace
- Object
- Schema::Namespace
- Vk::API::Photos
- Defined in:
- lib/vk/api/methods.rb,
lib/vk/api/objects.rb,
lib/vk/api/responses.rb,
lib/vk/api/photos/photo.rb,
lib/vk/api/photos/photo_tag.rb,
lib/vk/api/photos/photo_full.rb,
lib/vk/api/photos/methods/get.rb,
lib/vk/api/photos/photo_album.rb,
lib/vk/api/photos/photo_sizes.rb,
lib/vk/api/photos/methods/copy.rb,
lib/vk/api/photos/methods/edit.rb,
lib/vk/api/photos/methods/move.rb,
lib/vk/api/photos/methods/save.rb,
lib/vk/api/photos/photo_upload.rb,
lib/vk/api/photos/methods/delete.rb,
lib/vk/api/photos/methods/report.rb,
lib/vk/api/photos/methods/search.rb,
lib/vk/api/photos/comment_xtr_pid.rb,
lib/vk/api/photos/methods/get_all.rb,
lib/vk/api/photos/methods/put_tag.rb,
lib/vk/api/photos/methods/restore.rb,
lib/vk/api/photos/methods/get_tags.rb,
lib/vk/api/photos/photo_album_full.rb,
lib/vk/api/photos/methods/get_by_id.rb,
lib/vk/api/photos/methods/edit_album.rb,
lib/vk/api/photos/methods/get_albums.rb,
lib/vk/api/photos/methods/make_cover.rb,
lib/vk/api/photos/methods/remove_tag.rb,
lib/vk/api/photos/photo_xtr_tag_info.rb,
lib/vk/api/photos/methods/confirm_tag.rb,
lib/vk/api/photos/methods/create_album.rb,
lib/vk/api/photos/methods/delete_album.rb,
lib/vk/api/photos/methods/edit_comment.rb,
lib/vk/api/photos/methods/get_comments.rb,
lib/vk/api/photos/methods/get_new_tags.rb,
lib/vk/api/photos/wall_upload_response.rb,
lib/vk/api/photos/owner_upload_response.rb,
lib/vk/api/photos/photo_upload_response.rb,
lib/vk/api/photos/photo_xtr_real_offset.rb,
lib/vk/api/photos/market_upload_response.rb,
lib/vk/api/photos/methods/create_comment.rb,
lib/vk/api/photos/methods/delete_comment.rb,
lib/vk/api/photos/methods/reorder_albums.rb,
lib/vk/api/photos/methods/reorder_photos.rb,
lib/vk/api/photos/methods/report_comment.rb,
lib/vk/api/photos/responses/get_response.rb,
lib/vk/api/photos/message_upload_response.rb,
lib/vk/api/photos/methods/get_user_photos.rb,
lib/vk/api/photos/methods/restore_comment.rb,
lib/vk/api/photos/methods/save_wall_photo.rb,
lib/vk/api/photos/responses/copy_response.rb,
lib/vk/api/photos/responses/edit_response.rb,
lib/vk/api/photos/responses/move_response.rb,
lib/vk/api/photos/responses/save_response.rb,
lib/vk/api/photos/methods/get_albums_count.rb,
lib/vk/api/photos/methods/get_all_comments.rb,
lib/vk/api/photos/methods/save_owner_photo.rb,
lib/vk/api/photos/methods/get_upload_server.rb,
lib/vk/api/photos/methods/save_market_photo.rb,
lib/vk/api/photos/responses/delete_response.rb,
lib/vk/api/photos/responses/report_response.rb,
lib/vk/api/photos/responses/search_response.rb,
lib/vk/api/photos/photo_full_xtr_real_offset.rb,
lib/vk/api/photos/responses/get_all_response.rb,
lib/vk/api/photos/responses/put_tag_response.rb,
lib/vk/api/photos/responses/restore_response.rb,
lib/vk/api/photos/methods/save_messages_photo.rb,
lib/vk/api/photos/responses/get_tags_response.rb,
lib/vk/api/photos/market_album_upload_response.rb,
lib/vk/api/photos/responses/get_by_id_response.rb,
lib/vk/api/photos/responses/edit_album_response.rb,
lib/vk/api/photos/responses/get_albums_response.rb,
lib/vk/api/photos/responses/make_cover_response.rb,
lib/vk/api/photos/responses/remove_tag_response.rb,
lib/vk/api/photos/methods/get_chat_upload_server.rb,
lib/vk/api/photos/methods/get_wall_upload_server.rb,
lib/vk/api/photos/responses/confirm_tag_response.rb,
lib/vk/api/photos/methods/save_market_album_photo.rb,
lib/vk/api/photos/responses/create_album_response.rb,
lib/vk/api/photos/responses/delete_album_response.rb,
lib/vk/api/photos/responses/edit_comment_response.rb,
lib/vk/api/photos/responses/get_comments_response.rb,
lib/vk/api/photos/responses/get_new_tags_response.rb,
lib/vk/api/photos/methods/get_market_upload_server.rb,
lib/vk/api/photos/responses/create_comment_response.rb,
lib/vk/api/photos/responses/delete_comment_response.rb,
lib/vk/api/photos/responses/get_user_photo_response.rb,
lib/vk/api/photos/responses/reorder_albums_response.rb,
lib/vk/api/photos/responses/reorder_photos_response.rb,
lib/vk/api/photos/responses/report_comment_response.rb,
lib/vk/api/photos/methods/get_messages_upload_server.rb,
lib/vk/api/photos/responses/get_user_photos_response.rb,
lib/vk/api/photos/responses/restore_comment_response.rb,
lib/vk/api/photos/responses/save_wall_photo_response.rb,
lib/vk/api/photos/responses/get_albums_count_response.rb,
lib/vk/api/photos/responses/get_all_comments_response.rb,
lib/vk/api/photos/responses/save_owner_photo_response.rb,
lib/vk/api/photos/responses/get_upload_server_response.rb,
lib/vk/api/photos/responses/save_market_photo_response.rb,
lib/vk/api/photos/methods/get_owner_photo_upload_server.rb,
lib/vk/api/photos/methods/get_market_album_upload_server.rb,
lib/vk/api/photos/responses/save_messages_photo_response.rb,
lib/vk/api/photos/responses/get_chat_upload_server_response.rb,
lib/vk/api/photos/responses/get_wall_upload_server_response.rb,
lib/vk/api/photos/responses/save_market_album_photo_response.rb,
lib/vk/api/photos/responses/get_market_upload_server_response.rb,
lib/vk/api/photos/responses/get_messages_upload_server_response.rb,
lib/vk/api/photos/responses/get_owner_photo_upload_server_response.rb,
lib/vk/api/photos/responses/get_market_album_upload_server_response.rb
Defined Under Namespace
Modules: Methods, Responses Classes: CommentXtrPid, MarketAlbumUploadResponse, MarketUploadResponse, MessageUploadResponse, OwnerUploadResponse, Photo, PhotoAlbum, PhotoAlbumFull, PhotoFull, PhotoFullXtrRealOffset, PhotoSizes, PhotoTag, PhotoUpload, PhotoUploadResponse, PhotoXtrRealOffset, PhotoXtrTagInfo, WallUploadResponse
Instance Attribute Summary
Attributes inherited from Schema::Namespace
DSL collapse
-
#confirm_tag(arguments = {}) ⇒ Vk::API::Photos::Responses::ConfirmTagResponse
Confirms a tag on a photo.
-
#copy(arguments = {}) ⇒ Vk::API::Photos::Responses::CopyResponse
Allows to copy a photo to the "Saved photos" album.
-
#create_album(arguments = {}) ⇒ Vk::API::Photos::Responses::CreateAlbumResponse
Creates an empty photo album.
-
#create_comment(arguments = {}) ⇒ Vk::API::Photos::Responses::CreateCommentResponse
Adds a new comment on the photo.
-
#delete(arguments = {}) ⇒ Vk::API::Photos::Responses::DeleteResponse
Deletes a photo.
-
#delete_album(arguments = {}) ⇒ Vk::API::Photos::Responses::DeleteAlbumResponse
Deletes a photo album belonging to the current user.
-
#delete_comment(arguments = {}) ⇒ Vk::API::Photos::Responses::DeleteCommentResponse
Deletes a comment on the photo.
-
#edit(arguments = {}) ⇒ Vk::API::Photos::Responses::EditResponse
Edits the caption of a photo.
-
#edit_album(arguments = {}) ⇒ Vk::API::Photos::Responses::EditAlbumResponse
Edits information about a photo album.
-
#edit_comment(arguments = {}) ⇒ Vk::API::Photos::Responses::EditCommentResponse
Edits a comment on a photo.
-
#get(arguments = {}) ⇒ Vk::API::Photos::Responses::GetResponse
Returns a list of a user's or community's photos.
-
#get_albums(arguments = {}) ⇒ Vk::API::Photos::Responses::GetAlbumsResponse
Returns a list of a user's or community's photo albums.
-
#get_albums_count(arguments = {}) ⇒ Vk::API::Photos::Responses::GetAlbumsCountResponse
Returns the number of photo albums belonging to a user or community.
-
#get_all(arguments = {}) ⇒ Vk::API::Photos::Responses::GetAllResponse
Returns a list of photos belonging to a user or community, in reverse chronological order.
-
#get_all_comments(arguments = {}) ⇒ Vk::API::Photos::Responses::GetAllCommentsResponse
Returns a list of comments on a specific photo album or all albums of the user sorted in reverse chronological order.
-
#get_by_id(arguments = {}) ⇒ Vk::API::Photos::Responses::GetByIdResponse
Returns information about photos by their IDs.
-
#get_chat_upload_server(arguments = {}) ⇒ Vk::API::Photos::Responses::GetChatUploadServerResponse
Returns an upload link for chat cover pictures.
-
#get_comments(arguments = {}) ⇒ Vk::API::Photos::Responses::GetCommentsResponse
Returns a list of comments on a photo.
-
#get_market_album_upload_server(arguments = {}) ⇒ Vk::API::Photos::Responses::GetMarketAlbumUploadServerResponse
Returns the server address for market album photo upload.
-
#get_market_upload_server(arguments = {}) ⇒ Vk::API::Photos::Responses::GetMarketUploadServerResponse
Returns the server address for market photo upload.
-
#get_messages_upload_server(arguments = {}) ⇒ Vk::API::Photos::Responses::GetMessagesUploadServerResponse
Returns the server address for photo upload in a private message for a user.
-
#get_new_tags(arguments = {}) ⇒ Vk::API::Photos::Responses::GetNewTagsResponse
Returns a list of photos with tags that have not been viewed.
-
#get_owner_photo_upload_server(arguments = {}) ⇒ Vk::API::Photos::Responses::GetOwnerPhotoUploadServerResponse
Returns an upload server address for a profile or community photo.
-
#get_tags(arguments = {}) ⇒ Vk::API::Photos::Responses::GetTagsResponse
Returns a list of tags on a photo.
-
#get_upload_server(arguments = {}) ⇒ Vk::API::Photos::Responses::GetUploadServerResponse
Returns the server address for photo upload.
-
#get_user_photos(arguments = {}) ⇒ Vk::API::Photos::Responses::GetUserPhotosResponse
Returns a list of photos in which a user is tagged.
-
#get_wall_upload_server(arguments = {}) ⇒ Vk::API::Photos::Responses::GetWallUploadServerResponse
Returns the server address for photo upload onto a user's wall.
-
#make_cover(arguments = {}) ⇒ Vk::API::Photos::Responses::MakeCoverResponse
Makes a photo into an album cover.
-
#move(arguments = {}) ⇒ Vk::API::Photos::Responses::MoveResponse
Moves a photo from one album to another.
-
#put_tag(arguments = {}) ⇒ Vk::API::Photos::Responses::PutTagResponse
Adds a tag on the photo.
-
#remove_tag(arguments = {}) ⇒ Vk::API::Photos::Responses::RemoveTagResponse
Removes a tag from a photo.
-
#reorder_albums(arguments = {}) ⇒ Vk::API::Photos::Responses::ReorderAlbumsResponse
Reorders the album in the list of user albums.
-
#reorder_photos(arguments = {}) ⇒ Vk::API::Photos::Responses::ReorderPhotosResponse
Reorders the photo in the list of photos of the user album.
-
#report(arguments = {}) ⇒ Vk::API::Photos::Responses::ReportResponse
Reports (submits a complaint about) a photo.;.
-
#report_comment(arguments = {}) ⇒ Vk::API::Photos::Responses::ReportCommentResponse
Reports (submits a complaint about) a comment on a photo.;.
-
#restore(arguments = {}) ⇒ Vk::API::Photos::Responses::RestoreResponse
Restores a deleted photo.
-
#restore_comment(arguments = {}) ⇒ Vk::API::Photos::Responses::RestoreCommentResponse
Restores a deleted comment on a photo.
-
#save(arguments = {}) ⇒ Vk::API::Photos::Responses::SaveResponse
Saves photos after successful uploading.
-
#save_market_album_photo(arguments = {}) ⇒ Vk::API::Photos::Responses::SaveMarketAlbumPhotoResponse
Saves market album photos after successful uploading.
-
#save_market_photo(arguments = {}) ⇒ Vk::API::Photos::Responses::SaveMarketPhotoResponse
Saves market photos after successful uploading.
-
#save_messages_photo(arguments = {}) ⇒ Vk::API::Photos::Responses::SaveMessagesPhotoResponse
Saves a photo after being successfully uploaded.
-
#save_owner_photo(arguments = {}) ⇒ Vk::API::Photos::Responses::SaveOwnerPhotoResponse
Saves a profile or community photo.
-
#save_wall_photo(arguments = {}) ⇒ Vk::API::Photos::Responses::SaveWallPhotoResponse
Saves a photo to a user's or community's wall after being uploaded.
-
#search(arguments = {}) ⇒ Vk::API::Photos::Responses::SearchResponse
Returns a list of photos.
Methods inherited from Schema::Namespace
Constructor Details
This class inherits a constructor from Vk::Schema::Namespace
Instance Method Details
#confirm_tag(arguments = {}) ⇒ Vk::API::Photos::Responses::ConfirmTagResponse
Returns Confirms a tag on a photo.
1043 1044 1045 1046 1047 1048 1049 |
# File 'lib/vk/api/methods.rb', line 1043 def confirm_tag(arguments = {}) require "vk/api/photos/methods/confirm_tag" method = Methods::ConfirmTag.new(arguments) response = method.call(@client) require "vk/api/photos/responses/confirm_tag_response" Responses::ConfirmTagResponse.new(response.deep_symbolize_keys) end |
#copy(arguments = {}) ⇒ Vk::API::Photos::Responses::CopyResponse
Returns Allows to copy a photo to the "Saved photos" album.
889 890 891 892 893 894 895 |
# File 'lib/vk/api/methods.rb', line 889 def copy(arguments = {}) require "vk/api/photos/methods/copy" method = Methods::Copy.new(arguments) response = method.call(@client) require "vk/api/photos/responses/copy_response" Responses::CopyResponse.new(response.deep_symbolize_keys) end |
#create_album(arguments = {}) ⇒ Vk::API::Photos::Responses::CreateAlbumResponse
Returns Creates an empty photo album.
578 579 580 581 582 583 584 |
# File 'lib/vk/api/methods.rb', line 578 def create_album(arguments = {}) require "vk/api/photos/methods/create_album" method = Methods::CreateAlbum.new(arguments) response = method.call(@client) require "vk/api/photos/responses/create_album_response" Responses::CreateAlbumResponse.new(response.deep_symbolize_keys) end |
#create_comment(arguments = {}) ⇒ Vk::API::Photos::Responses::CreateCommentResponse
Returns Adds a new comment on the photo.
1097 1098 1099 1100 1101 1102 1103 |
# File 'lib/vk/api/methods.rb', line 1097 def create_comment(arguments = {}) require "vk/api/photos/methods/create_comment" method = Methods::CreateComment.new(arguments) response = method.call(@client) require "vk/api/photos/responses/create_comment_response" Responses::CreateCommentResponse.new(response.deep_symbolize_keys) end |
#delete(arguments = {}) ⇒ Vk::API::Photos::Responses::DeleteResponse
Returns Deletes a photo.
1018 1019 1020 1021 1022 1023 1024 |
# File 'lib/vk/api/methods.rb', line 1018 def delete(arguments = {}) require "vk/api/photos/methods/delete" method = Methods::Delete.new(arguments) response = method.call(@client) require "vk/api/photos/responses/delete_response" Responses::DeleteResponse.new(response.deep_symbolize_keys) end |
#delete_album(arguments = {}) ⇒ Vk::API::Photos::Responses::DeleteAlbumResponse
Returns Deletes a photo album belonging to the current user.
1006 1007 1008 1009 1010 1011 1012 |
# File 'lib/vk/api/methods.rb', line 1006 def delete_album(arguments = {}) require "vk/api/photos/methods/delete_album" method = Methods::DeleteAlbum.new(arguments) response = method.call(@client) require "vk/api/photos/responses/delete_album_response" Responses::DeleteAlbumResponse.new(response.deep_symbolize_keys) end |
#delete_comment(arguments = {}) ⇒ Vk::API::Photos::Responses::DeleteCommentResponse
Returns Deletes a comment on the photo.
1109 1110 1111 1112 1113 1114 1115 |
# File 'lib/vk/api/methods.rb', line 1109 def delete_comment(arguments = {}) require "vk/api/photos/methods/delete_comment" method = Methods::DeleteComment.new(arguments) response = method.call(@client) require "vk/api/photos/responses/delete_comment_response" Responses::DeleteCommentResponse.new(response.deep_symbolize_keys) end |
#edit(arguments = {}) ⇒ Vk::API::Photos::Responses::EditResponse
Returns Edits the caption of a photo.
907 908 909 910 911 912 913 |
# File 'lib/vk/api/methods.rb', line 907 def edit(arguments = {}) require "vk/api/photos/methods/edit" method = Methods::Edit.new(arguments) response = method.call(@client) require "vk/api/photos/responses/edit_response" Responses::EditResponse.new(response.deep_symbolize_keys) end |
#edit_album(arguments = {}) ⇒ Vk::API::Photos::Responses::EditAlbumResponse
Returns Edits information about a photo album.
596 597 598 599 600 601 602 |
# File 'lib/vk/api/methods.rb', line 596 def edit_album(arguments = {}) require "vk/api/photos/methods/edit_album" method = Methods::EditAlbum.new(arguments) response = method.call(@client) require "vk/api/photos/responses/edit_album_response" Responses::EditAlbumResponse.new(response.deep_symbolize_keys) end |
#edit_comment(arguments = {}) ⇒ Vk::API::Photos::Responses::EditCommentResponse
Returns Edits a comment on a photo.
1135 1136 1137 1138 1139 1140 1141 |
# File 'lib/vk/api/methods.rb', line 1135 def edit_comment(arguments = {}) require "vk/api/photos/methods/edit_comment" method = Methods::EditComment.new(arguments) response = method.call(@client) require "vk/api/photos/responses/edit_comment_response" Responses::EditCommentResponse.new(response.deep_symbolize_keys) end |
#get(arguments = {}) ⇒ Vk::API::Photos::Responses::GetResponse
Returns a list of a user's or community's photos.
633 634 635 636 637 638 639 |
# File 'lib/vk/api/methods.rb', line 633 def get(arguments = {}) require "vk/api/photos/methods/get" method = Methods::Get.new(arguments) response = method.call(@client) require "vk/api/photos/responses/get_response" Responses::GetResponse.new(response.deep_symbolize_keys) end |
#get_albums(arguments = {}) ⇒ Vk::API::Photos::Responses::GetAlbumsResponse
Returns a list of a user's or community's photo albums.
613 614 615 616 617 618 619 |
# File 'lib/vk/api/methods.rb', line 613 def get_albums(arguments = {}) require "vk/api/photos/methods/get_albums" method = Methods::GetAlbums.new(arguments) response = method.call(@client) require "vk/api/photos/responses/get_albums_response" Responses::GetAlbumsResponse.new(response.deep_symbolize_keys) end |
#get_albums_count(arguments = {}) ⇒ Vk::API::Photos::Responses::GetAlbumsCountResponse
Returns the number of photo albums belonging to a user or community.
645 646 647 648 649 650 651 |
# File 'lib/vk/api/methods.rb', line 645 def get_albums_count(arguments = {}) require "vk/api/photos/methods/get_albums_count" method = Methods::GetAlbumsCount.new(arguments) response = method.call(@client) require "vk/api/photos/responses/get_albums_count_response" Responses::GetAlbumsCountResponse.new(response.deep_symbolize_keys) end |
#get_all(arguments = {}) ⇒ Vk::API::Photos::Responses::GetAllResponse
Returns a list of photos belonging to a user or community, in reverse chronological order.
979 980 981 982 983 984 985 |
# File 'lib/vk/api/methods.rb', line 979 def get_all(arguments = {}) require "vk/api/photos/methods/get_all" method = Methods::GetAll.new(arguments) response = method.call(@client) require "vk/api/photos/responses/get_all_response" Responses::GetAllResponse.new(response.deep_symbolize_keys) end |
#get_all_comments(arguments = {}) ⇒ Vk::API::Photos::Responses::GetAllCommentsResponse
Returns a list of comments on a specific photo album or all albums of the user sorted in reverse chronological order.
1078 1079 1080 1081 1082 1083 1084 |
# File 'lib/vk/api/methods.rb', line 1078 def get_all_comments(arguments = {}) require "vk/api/photos/methods/get_all_comments" method = Methods::GetAllComments.new(arguments) response = method.call(@client) require "vk/api/photos/responses/get_all_comments_response" Responses::GetAllCommentsResponse.new(response.deep_symbolize_keys) end |
#get_by_id(arguments = {}) ⇒ Vk::API::Photos::Responses::GetByIdResponse
Returns information about photos by their IDs.
658 659 660 661 662 663 664 |
# File 'lib/vk/api/methods.rb', line 658 def get_by_id(arguments = {}) require "vk/api/photos/methods/get_by_id" method = Methods::GetById.new(arguments) response = method.call(@client) require "vk/api/photos/responses/get_by_id_response" Responses::GetByIdResponse.new(response.deep_symbolize_keys) end |
#get_chat_upload_server(arguments = {}) ⇒ Vk::API::Photos::Responses::GetChatUploadServerResponse
Returns an upload link for chat cover pictures.
695 696 697 698 699 700 701 |
# File 'lib/vk/api/methods.rb', line 695 def get_chat_upload_server(arguments = {}) require "vk/api/photos/methods/get_chat_upload_server" method = Methods::GetChatUploadServer.new(arguments) response = method.call(@client) require "vk/api/photos/responses/get_chat_upload_server_response" Responses::GetChatUploadServerResponse.new(response.deep_symbolize_keys) end |
#get_comments(arguments = {}) ⇒ Vk::API::Photos::Responses::GetCommentsResponse
Returns a list of comments on a photo.
1063 1064 1065 1066 1067 1068 1069 |
# File 'lib/vk/api/methods.rb', line 1063 def get_comments(arguments = {}) require "vk/api/photos/methods/get_comments" method = Methods::GetComments.new(arguments) response = method.call(@client) require "vk/api/photos/responses/get_comments_response" Responses::GetCommentsResponse.new(response.deep_symbolize_keys) end |
#get_market_album_upload_server(arguments = {}) ⇒ Vk::API::Photos::Responses::GetMarketAlbumUploadServerResponse
Returns the server address for market album photo upload.
721 722 723 724 725 726 727 |
# File 'lib/vk/api/methods.rb', line 721 def get_market_album_upload_server(arguments = {}) require "vk/api/photos/methods/get_market_album_upload_server" method = Methods::GetMarketAlbumUploadServer.new(arguments) response = method.call(@client) require "vk/api/photos/responses/get_market_album_upload_server_response" Responses::GetMarketAlbumUploadServerResponse.new(response.deep_symbolize_keys) end |
#get_market_upload_server(arguments = {}) ⇒ Vk::API::Photos::Responses::GetMarketUploadServerResponse
Returns the server address for market photo upload.
710 711 712 713 714 715 716 |
# File 'lib/vk/api/methods.rb', line 710 def get_market_upload_server(arguments = {}) require "vk/api/photos/methods/get_market_upload_server" method = Methods::GetMarketUploadServer.new(arguments) response = method.call(@client) require "vk/api/photos/responses/get_market_upload_server_response" Responses::GetMarketUploadServerResponse.new(response.deep_symbolize_keys) end |
#get_messages_upload_server(arguments = {}) ⇒ Vk::API::Photos::Responses::GetMessagesUploadServerResponse
Returns the server address for photo upload in a private message for a user.
800 801 802 803 804 805 806 |
# File 'lib/vk/api/methods.rb', line 800 def (arguments = {}) require "vk/api/photos/methods/get_messages_upload_server" method = Methods::GetMessagesUploadServer.new(arguments) response = method.call(@client) require "vk/api/photos/responses/get_messages_upload_server_response" Responses::GetMessagesUploadServerResponse.new(response.deep_symbolize_keys) end |
#get_new_tags(arguments = {}) ⇒ Vk::API::Photos::Responses::GetNewTagsResponse
Returns a list of photos with tags that have not been viewed.
1190 1191 1192 1193 1194 1195 1196 |
# File 'lib/vk/api/methods.rb', line 1190 def (arguments = {}) require "vk/api/photos/methods/get_new_tags" method = Methods::GetNewTags.new(arguments) response = method.call(@client) require "vk/api/photos/responses/get_new_tags_response" Responses::GetNewTagsResponse.new(response.deep_symbolize_keys) end |
#get_owner_photo_upload_server(arguments = {}) ⇒ Vk::API::Photos::Responses::GetOwnerPhotoUploadServerResponse
Returns an upload server address for a profile or community photo.
681 682 683 684 685 686 687 |
# File 'lib/vk/api/methods.rb', line 681 def get_owner_photo_upload_server(arguments = {}) require "vk/api/photos/methods/get_owner_photo_upload_server" method = Methods::GetOwnerPhotoUploadServer.new(arguments) response = method.call(@client) require "vk/api/photos/responses/get_owner_photo_upload_server_response" Responses::GetOwnerPhotoUploadServerResponse.new(response.deep_symbolize_keys) end |
#get_tags(arguments = {}) ⇒ Vk::API::Photos::Responses::GetTagsResponse
Returns a list of tags on a photo.
1148 1149 1150 1151 1152 1153 1154 |
# File 'lib/vk/api/methods.rb', line 1148 def (arguments = {}) require "vk/api/photos/methods/get_tags" method = Methods::GetTags.new(arguments) response = method.call(@client) require "vk/api/photos/responses/get_tags_response" Responses::GetTagsResponse.new(response.deep_symbolize_keys) end |
#get_upload_server(arguments = {}) ⇒ Vk::API::Photos::Responses::GetUploadServerResponse
Returns the server address for photo upload.
670 671 672 673 674 675 676 |
# File 'lib/vk/api/methods.rb', line 670 def get_upload_server(arguments = {}) require "vk/api/photos/methods/get_upload_server" method = Methods::GetUploadServer.new(arguments) response = method.call(@client) require "vk/api/photos/responses/get_upload_server_response" Responses::GetUploadServerResponse.new(response.deep_symbolize_keys) end |
#get_user_photos(arguments = {}) ⇒ Vk::API::Photos::Responses::GetUserPhotosResponse
Returns a list of photos in which a user is tagged.
994 995 996 997 998 999 1000 |
# File 'lib/vk/api/methods.rb', line 994 def get_user_photos(arguments = {}) require "vk/api/photos/methods/get_user_photos" method = Methods::GetUserPhotos.new(arguments) response = method.call(@client) require "vk/api/photos/responses/get_user_photos_response" Responses::GetUserPhotosResponse.new(response.deep_symbolize_keys) end |
#get_wall_upload_server(arguments = {}) ⇒ Vk::API::Photos::Responses::GetWallUploadServerResponse
Returns the server address for photo upload onto a user's wall.
790 791 792 793 794 795 796 |
# File 'lib/vk/api/methods.rb', line 790 def get_wall_upload_server(arguments = {}) require "vk/api/photos/methods/get_wall_upload_server" method = Methods::GetWallUploadServer.new(arguments) response = method.call(@client) require "vk/api/photos/responses/get_wall_upload_server_response" Responses::GetWallUploadServerResponse.new(response.deep_symbolize_keys) end |
#make_cover(arguments = {}) ⇒ Vk::API::Photos::Responses::MakeCoverResponse
Returns Makes a photo into an album cover.
933 934 935 936 937 938 939 |
# File 'lib/vk/api/methods.rb', line 933 def make_cover(arguments = {}) require "vk/api/photos/methods/make_cover" method = Methods::MakeCover.new(arguments) response = method.call(@client) require "vk/api/photos/responses/make_cover_response" Responses::MakeCoverResponse.new(response.deep_symbolize_keys) end |
#move(arguments = {}) ⇒ Vk::API::Photos::Responses::MoveResponse
Returns Moves a photo from one album to another.
920 921 922 923 924 925 926 |
# File 'lib/vk/api/methods.rb', line 920 def move(arguments = {}) require "vk/api/photos/methods/move" method = Methods::Move.new(arguments) response = method.call(@client) require "vk/api/photos/responses/move_response" Responses::MoveResponse.new(response.deep_symbolize_keys) end |
#put_tag(arguments = {}) ⇒ Vk::API::Photos::Responses::PutTagResponse
Returns Adds a tag on the photo.
1165 1166 1167 1168 1169 1170 1171 |
# File 'lib/vk/api/methods.rb', line 1165 def put_tag(arguments = {}) require "vk/api/photos/methods/put_tag" method = Methods::PutTag.new(arguments) response = method.call(@client) require "vk/api/photos/responses/put_tag_response" Responses::PutTagResponse.new(response.deep_symbolize_keys) end |
#remove_tag(arguments = {}) ⇒ Vk::API::Photos::Responses::RemoveTagResponse
Returns Removes a tag from a photo.
1178 1179 1180 1181 1182 1183 1184 |
# File 'lib/vk/api/methods.rb', line 1178 def remove_tag(arguments = {}) require "vk/api/photos/methods/remove_tag" method = Methods::RemoveTag.new(arguments) response = method.call(@client) require "vk/api/photos/responses/remove_tag_response" Responses::RemoveTagResponse.new(response.deep_symbolize_keys) end |
#reorder_albums(arguments = {}) ⇒ Vk::API::Photos::Responses::ReorderAlbumsResponse
Returns Reorders the album in the list of user albums.
947 948 949 950 951 952 953 |
# File 'lib/vk/api/methods.rb', line 947 def reorder_albums(arguments = {}) require "vk/api/photos/methods/reorder_albums" method = Methods::ReorderAlbums.new(arguments) response = method.call(@client) require "vk/api/photos/responses/reorder_albums_response" Responses::ReorderAlbumsResponse.new(response.deep_symbolize_keys) end |
#reorder_photos(arguments = {}) ⇒ Vk::API::Photos::Responses::ReorderPhotosResponse
Returns Reorders the photo in the list of photos of the user album.
961 962 963 964 965 966 967 |
# File 'lib/vk/api/methods.rb', line 961 def reorder_photos(arguments = {}) require "vk/api/photos/methods/reorder_photos" method = Methods::ReorderPhotos.new(arguments) response = method.call(@client) require "vk/api/photos/responses/reorder_photos_response" Responses::ReorderPhotosResponse.new(response.deep_symbolize_keys) end |
#report(arguments = {}) ⇒ Vk::API::Photos::Responses::ReportResponse
Returns Reports (submits a complaint about) a photo.;.
826 827 828 829 830 831 832 |
# File 'lib/vk/api/methods.rb', line 826 def report(arguments = {}) require "vk/api/photos/methods/report" method = Methods::Report.new(arguments) response = method.call(@client) require "vk/api/photos/responses/report_response" Responses::ReportResponse.new(response.deep_symbolize_keys) end |
#report_comment(arguments = {}) ⇒ Vk::API::Photos::Responses::ReportCommentResponse
Returns Reports (submits a complaint about) a comment on a photo.;.
839 840 841 842 843 844 845 |
# File 'lib/vk/api/methods.rb', line 839 def report_comment(arguments = {}) require "vk/api/photos/methods/report_comment" method = Methods::ReportComment.new(arguments) response = method.call(@client) require "vk/api/photos/responses/report_comment_response" Responses::ReportCommentResponse.new(response.deep_symbolize_keys) end |
#restore(arguments = {}) ⇒ Vk::API::Photos::Responses::RestoreResponse
Returns Restores a deleted photo.
1030 1031 1032 1033 1034 1035 1036 |
# File 'lib/vk/api/methods.rb', line 1030 def restore(arguments = {}) require "vk/api/photos/methods/restore" method = Methods::Restore.new(arguments) response = method.call(@client) require "vk/api/photos/responses/restore_response" Responses::RestoreResponse.new(response.deep_symbolize_keys) end |
#restore_comment(arguments = {}) ⇒ Vk::API::Photos::Responses::RestoreCommentResponse
Returns Restores a deleted comment on a photo.
1121 1122 1123 1124 1125 1126 1127 |
# File 'lib/vk/api/methods.rb', line 1121 def restore_comment(arguments = {}) require "vk/api/photos/methods/restore_comment" method = Methods::RestoreComment.new(arguments) response = method.call(@client) require "vk/api/photos/responses/restore_comment_response" Responses::RestoreCommentResponse.new(response.deep_symbolize_keys) end |
#save(arguments = {}) ⇒ Vk::API::Photos::Responses::SaveResponse
Returns Saves photos after successful uploading.
876 877 878 879 880 881 882 |
# File 'lib/vk/api/methods.rb', line 876 def save(arguments = {}) require "vk/api/photos/methods/save" method = Methods::Save.new(arguments) response = method.call(@client) require "vk/api/photos/responses/save_response" Responses::SaveResponse.new(response.deep_symbolize_keys) end |
#save_market_album_photo(arguments = {}) ⇒ Vk::API::Photos::Responses::SaveMarketAlbumPhotoResponse
Returns Saves market album photos after successful uploading.
751 752 753 754 755 756 757 |
# File 'lib/vk/api/methods.rb', line 751 def save_market_album_photo(arguments = {}) require "vk/api/photos/methods/save_market_album_photo" method = Methods::SaveMarketAlbumPhoto.new(arguments) response = method.call(@client) require "vk/api/photos/responses/save_market_album_photo_response" Responses::SaveMarketAlbumPhotoResponse.new(response.deep_symbolize_keys) end |
#save_market_photo(arguments = {}) ⇒ Vk::API::Photos::Responses::SaveMarketPhotoResponse
Returns Saves market photos after successful uploading.
737 738 739 740 741 742 743 |
# File 'lib/vk/api/methods.rb', line 737 def save_market_photo(arguments = {}) require "vk/api/photos/methods/save_market_photo" method = Methods::SaveMarketPhoto.new(arguments) response = method.call(@client) require "vk/api/photos/responses/save_market_photo_response" Responses::SaveMarketPhotoResponse.new(response.deep_symbolize_keys) end |
#save_messages_photo(arguments = {}) ⇒ Vk::API::Photos::Responses::SaveMessagesPhotoResponse
Returns Saves a photo after being successfully uploaded. URL obtained with method.
813 814 815 816 817 818 819 |
# File 'lib/vk/api/methods.rb', line 813 def (arguments = {}) require "vk/api/photos/methods/save_messages_photo" method = Methods::SaveMessagesPhoto.new(arguments) response = method.call(@client) require "vk/api/photos/responses/save_messages_photo_response" Responses::SaveMessagesPhotoResponse.new(response.deep_symbolize_keys) end |
#save_owner_photo(arguments = {}) ⇒ Vk::API::Photos::Responses::SaveOwnerPhotoResponse
Returns Saves a profile or community photo.
764 765 766 767 768 769 770 |
# File 'lib/vk/api/methods.rb', line 764 def save_owner_photo(arguments = {}) require "vk/api/photos/methods/save_owner_photo" method = Methods::SaveOwnerPhoto.new(arguments) response = method.call(@client) require "vk/api/photos/responses/save_owner_photo_response" Responses::SaveOwnerPhotoResponse.new(response.deep_symbolize_keys) end |
#save_wall_photo(arguments = {}) ⇒ Vk::API::Photos::Responses::SaveWallPhotoResponse
Returns Saves a photo to a user's or community's wall after being uploaded.
779 780 781 782 783 784 785 |
# File 'lib/vk/api/methods.rb', line 779 def save_wall_photo(arguments = {}) require "vk/api/photos/methods/save_wall_photo" method = Methods::SaveWallPhoto.new(arguments) response = method.call(@client) require "vk/api/photos/responses/save_wall_photo_response" Responses::SaveWallPhotoResponse.new(response.deep_symbolize_keys) end |
#search(arguments = {}) ⇒ Vk::API::Photos::Responses::SearchResponse
Returns a list of photos.
858 859 860 861 862 863 864 |
# File 'lib/vk/api/methods.rb', line 858 def search(arguments = {}) require "vk/api/photos/methods/search" method = Methods::Search.new(arguments) response = method.call(@client) require "vk/api/photos/responses/search_response" Responses::SearchResponse.new(response.deep_symbolize_keys) end |