Class: Vk::API::Groups
- Inherits:
-
Schema::Namespace
- Object
- Schema::Namespace
- Vk::API::Groups
- 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/groups/group.rb,
lib/vk/api/groups/group_full.rb,
lib/vk/api/groups/group_link.rb,
lib/vk/api/groups/links_item.rb,
lib/vk/api/groups/market_info.rb,
lib/vk/api/groups/member_role.rb,
lib/vk/api/groups/methods/get.rb,
lib/vk/api/groups/groups_array.rb,
lib/vk/api/groups/methods/edit.rb,
lib/vk/api/groups/methods/join.rb,
lib/vk/api/groups/role_options.rb,
lib/vk/api/groups/subject_item.rb,
lib/vk/api/groups/contacts_item.rb,
lib/vk/api/groups/member_status.rb,
lib/vk/api/groups/methods/leave.rb,
lib/vk/api/groups/user_xtr_role.rb,
lib/vk/api/groups/counters_group.rb,
lib/vk/api/groups/group_category.rb,
lib/vk/api/groups/group_settings.rb,
lib/vk/api/groups/methods/create.rb,
lib/vk/api/groups/methods/invite.rb,
lib/vk/api/groups/methods/search.rb,
lib/vk/api/groups/methods/add_link.rb,
lib/vk/api/groups/methods/ban_user.rb,
lib/vk/api/groups/methods/edit_link.rb,
lib/vk/api/groups/methods/get_by_id.rb,
lib/vk/api/groups/methods/is_member.rb,
lib/vk/api/groups/user_xtr_ban_info.rb,
lib/vk/api/groups/member_status_full.rb,
lib/vk/api/groups/methods/edit_place.rb,
lib/vk/api/groups/methods/get_banned.rb,
lib/vk/api/groups/methods/unban_user.rb,
lib/vk/api/groups/group_category_full.rb,
lib/vk/api/groups/methods/delete_link.rb,
lib/vk/api/groups/methods/get_catalog.rb,
lib/vk/api/groups/methods/get_invites.rb,
lib/vk/api/groups/methods/get_members.rb,
lib/vk/api/groups/methods/remove_user.rb,
lib/vk/api/groups/group_xtr_invited_by.rb,
lib/vk/api/groups/methods/edit_manager.rb,
lib/vk/api/groups/methods/get_requests.rb,
lib/vk/api/groups/methods/get_settings.rb,
lib/vk/api/groups/methods/reorder_link.rb,
lib/vk/api/groups/responses/get_response.rb,
lib/vk/api/groups/methods/approve_request.rb,
lib/vk/api/groups/responses/edit_response.rb,
lib/vk/api/groups/responses/join_response.rb,
lib/vk/api/groups/methods/get_catalog_info.rb,
lib/vk/api/groups/responses/leave_response.rb,
lib/vk/api/groups/methods/get_invited_users.rb,
lib/vk/api/groups/responses/create_response.rb,
lib/vk/api/groups/responses/invite_response.rb,
lib/vk/api/groups/responses/search_response.rb,
lib/vk/api/groups/methods/set_callback_server.rb,
lib/vk/api/groups/responses/add_link_response.rb,
lib/vk/api/groups/responses/ban_user_response.rb,
lib/vk/api/groups/responses/edit_link_response.rb,
lib/vk/api/groups/responses/get_by_id_response.rb,
lib/vk/api/groups/responses/is_member_response.rb,
lib/vk/api/groups/methods/get_callback_settings.rb,
lib/vk/api/groups/methods/set_callback_settings.rb,
lib/vk/api/groups/responses/edit_place_response.rb,
lib/vk/api/groups/responses/get_banned_response.rb,
lib/vk/api/groups/responses/unban_user_response.rb,
lib/vk/api/groups/responses/delete_link_response.rb,
lib/vk/api/groups/responses/get_catalog_response.rb,
lib/vk/api/groups/responses/get_invites_response.rb,
lib/vk/api/groups/responses/get_members_response.rb,
lib/vk/api/groups/responses/remove_user_response.rb,
lib/vk/api/groups/responses/edit_manager_response.rb,
lib/vk/api/groups/responses/get_requests_response.rb,
lib/vk/api/groups/responses/get_settings_response.rb,
lib/vk/api/groups/responses/reorder_link_response.rb,
lib/vk/api/groups/responses/approve_request_response.rb,
lib/vk/api/groups/responses/get_catalog_info_response.rb,
lib/vk/api/groups/methods/get_callback_server_settings.rb,
lib/vk/api/groups/methods/set_callback_server_settings.rb,
lib/vk/api/groups/responses/get_invited_users_response.rb,
lib/vk/api/groups/methods/get_callback_confirmation_code.rb,
lib/vk/api/groups/responses/set_callback_server_response.rb,
lib/vk/api/groups/responses/get_callback_settings_response.rb,
lib/vk/api/groups/responses/set_callback_settings_response.rb,
lib/vk/api/groups/responses/get_callback_server_settings_response.rb,
lib/vk/api/groups/responses/set_callback_server_settings_response.rb,
lib/vk/api/groups/responses/get_callback_confirmation_code_response.rb
Defined Under Namespace
Modules: Methods, Responses Classes: ContactsItem, CountersGroup, Group, GroupCategory, GroupCategoryFull, GroupFull, GroupLink, GroupSettings, GroupXtrInvitedBy, GroupsArray, LinksItem, MarketInfo, MemberRole, MemberStatus, MemberStatusFull, SubjectItem, UserXtrBanInfo, UserXtrRole
Constant Summary collapse
- RoleOptions =
User's credentials as community admin
API::Types::Coercible::String.enum('moderator', 'editor', 'administrator', 'creator')
Instance Attribute Summary
Attributes inherited from Schema::Namespace
DSL collapse
-
#add_link(arguments = {}) ⇒ Vk::API::Groups::Responses::AddLinkResponse
Allows to add a link to the community.
-
#approve_request(arguments = {}) ⇒ Vk::API::Groups::Responses::ApproveRequestResponse
Allows to approve join request to the community.
-
#ban_user(arguments = {}) ⇒ Vk::API::Groups::Responses::BanUserResponse
Adds a user to a community blacklist.
-
#create(arguments = {}) ⇒ Vk::API::Groups::Responses::CreateResponse
Creates a new community.
-
#delete_link(arguments = {}) ⇒ Vk::API::Groups::Responses::DeleteLinkResponse
Allows to delete a link from the community.
-
#edit(arguments = {}) ⇒ Vk::API::Groups::Responses::EditResponse
Edits a community.
-
#edit_link(arguments = {}) ⇒ Vk::API::Groups::Responses::EditLinkResponse
Allows to edit a link in the community.
-
#edit_manager(arguments = {}) ⇒ Vk::API::Groups::Responses::EditManagerResponse
Allows to add, remove or edit the community manager .
-
#edit_place(arguments = {}) ⇒ Vk::API::Groups::Responses::EditPlaceResponse
Edits the place in community.
-
#get(arguments = {}) ⇒ Vk::API::Groups::Responses::GetResponse
Returns a list of the communities to which a user belongs.; ;.
-
#get_banned(arguments = {}) ⇒ Vk::API::Groups::Responses::GetBannedResponse
Returns a list of users on a community blacklist.
-
#get_by_id(arguments = {}) ⇒ Vk::API::Groups::Responses::GetByIdResponse
Returns information about communities by their IDs.
-
#get_callback_confirmation_code(arguments = {}) ⇒ Vk::API::Groups::Responses::GetCallbackConfirmationCodeResponse
Returns Callback API confirmation code for the community.
-
#get_callback_server_settings(arguments = {}) ⇒ Vk::API::Groups::Responses::GetCallbackServerSettingsResponse
Returns server settings for the community.
-
#get_callback_settings(arguments = {}) ⇒ Vk::API::Groups::Responses::GetCallbackSettingsResponse
Returns notifications settings.
-
#get_catalog(arguments = {}) ⇒ Vk::API::Groups::Responses::GetCatalogResponse
Returns communities list for a catalog category.
-
#get_catalog_info(arguments = {}) ⇒ Vk::API::Groups::Responses::GetCatalogInfoResponse
Returns categories list for communities catalog.
-
#get_invited_users(arguments = {}) ⇒ Vk::API::Groups::Responses::GetInvitedUsersResponse
Returns invited users list of a community.
-
#get_invites(arguments = {}) ⇒ Vk::API::Groups::Responses::GetInvitesResponse
Returns a list of invitations to join communities and events.; ;.
-
#get_members(arguments = {}) ⇒ Vk::API::Groups::Responses::GetMembersResponse
Returns a list of community members.
-
#get_requests(arguments = {}) ⇒ Vk::API::Groups::Responses::GetRequestsResponse
Returns a list of requests to the community.
-
#get_settings(arguments = {}) ⇒ Vk::API::Groups::Responses::GetSettingsResponse
Returns community settings.
-
#invite(arguments = {}) ⇒ Vk::API::Groups::Responses::InviteResponse
Allows to invite friends to the community.
-
#is_member(arguments = {}) ⇒ Vk::API::Groups::Responses::IsMemberResponse
Returns information specifying whether a user is a member of a community.
-
#join(arguments = {}) ⇒ Vk::API::Groups::Responses::JoinResponse
With this method you can join the group or public page, and also confirm your participation in an event.
-
#leave(arguments = {}) ⇒ Vk::API::Groups::Responses::LeaveResponse
With this method you can leave a group, public page, or event.; ;.
-
#remove_user(arguments = {}) ⇒ Vk::API::Groups::Responses::RemoveUserResponse
Removes a user from the community.
-
#reorder_link(arguments = {}) ⇒ Vk::API::Groups::Responses::ReorderLinkResponse
Allows to reorder links in the community.
-
#search(arguments = {}) ⇒ Vk::API::Groups::Responses::SearchResponse
Returns a list of communities matching the search criteria.
-
#set_callback_server(arguments = {}) ⇒ Vk::API::Groups::Responses::SetCallbackServerResponse
Allow to set server URL for the community.
-
#set_callback_server_settings(arguments = {}) ⇒ Vk::API::Groups::Responses::SetCallbackServerSettingsResponse
Allow to set server settings.
-
#set_callback_settings(arguments = {}) ⇒ Vk::API::Groups::Responses::SetCallbackSettingsResponse
Allow to set notifications settings for .
-
#unban_user(arguments = {}) ⇒ Vk::API::Groups::Responses::UnbanUserResponse
Removes a user from a community blacklist.
Methods inherited from Schema::Namespace
Constructor Details
This class inherits a constructor from Vk::Schema::Namespace
Instance Method Details
#add_link(arguments = {}) ⇒ Vk::API::Groups::Responses::AddLinkResponse
Returns Allows to add a link to the community.
2689 2690 2691 2692 2693 2694 2695 |
# File 'lib/vk/api/methods.rb', line 2689 def add_link(arguments = {}) require "vk/api/groups/methods/add_link" method = Methods::AddLink.new(arguments) response = method.call(@client) require "vk/api/groups/responses/add_link_response" Responses::AddLinkResponse.new(response.deep_symbolize_keys) end |
#approve_request(arguments = {}) ⇒ Vk::API::Groups::Responses::ApproveRequestResponse
Returns Allows to approve join request to the community.
2751 2752 2753 2754 2755 2756 2757 |
# File 'lib/vk/api/methods.rb', line 2751 def approve_request(arguments = {}) require "vk/api/groups/methods/approve_request" method = Methods::ApproveRequest.new(arguments) response = method.call(@client) require "vk/api/groups/responses/approve_request_response" Responses::ApproveRequestResponse.new(response.deep_symbolize_keys) end |
#ban_user(arguments = {}) ⇒ Vk::API::Groups::Responses::BanUserResponse
Returns Adds a user to a community blacklist.
2514 2515 2516 2517 2518 2519 2520 |
# File 'lib/vk/api/methods.rb', line 2514 def ban_user(arguments = {}) require "vk/api/groups/methods/ban_user" method = Methods::BanUser.new(arguments) response = method.call(@client) require "vk/api/groups/responses/ban_user_response" Responses::BanUserResponse.new(response.deep_symbolize_keys) end |
#create(arguments = {}) ⇒ Vk::API::Groups::Responses::CreateResponse
Returns Creates a new community.
2556 2557 2558 2559 2560 2561 2562 |
# File 'lib/vk/api/methods.rb', line 2556 def create(arguments = {}) require "vk/api/groups/methods/create" method = Methods::Create.new(arguments) response = method.call(@client) require "vk/api/groups/responses/create_response" Responses::CreateResponse.new(response.deep_symbolize_keys) end |
#delete_link(arguments = {}) ⇒ Vk::API::Groups::Responses::DeleteLinkResponse
Returns Allows to delete a link from the community.
2701 2702 2703 2704 2705 2706 2707 |
# File 'lib/vk/api/methods.rb', line 2701 def delete_link(arguments = {}) require "vk/api/groups/methods/delete_link" method = Methods::DeleteLink.new(arguments) response = method.call(@client) require "vk/api/groups/responses/delete_link_response" Responses::DeleteLinkResponse.new(response.deep_symbolize_keys) end |
#edit(arguments = {}) ⇒ Vk::API::Groups::Responses::EditResponse
Returns Edits a community.
2605 2606 2607 2608 2609 2610 2611 |
# File 'lib/vk/api/methods.rb', line 2605 def edit(arguments = {}) require "vk/api/groups/methods/edit" method = Methods::Edit.new(arguments) response = method.call(@client) require "vk/api/groups/responses/edit_response" Responses::EditResponse.new(response.deep_symbolize_keys) end |
#edit_link(arguments = {}) ⇒ Vk::API::Groups::Responses::EditLinkResponse
Returns Allows to edit a link in the community.
2714 2715 2716 2717 2718 2719 2720 |
# File 'lib/vk/api/methods.rb', line 2714 def edit_link(arguments = {}) require "vk/api/groups/methods/edit_link" method = Methods::EditLink.new(arguments) response = method.call(@client) require "vk/api/groups/responses/edit_link_response" Responses::EditLinkResponse.new(response.deep_symbolize_keys) end |
#edit_manager(arguments = {}) ⇒ Vk::API::Groups::Responses::EditManagerResponse
Returns Allows to add, remove or edit the community manager .
2664 2665 2666 2667 2668 2669 2670 |
# File 'lib/vk/api/methods.rb', line 2664 def edit_manager(arguments = {}) require "vk/api/groups/methods/edit_manager" method = Methods::EditManager.new(arguments) response = method.call(@client) require "vk/api/groups/responses/edit_manager_response" Responses::EditManagerResponse.new(response.deep_symbolize_keys) end |
#edit_place(arguments = {}) ⇒ Vk::API::Groups::Responses::EditPlaceResponse
Returns Edits the place in community.
2622 2623 2624 2625 2626 2627 2628 |
# File 'lib/vk/api/methods.rb', line 2622 def edit_place(arguments = {}) require "vk/api/groups/methods/edit_place" method = Methods::EditPlace.new(arguments) response = method.call(@client) require "vk/api/groups/responses/edit_place_response" Responses::EditPlaceResponse.new(response.deep_symbolize_keys) end |
#get(arguments = {}) ⇒ Vk::API::Groups::Responses::GetResponse
Returns a list of the communities to which a user belongs.; ;
2390 2391 2392 2393 2394 2395 2396 |
# File 'lib/vk/api/methods.rb', line 2390 def get(arguments = {}) require "vk/api/groups/methods/get" method = Methods::Get.new(arguments) response = method.call(@client) require "vk/api/groups/responses/get_response" Responses::GetResponse.new(response.deep_symbolize_keys) end |
#get_banned(arguments = {}) ⇒ Vk::API::Groups::Responses::GetBannedResponse
Returns a list of users on a community blacklist.
2541 2542 2543 2544 2545 2546 2547 |
# File 'lib/vk/api/methods.rb', line 2541 def get_banned(arguments = {}) require "vk/api/groups/methods/get_banned" method = Methods::GetBanned.new(arguments) response = method.call(@client) require "vk/api/groups/responses/get_banned_response" Responses::GetBannedResponse.new(response.deep_symbolize_keys) end |
#get_by_id(arguments = {}) ⇒ Vk::API::Groups::Responses::GetByIdResponse
Returns information about communities by their IDs.
2374 2375 2376 2377 2378 2379 2380 |
# File 'lib/vk/api/methods.rb', line 2374 def get_by_id(arguments = {}) require "vk/api/groups/methods/get_by_id" method = Methods::GetById.new(arguments) response = method.call(@client) require "vk/api/groups/responses/get_by_id_response" Responses::GetByIdResponse.new(response.deep_symbolize_keys) end |
#get_callback_confirmation_code(arguments = {}) ⇒ Vk::API::Groups::Responses::GetCallbackConfirmationCodeResponse
Returns Callback API confirmation code for the community.
2762 2763 2764 2765 2766 2767 2768 |
# File 'lib/vk/api/methods.rb', line 2762 def get_callback_confirmation_code(arguments = {}) require "vk/api/groups/methods/get_callback_confirmation_code" method = Methods::GetCallbackConfirmationCode.new(arguments) response = method.call(@client) require "vk/api/groups/responses/get_callback_confirmation_code_response" Responses::GetCallbackConfirmationCodeResponse.new(response.deep_symbolize_keys) end |
#get_callback_server_settings(arguments = {}) ⇒ Vk::API::Groups::Responses::GetCallbackServerSettingsResponse
Returns server settings for the community.
2773 2774 2775 2776 2777 2778 2779 |
# File 'lib/vk/api/methods.rb', line 2773 def get_callback_server_settings(arguments = {}) require "vk/api/groups/methods/get_callback_server_settings" method = Methods::GetCallbackServerSettings.new(arguments) response = method.call(@client) require "vk/api/groups/responses/get_callback_server_settings_response" Responses::GetCallbackServerSettingsResponse.new(response.deep_symbolize_keys) end |
#get_callback_settings(arguments = {}) ⇒ Vk::API::Groups::Responses::GetCallbackSettingsResponse
Returns notifications settings.
2784 2785 2786 2787 2788 2789 2790 |
# File 'lib/vk/api/methods.rb', line 2784 def get_callback_settings(arguments = {}) require "vk/api/groups/methods/get_callback_settings" method = Methods::GetCallbackSettings.new(arguments) response = method.call(@client) require "vk/api/groups/responses/get_callback_settings_response" Responses::GetCallbackSettingsResponse.new(response.deep_symbolize_keys) end |
#get_catalog(arguments = {}) ⇒ Vk::API::Groups::Responses::GetCatalogResponse
Returns communities list for a catalog category.
2460 2461 2462 2463 2464 2465 2466 |
# File 'lib/vk/api/methods.rb', line 2460 def get_catalog(arguments = {}) require "vk/api/groups/methods/get_catalog" method = Methods::GetCatalog.new(arguments) response = method.call(@client) require "vk/api/groups/responses/get_catalog_response" Responses::GetCatalogResponse.new(response.deep_symbolize_keys) end |
#get_catalog_info(arguments = {}) ⇒ Vk::API::Groups::Responses::GetCatalogInfoResponse
Returns categories list for communities catalog
2470 2471 2472 2473 2474 2475 2476 |
# File 'lib/vk/api/methods.rb', line 2470 def get_catalog_info(arguments = {}) require "vk/api/groups/methods/get_catalog_info" method = Methods::GetCatalogInfo.new(arguments) response = method.call(@client) require "vk/api/groups/responses/get_catalog_info_response" Responses::GetCatalogInfoResponse.new(response.deep_symbolize_keys) end |
#get_invited_users(arguments = {}) ⇒ Vk::API::Groups::Responses::GetInvitedUsersResponse
Returns invited users list of a community
2498 2499 2500 2501 2502 2503 2504 |
# File 'lib/vk/api/methods.rb', line 2498 def get_invited_users(arguments = {}) require "vk/api/groups/methods/get_invited_users" method = Methods::GetInvitedUsers.new(arguments) response = method.call(@client) require "vk/api/groups/responses/get_invited_users_response" Responses::GetInvitedUsersResponse.new(response.deep_symbolize_keys) end |
#get_invites(arguments = {}) ⇒ Vk::API::Groups::Responses::GetInvitesResponse
Returns a list of invitations to join communities and events.; ;
2483 2484 2485 2486 2487 2488 2489 |
# File 'lib/vk/api/methods.rb', line 2483 def get_invites(arguments = {}) require "vk/api/groups/methods/get_invites" method = Methods::GetInvites.new(arguments) response = method.call(@client) require "vk/api/groups/responses/get_invites_response" Responses::GetInvitesResponse.new(response.deep_symbolize_keys) end |
#get_members(arguments = {}) ⇒ Vk::API::Groups::Responses::GetMembersResponse
Returns a list of community members.
2406 2407 2408 2409 2410 2411 2412 |
# File 'lib/vk/api/methods.rb', line 2406 def get_members(arguments = {}) require "vk/api/groups/methods/get_members" method = Methods::GetMembers.new(arguments) response = method.call(@client) require "vk/api/groups/responses/get_members_response" Responses::GetMembersResponse.new(response.deep_symbolize_keys) end |
#get_requests(arguments = {}) ⇒ Vk::API::Groups::Responses::GetRequestsResponse
Returns a list of requests to the community.
2647 2648 2649 2650 2651 2652 2653 |
# File 'lib/vk/api/methods.rb', line 2647 def get_requests(arguments = {}) require "vk/api/groups/methods/get_requests" method = Methods::GetRequests.new(arguments) response = method.call(@client) require "vk/api/groups/responses/get_requests_response" Responses::GetRequestsResponse.new(response.deep_symbolize_keys) end |
#get_settings(arguments = {}) ⇒ Vk::API::Groups::Responses::GetSettingsResponse
Returns community settings.
2633 2634 2635 2636 2637 2638 2639 |
# File 'lib/vk/api/methods.rb', line 2633 def get_settings(arguments = {}) require "vk/api/groups/methods/get_settings" method = Methods::GetSettings.new(arguments) response = method.call(@client) require "vk/api/groups/responses/get_settings_response" Responses::GetSettingsResponse.new(response.deep_symbolize_keys) end |
#invite(arguments = {}) ⇒ Vk::API::Groups::Responses::InviteResponse
Returns Allows to invite friends to the community.
2676 2677 2678 2679 2680 2681 2682 |
# File 'lib/vk/api/methods.rb', line 2676 def invite(arguments = {}) require "vk/api/groups/methods/invite" method = Methods::Invite.new(arguments) response = method.call(@client) require "vk/api/groups/responses/invite_response" Responses::InviteResponse.new(response.deep_symbolize_keys) end |
#is_member(arguments = {}) ⇒ Vk::API::Groups::Responses::IsMemberResponse
Returns information specifying whether a user is a member of a community.
2361 2362 2363 2364 2365 2366 2367 |
# File 'lib/vk/api/methods.rb', line 2361 def is_member(arguments = {}) require "vk/api/groups/methods/is_member" method = Methods::IsMember.new(arguments) response = method.call(@client) require "vk/api/groups/responses/is_member_response" Responses::IsMemberResponse.new(response.deep_symbolize_keys) end |
#join(arguments = {}) ⇒ Vk::API::Groups::Responses::JoinResponse
Returns With this method you can join the group or public page, and also confirm your participation in an event.
2418 2419 2420 2421 2422 2423 2424 |
# File 'lib/vk/api/methods.rb', line 2418 def join(arguments = {}) require "vk/api/groups/methods/join" method = Methods::Join.new(arguments) response = method.call(@client) require "vk/api/groups/responses/join_response" Responses::JoinResponse.new(response.deep_symbolize_keys) end |
#leave(arguments = {}) ⇒ Vk::API::Groups::Responses::LeaveResponse
Returns With this method you can leave a group, public page, or event.; ;.
2429 2430 2431 2432 2433 2434 2435 |
# File 'lib/vk/api/methods.rb', line 2429 def leave(arguments = {}) require "vk/api/groups/methods/leave" method = Methods::Leave.new(arguments) response = method.call(@client) require "vk/api/groups/responses/leave_response" Responses::LeaveResponse.new(response.deep_symbolize_keys) end |
#remove_user(arguments = {}) ⇒ Vk::API::Groups::Responses::RemoveUserResponse
Returns Removes a user from the community.
2739 2740 2741 2742 2743 2744 2745 |
# File 'lib/vk/api/methods.rb', line 2739 def remove_user(arguments = {}) require "vk/api/groups/methods/remove_user" method = Methods::RemoveUser.new(arguments) response = method.call(@client) require "vk/api/groups/responses/remove_user_response" Responses::RemoveUserResponse.new(response.deep_symbolize_keys) end |
#reorder_link(arguments = {}) ⇒ Vk::API::Groups::Responses::ReorderLinkResponse
Returns Allows to reorder links in the community.
2727 2728 2729 2730 2731 2732 2733 |
# File 'lib/vk/api/methods.rb', line 2727 def reorder_link(arguments = {}) require "vk/api/groups/methods/reorder_link" method = Methods::ReorderLink.new(arguments) response = method.call(@client) require "vk/api/groups/responses/reorder_link_response" Responses::ReorderLinkResponse.new(response.deep_symbolize_keys) end |
#search(arguments = {}) ⇒ Vk::API::Groups::Responses::SearchResponse
Returns a list of communities matching the search criteria.
2448 2449 2450 2451 2452 2453 2454 |
# File 'lib/vk/api/methods.rb', line 2448 def search(arguments = {}) require "vk/api/groups/methods/search" method = Methods::Search.new(arguments) response = method.call(@client) require "vk/api/groups/responses/search_response" Responses::SearchResponse.new(response.deep_symbolize_keys) end |
#set_callback_server(arguments = {}) ⇒ Vk::API::Groups::Responses::SetCallbackServerResponse
Returns Allow to set server URL for the community. ; ;.
2796 2797 2798 2799 2800 2801 2802 |
# File 'lib/vk/api/methods.rb', line 2796 def set_callback_server(arguments = {}) require "vk/api/groups/methods/set_callback_server" method = Methods::SetCallbackServer.new(arguments) response = method.call(@client) require "vk/api/groups/responses/set_callback_server_response" Responses::SetCallbackServerResponse.new(response.deep_symbolize_keys) end |
#set_callback_server_settings(arguments = {}) ⇒ Vk::API::Groups::Responses::SetCallbackServerSettingsResponse
Returns Allow to set server settings.
2808 2809 2810 2811 2812 2813 2814 |
# File 'lib/vk/api/methods.rb', line 2808 def set_callback_server_settings(arguments = {}) require "vk/api/groups/methods/set_callback_server_settings" method = Methods::SetCallbackServerSettings.new(arguments) response = method.call(@client) require "vk/api/groups/responses/set_callback_server_settings_response" Responses::SetCallbackServerSettingsResponse.new(response.deep_symbolize_keys) end |
#set_callback_settings(arguments = {}) ⇒ Vk::API::Groups::Responses::SetCallbackSettingsResponse
Returns Allow to set notifications settings for .
2835 2836 2837 2838 2839 2840 2841 |
# File 'lib/vk/api/methods.rb', line 2835 def set_callback_settings(arguments = {}) require "vk/api/groups/methods/set_callback_settings" method = Methods::SetCallbackSettings.new(arguments) response = method.call(@client) require "vk/api/groups/responses/set_callback_settings_response" Responses::SetCallbackSettingsResponse.new(response.deep_symbolize_keys) end |
#unban_user(arguments = {}) ⇒ Vk::API::Groups::Responses::UnbanUserResponse
Returns Removes a user from a community blacklist.
2526 2527 2528 2529 2530 2531 2532 |
# File 'lib/vk/api/methods.rb', line 2526 def unban_user(arguments = {}) require "vk/api/groups/methods/unban_user" method = Methods::UnbanUser.new(arguments) response = method.call(@client) require "vk/api/groups/responses/unban_user_response" Responses::UnbanUserResponse.new(response.deep_symbolize_keys) end |