Class: Vk::API::Users
- Inherits:
-
Schema::Namespace
- Object
- Schema::Namespace
- Vk::API::Users
- Defined in:
- lib/vk/api/methods.rb,
lib/vk/api/objects.rb,
lib/vk/api/responses.rb,
lib/vk/api/users/user.rb,
lib/vk/api/users/career.rb,
lib/vk/api/users/school.rb,
lib/vk/api/users/military.rb,
lib/vk/api/users/personal.rb,
lib/vk/api/users/relative.rb,
lib/vk/api/users/user_lim.rb,
lib/vk/api/users/user_min.rb,
lib/vk/api/users/last_seen.rb,
lib/vk/api/users/user_full.rb,
lib/vk/api/users/crop_photo.rb,
lib/vk/api/users/occupation.rb,
lib/vk/api/users/university.rb,
lib/vk/api/users/methods/get.rb,
lib/vk/api/users/users_array.rb,
lib/vk/api/users/user_counters.rb,
lib/vk/api/users/user_xtr_type.rb,
lib/vk/api/users/methods/report.rb,
lib/vk/api/users/methods/search.rb,
lib/vk/api/users/user_broadcast.rb,
lib/vk/api/users/user_xtr_counters.rb,
lib/vk/api/users/methods/get_nearby.rb,
lib/vk/api/users/user_full_xtr_type.rb,
lib/vk/api/users/methods/is_app_user.rb,
lib/vk/api/users/methods/get_followers.rb,
lib/vk/api/users/responses/get_response.rb,
lib/vk/api/users/methods/get_subscriptions.rb,
lib/vk/api/users/responses/report_response.rb,
lib/vk/api/users/responses/search_response.rb,
lib/vk/api/users/responses/get_nearby_response.rb,
lib/vk/api/users/responses/is_app_user_response.rb,
lib/vk/api/users/responses/get_followers_response.rb,
lib/vk/api/users/responses/get_subscriptions_response.rb
Defined Under Namespace
Modules: Methods, Responses Classes: Career, CropPhoto, LastSeen, Military, Occupation, Personal, Relative, School, University, User, UserBroadcast, UserCounters, UserFull, UserFullXtrType, UserLim, UserMin, UserXtrCounters, UserXtrType, UsersArray
Instance Attribute Summary
Attributes inherited from Schema::Namespace
DSL collapse
-
#get(arguments = {}) ⇒ Vk::API::Users::Responses::GetResponse
Returns detailed information on users.
-
#get_followers(arguments = {}) ⇒ Vk::API::Users::Responses::GetFollowersResponse
Returns a list of IDs of followers of the user in question, sorted by date added, most recent first.
-
#get_nearby(arguments = {}) ⇒ Vk::API::Users::Responses::GetNearbyResponse
Indexes current user location and returns nearby users.
-
#get_subscriptions(arguments = {}) ⇒ Vk::API::Users::Responses::GetSubscriptionsResponse
Returns a list of IDs of users and communities followed by the user.
-
#is_app_user(arguments = {}) ⇒ Vk::API::Users::Responses::IsAppUserResponse
Returns information whether a user installed the application.
-
#report(arguments = {}) ⇒ Vk::API::Users::Responses::ReportResponse
Reports (submits a complain about) a user.;.
-
#search(arguments = {}) ⇒ Vk::API::Users::Responses::SearchResponse
Returns a list of users matching the search criteria.
Methods inherited from Schema::Namespace
Constructor Details
This class inherits a constructor from Vk::Schema::Namespace
Instance Method Details
#get(arguments = {}) ⇒ Vk::API::Users::Responses::GetResponse
Returns detailed information on users.
27 28 29 30 31 32 33 |
# File 'lib/vk/api/methods.rb', line 27 def get(arguments = {}) require "vk/api/users/methods/get" method = Methods::Get.new(arguments) response = method.call(@client) require "vk/api/users/responses/get_response" Responses::GetResponse.new(response.deep_symbolize_keys) end |
#get_followers(arguments = {}) ⇒ Vk::API::Users::Responses::GetFollowersResponse
Returns a list of IDs of followers of the user in question, sorted by date added, most recent first.
111 112 113 114 115 116 117 |
# File 'lib/vk/api/methods.rb', line 111 def get_followers(arguments = {}) require "vk/api/users/methods/get_followers" method = Methods::GetFollowers.new(arguments) response = method.call(@client) require "vk/api/users/responses/get_followers_response" Responses::GetFollowersResponse.new(response.deep_symbolize_keys) end |
#get_nearby(arguments = {}) ⇒ Vk::API::Users::Responses::GetNearbyResponse
Returns Indexes current user location and returns nearby users.
141 142 143 144 145 146 147 |
# File 'lib/vk/api/methods.rb', line 141 def get_nearby(arguments = {}) require "vk/api/users/methods/get_nearby" method = Methods::GetNearby.new(arguments) response = method.call(@client) require "vk/api/users/responses/get_nearby_response" Responses::GetNearbyResponse.new(response.deep_symbolize_keys) end |
#get_subscriptions(arguments = {}) ⇒ Vk::API::Users::Responses::GetSubscriptionsResponse
Returns a list of IDs of users and communities followed by the user.
96 97 98 99 100 101 102 |
# File 'lib/vk/api/methods.rb', line 96 def get_subscriptions(arguments = {}) require "vk/api/users/methods/get_subscriptions" method = Methods::GetSubscriptions.new(arguments) response = method.call(@client) require "vk/api/users/responses/get_subscriptions_response" Responses::GetSubscriptionsResponse.new(response.deep_symbolize_keys) end |
#is_app_user(arguments = {}) ⇒ Vk::API::Users::Responses::IsAppUserResponse
Returns information whether a user installed the application.
81 82 83 84 85 86 87 |
# File 'lib/vk/api/methods.rb', line 81 def is_app_user(arguments = {}) require "vk/api/users/methods/is_app_user" method = Methods::IsAppUser.new(arguments) response = method.call(@client) require "vk/api/users/responses/is_app_user_response" Responses::IsAppUserResponse.new(response.deep_symbolize_keys) end |
#report(arguments = {}) ⇒ Vk::API::Users::Responses::ReportResponse
Returns Reports (submits a complain about) a user.;.
124 125 126 127 128 129 130 |
# File 'lib/vk/api/methods.rb', line 124 def report(arguments = {}) require "vk/api/users/methods/report" method = Methods::Report.new(arguments) response = method.call(@client) require "vk/api/users/responses/report_response" Responses::ReportResponse.new(response.deep_symbolize_keys) end |
#search(arguments = {}) ⇒ Vk::API::Users::Responses::SearchResponse
Returns a list of users matching the search criteria.
70 71 72 73 74 75 76 |
# File 'lib/vk/api/methods.rb', line 70 def search(arguments = {}) require "vk/api/users/methods/search" method = Methods::Search.new(arguments) response = method.call(@client) require "vk/api/users/responses/search_response" Responses::SearchResponse.new(response.deep_symbolize_keys) end |