Class: Vk::API::Wall
- Inherits:
-
Schema::Namespace
- Object
- Schema::Namespace
- Vk::API::Wall
- Defined in:
- lib/vk/api/types.rb,
lib/vk/api/methods.rb,
lib/vk/api/objects.rb,
lib/vk/api/responses.rb,
lib/vk/api/wall/app_post.rb,
lib/vk/api/wall/graffiti.rb,
lib/vk/api/wall/wallpost.rb,
lib/vk/api/wall/post_type.rb,
lib/vk/api/wall/wall_link.rb,
lib/vk/api/wall/link_button.rb,
lib/vk/api/wall/link_rating.rb,
lib/vk/api/wall/methods/get.rb,
lib/vk/api/wall/methods/pin.rb,
lib/vk/api/wall/post_source.rb,
lib/vk/api/wall/link_product.rb,
lib/vk/api/wall/methods/edit.rb,
lib/vk/api/wall/methods/post.rb,
lib/vk/api/wall/posted_photo.rb,
lib/vk/api/wall/wall_comment.rb,
lib/vk/api/wall/attached_note.rb,
lib/vk/api/wall/methods/unpin.rb,
lib/vk/api/wall/wallpost_full.rb,
lib/vk/api/wall/methods/delete.rb,
lib/vk/api/wall/methods/repost.rb,
lib/vk/api/wall/methods/search.rb,
lib/vk/api/wall/wallpost_to_id.rb,
lib/vk/api/wall/methods/restore.rb,
lib/vk/api/wall/methods/get_by_id.rb,
lib/vk/api/wall/wallpost_attached.rb,
lib/vk/api/wall/comment_attachment.rb,
lib/vk/api/wall/methods/get_reposts.rb,
lib/vk/api/wall/methods/report_post.rb,
lib/vk/api/wall/wallpost_attachment.rb,
lib/vk/api/wall/methods/edit_comment.rb,
lib/vk/api/wall/methods/get_comments.rb,
lib/vk/api/wall/methods/create_comment.rb,
lib/vk/api/wall/methods/delete_comment.rb,
lib/vk/api/wall/methods/report_comment.rb,
lib/vk/api/wall/responses/get_response.rb,
lib/vk/api/wall/responses/pin_response.rb,
lib/vk/api/wall/methods/restore_comment.rb,
lib/vk/api/wall/responses/edit_response.rb,
lib/vk/api/wall/responses/post_response.rb,
lib/vk/api/wall/responses/unpin_response.rb,
lib/vk/api/wall/responses/delete_response.rb,
lib/vk/api/wall/responses/repost_response.rb,
lib/vk/api/wall/responses/search_response.rb,
lib/vk/api/wall/responses/restore_response.rb,
lib/vk/api/wall/responses/get_by_id_response.rb,
lib/vk/api/wall/responses/get_reposts_response.rb,
lib/vk/api/wall/responses/report_post_response.rb,
lib/vk/api/wall/responses/edit_comment_response.rb,
lib/vk/api/wall/responses/get_comments_response.rb,
lib/vk/api/wall/responses/create_comment_response.rb,
lib/vk/api/wall/responses/delete_comment_response.rb,
lib/vk/api/wall/responses/report_comment_response.rb,
lib/vk/api/wall/responses/restore_comment_response.rb
Defined Under Namespace
Modules: Methods, Responses Classes: AppPost, AttachedNote, CommentAttachment, Graffiti, LinkButton, LinkProduct, LinkRating, PostSource, PostedPhoto, WallComment, WallLink, Wallpost, WallpostAttached, WallpostAttachment, WallpostFull, WallpostToId
Constant Summary collapse
- PostType =
Post type
API::Types::Coercible::String.enum('post', 'copy', 'reply', 'postpone', 'suggest')
Instance Attribute Summary
Attributes inherited from Schema::Namespace
DSL collapse
-
#create_comment(arguments = {}) ⇒ Vk::API::Wall::Responses::CreateCommentResponse
Adds a comment to a post on a user wall or community wall.
-
#delete(arguments = {}) ⇒ Vk::API::Wall::Responses::DeleteResponse
Deletes a post from a user wall or community wall.
-
#delete_comment(arguments = {}) ⇒ Vk::API::Wall::Responses::DeleteCommentResponse
Deletes a comment on a post on a user wall or community wall.;.
-
#edit(arguments = {}) ⇒ Vk::API::Wall::Responses::EditResponse
Edits a post on a user wall or community wall.
-
#edit_comment(arguments = {}) ⇒ Vk::API::Wall::Responses::EditCommentResponse
Edits a comment on a user wall or community wall.;.
-
#get(arguments = {}) ⇒ Vk::API::Wall::Responses::GetResponse
Returns a list of posts on a user wall or community wall.
-
#get_by_id(arguments = {}) ⇒ Vk::API::Wall::Responses::GetByIdResponse
Returns a list of posts from user or community walls by their IDs.
-
#get_comments(arguments = {}) ⇒ Vk::API::Wall::Responses::GetCommentsResponse
Returns a list of comments on a post on a user wall or community wall.
-
#get_reposts(arguments = {}) ⇒ Vk::API::Wall::Responses::GetRepostsResponse
Returns information about reposts of a post on user wall or community wall.
-
#pin(arguments = {}) ⇒ Vk::API::Wall::Responses::PinResponse
Pins the post on wall.
-
#post(arguments = {}) ⇒ Vk::API::Wall::Responses::PostResponse
Adds a new post on a user wall or community wall.
-
#report_comment(arguments = {}) ⇒ Vk::API::Wall::Responses::ReportCommentResponse
Reports (submits a complaint about) a comment on a post on a user wall or community wall.;.
-
#report_post(arguments = {}) ⇒ Vk::API::Wall::Responses::ReportPostResponse
Reports (submits a complaint about) a post on a user wall or community wall.;.
-
#repost(arguments = {}) ⇒ Vk::API::Wall::Responses::RepostResponse
Reposts (copies) an object to a user wall or community wall.
-
#restore(arguments = {}) ⇒ Vk::API::Wall::Responses::RestoreResponse
Restores a post deleted from a user wall or community wall.
-
#restore_comment(arguments = {}) ⇒ Vk::API::Wall::Responses::RestoreCommentResponse
Restores a comment deleted from a user wall or community wall.;.
-
#search(arguments = {}) ⇒ Vk::API::Wall::Responses::SearchResponse
Allows to search posts on user or community walls.
-
#unpin(arguments = {}) ⇒ Vk::API::Wall::Responses::UnpinResponse
Unpins the post on wall.
Methods inherited from Schema::Namespace
Constructor Details
This class inherits a constructor from Vk::Schema::Namespace
Instance Method Details
#create_comment(arguments = {}) ⇒ Vk::API::Wall::Responses::CreateCommentResponse
Returns Adds a comment to a post on a user wall or community wall.
446 447 448 449 450 451 452 |
# File 'lib/vk/api/methods.rb', line 446 def create_comment(arguments = {}) require "vk/api/wall/methods/create_comment" method = Methods::CreateComment.new(arguments) response = method.call(@client) require "vk/api/wall/responses/create_comment_response" Responses::CreateCommentResponse.new(response.deep_symbolize_keys) end |
#delete(arguments = {}) ⇒ Vk::API::Wall::Responses::DeleteResponse
Returns Deletes a post from a user wall or community wall.
373 374 375 376 377 378 379 |
# File 'lib/vk/api/methods.rb', line 373 def delete(arguments = {}) require "vk/api/wall/methods/delete" method = Methods::Delete.new(arguments) response = method.call(@client) require "vk/api/wall/responses/delete_response" Responses::DeleteResponse.new(response.deep_symbolize_keys) end |
#delete_comment(arguments = {}) ⇒ Vk::API::Wall::Responses::DeleteCommentResponse
Returns Deletes a comment on a post on a user wall or community wall.;.
472 473 474 475 476 477 478 |
# File 'lib/vk/api/methods.rb', line 472 def delete_comment(arguments = {}) require "vk/api/wall/methods/delete_comment" method = Methods::DeleteComment.new(arguments) response = method.call(@client) require "vk/api/wall/responses/delete_comment_response" Responses::DeleteCommentResponse.new(response.deep_symbolize_keys) end |
#edit(arguments = {}) ⇒ Vk::API::Wall::Responses::EditResponse
Returns Edits a post on a user wall or community wall.
361 362 363 364 365 366 367 |
# File 'lib/vk/api/methods.rb', line 361 def edit(arguments = {}) require "vk/api/wall/methods/edit" method = Methods::Edit.new(arguments) response = method.call(@client) require "vk/api/wall/responses/edit_response" Responses::EditResponse.new(response.deep_symbolize_keys) end |
#edit_comment(arguments = {}) ⇒ Vk::API::Wall::Responses::EditCommentResponse
Returns Edits a comment on a user wall or community wall.;.
460 461 462 463 464 465 466 |
# File 'lib/vk/api/methods.rb', line 460 def edit_comment(arguments = {}) require "vk/api/wall/methods/edit_comment" method = Methods::EditComment.new(arguments) response = method.call(@client) require "vk/api/wall/responses/edit_comment_response" Responses::EditCommentResponse.new(response.deep_symbolize_keys) end |
#get(arguments = {}) ⇒ Vk::API::Wall::Responses::GetResponse
Returns a list of posts on a user wall or community wall.
256 257 258 259 260 261 262 |
# File 'lib/vk/api/methods.rb', line 256 def get(arguments = {}) require "vk/api/wall/methods/get" method = Methods::Get.new(arguments) response = method.call(@client) require "vk/api/wall/responses/get_response" Responses::GetResponse.new(response.deep_symbolize_keys) end |
#get_by_id(arguments = {}) ⇒ Vk::API::Wall::Responses::GetByIdResponse
Returns a list of posts from user or community walls by their IDs.
287 288 289 290 291 292 293 |
# File 'lib/vk/api/methods.rb', line 287 def get_by_id(arguments = {}) require "vk/api/wall/methods/get_by_id" method = Methods::GetById.new(arguments) response = method.call(@client) require "vk/api/wall/responses/get_by_id_response" Responses::GetByIdResponse.new(response.deep_symbolize_keys) end |
#get_comments(arguments = {}) ⇒ Vk::API::Wall::Responses::GetCommentsResponse
Returns a list of comments on a post on a user wall or community wall.
428 429 430 431 432 433 434 |
# File 'lib/vk/api/methods.rb', line 428 def get_comments(arguments = {}) require "vk/api/wall/methods/get_comments" method = Methods::GetComments.new(arguments) response = method.call(@client) require "vk/api/wall/responses/get_comments_response" Responses::GetCommentsResponse.new(response.deep_symbolize_keys) end |
#get_reposts(arguments = {}) ⇒ Vk::API::Wall::Responses::GetRepostsResponse
Returns information about reposts of a post on user wall or community wall.
339 340 341 342 343 344 345 |
# File 'lib/vk/api/methods.rb', line 339 def get_reposts(arguments = {}) require "vk/api/wall/methods/get_reposts" method = Methods::GetReposts.new(arguments) response = method.call(@client) require "vk/api/wall/responses/get_reposts_response" Responses::GetRepostsResponse.new(response.deep_symbolize_keys) end |
#pin(arguments = {}) ⇒ Vk::API::Wall::Responses::PinResponse
Returns Pins the post on wall.
397 398 399 400 401 402 403 |
# File 'lib/vk/api/methods.rb', line 397 def pin(arguments = {}) require "vk/api/wall/methods/pin" method = Methods::Pin.new(arguments) response = method.call(@client) require "vk/api/wall/responses/pin_response" Responses::PinResponse.new(response.deep_symbolize_keys) end |
#post(arguments = {}) ⇒ Vk::API::Wall::Responses::PostResponse
Returns Adds a new post on a user wall or community wall. Can also be used to publish suggested or scheduled posts.
311 312 313 314 315 316 317 |
# File 'lib/vk/api/methods.rb', line 311 def post(arguments = {}) require "vk/api/wall/methods/post" method = Methods::Post.new(arguments) response = method.call(@client) require "vk/api/wall/responses/post_response" Responses::PostResponse.new(response.deep_symbolize_keys) end |
#report_comment(arguments = {}) ⇒ Vk::API::Wall::Responses::ReportCommentResponse
Returns Reports (submits a complaint about) a comment on a post on a user wall or community wall.;.
510 511 512 513 514 515 516 |
# File 'lib/vk/api/methods.rb', line 510 def report_comment(arguments = {}) require "vk/api/wall/methods/report_comment" method = Methods::ReportComment.new(arguments) response = method.call(@client) require "vk/api/wall/responses/report_comment_response" Responses::ReportCommentResponse.new(response.deep_symbolize_keys) end |
#report_post(arguments = {}) ⇒ Vk::API::Wall::Responses::ReportPostResponse
Returns Reports (submits a complaint about) a post on a user wall or community wall.;.
497 498 499 500 501 502 503 |
# File 'lib/vk/api/methods.rb', line 497 def report_post(arguments = {}) require "vk/api/wall/methods/report_post" method = Methods::ReportPost.new(arguments) response = method.call(@client) require "vk/api/wall/responses/report_post_response" Responses::ReportPostResponse.new(response.deep_symbolize_keys) end |
#repost(arguments = {}) ⇒ Vk::API::Wall::Responses::RepostResponse
Returns Reposts (copies) an object to a user wall or community wall.
325 326 327 328 329 330 331 |
# File 'lib/vk/api/methods.rb', line 325 def repost(arguments = {}) require "vk/api/wall/methods/repost" method = Methods::Repost.new(arguments) response = method.call(@client) require "vk/api/wall/responses/repost_response" Responses::RepostResponse.new(response.deep_symbolize_keys) end |
#restore(arguments = {}) ⇒ Vk::API::Wall::Responses::RestoreResponse
Returns Restores a post deleted from a user wall or community wall.
385 386 387 388 389 390 391 |
# File 'lib/vk/api/methods.rb', line 385 def restore(arguments = {}) require "vk/api/wall/methods/restore" method = Methods::Restore.new(arguments) response = method.call(@client) require "vk/api/wall/responses/restore_response" Responses::RestoreResponse.new(response.deep_symbolize_keys) end |
#restore_comment(arguments = {}) ⇒ Vk::API::Wall::Responses::RestoreCommentResponse
Returns Restores a comment deleted from a user wall or community wall.;.
484 485 486 487 488 489 490 |
# File 'lib/vk/api/methods.rb', line 484 def restore_comment(arguments = {}) require "vk/api/wall/methods/restore_comment" method = Methods::RestoreComment.new(arguments) response = method.call(@client) require "vk/api/wall/responses/restore_comment_response" Responses::RestoreCommentResponse.new(response.deep_symbolize_keys) end |
#search(arguments = {}) ⇒ Vk::API::Wall::Responses::SearchResponse
Returns Allows to search posts on user or community walls.
273 274 275 276 277 278 279 |
# File 'lib/vk/api/methods.rb', line 273 def search(arguments = {}) require "vk/api/wall/methods/search" method = Methods::Search.new(arguments) response = method.call(@client) require "vk/api/wall/responses/search_response" Responses::SearchResponse.new(response.deep_symbolize_keys) end |
#unpin(arguments = {}) ⇒ Vk::API::Wall::Responses::UnpinResponse
Returns Unpins the post on wall.
409 410 411 412 413 414 415 |
# File 'lib/vk/api/methods.rb', line 409 def unpin(arguments = {}) require "vk/api/wall/methods/unpin" method = Methods::Unpin.new(arguments) response = method.call(@client) require "vk/api/wall/responses/unpin_response" Responses::UnpinResponse.new(response.deep_symbolize_keys) end |