Class: Vk::API::Apps
- Inherits:
-
Schema::Namespace
- Object
- Schema::Namespace
- Vk::API::Apps
- Defined in:
- lib/vk/api/methods.rb,
lib/vk/api/objects.rb,
lib/vk/api/apps/app.rb,
lib/vk/api/responses.rb,
lib/vk/api/apps/leaderboard.rb,
lib/vk/api/apps/methods/get.rb,
lib/vk/api/apps/methods/get_score.rb,
lib/vk/api/apps/methods/get_catalog.rb,
lib/vk/api/apps/methods/send_request.rb,
lib/vk/api/apps/responses/get_response.rb,
lib/vk/api/apps/methods/get_leaderboard.rb,
lib/vk/api/apps/methods/get_friends_list.rb,
lib/vk/api/apps/methods/delete_app_requests.rb,
lib/vk/api/apps/responses/get_score_response.rb,
lib/vk/api/apps/responses/get_catalog_response.rb,
lib/vk/api/apps/responses/send_request_response.rb,
lib/vk/api/apps/responses/get_leaderboard_response.rb,
lib/vk/api/apps/responses/get_friends_list_response.rb,
lib/vk/api/apps/responses/delete_app_requests_response.rb
Defined Under Namespace
Modules: Methods, Responses Classes: App, Leaderboard
Instance Attribute Summary
Attributes inherited from Schema::Namespace
DSL collapse
-
#delete_app_requests(arguments = {}) ⇒ Vk::API::Apps::Responses::DeleteAppRequestsResponse
Deletes all request notifications from the current app.
-
#get(arguments = {}) ⇒ Vk::API::Apps::Responses::GetResponse
Returns applications data.
-
#get_catalog(arguments = {}) ⇒ Vk::API::Apps::Responses::GetCatalogResponse
Returns a list of applications (apps) available to users in the App Catalog.
-
#get_friends_list(arguments = {}) ⇒ Vk::API::Apps::Responses::GetFriendsListResponse
Creates friends list for requests and invites in current app.
-
#get_leaderboard(arguments = {}) ⇒ Vk::API::Apps::Responses::GetLeaderboardResponse
Returns players rating in the game.
-
#get_score(arguments = {}) ⇒ Vk::API::Apps::Responses::GetScoreResponse
Returns user score in app.
-
#send_request(arguments = {}) ⇒ Vk::API::Apps::Responses::SendRequestResponse
Sends a request to another user in an app that uses VK authorization.
Methods inherited from Schema::Namespace
Constructor Details
This class inherits a constructor from Vk::Schema::Namespace
Instance Method Details
#delete_app_requests(arguments = {}) ⇒ Vk::API::Apps::Responses::DeleteAppRequestsResponse
Returns Deletes all request notifications from the current app.
5319 5320 5321 5322 5323 5324 5325 |
# File 'lib/vk/api/methods.rb', line 5319 def delete_app_requests(arguments = {}) require "vk/api/apps/methods/delete_app_requests" method = Methods::DeleteAppRequests.new(arguments) response = method.call(@client) require "vk/api/apps/responses/delete_app_requests_response" Responses::DeleteAppRequestsResponse.new(response.deep_symbolize_keys) end |
#get(arguments = {}) ⇒ Vk::API::Apps::Responses::GetResponse
Returns applications data.
5293 5294 5295 5296 5297 5298 5299 |
# File 'lib/vk/api/methods.rb', line 5293 def get(arguments = {}) require "vk/api/apps/methods/get" method = Methods::Get.new(arguments) response = method.call(@client) require "vk/api/apps/responses/get_response" Responses::GetResponse.new(response.deep_symbolize_keys) end |
#get_catalog(arguments = {}) ⇒ Vk::API::Apps::Responses::GetCatalogResponse
Returns a list of applications (apps) available to users in the App Catalog.
5278 5279 5280 5281 5282 5283 5284 |
# File 'lib/vk/api/methods.rb', line 5278 def get_catalog(arguments = {}) require "vk/api/apps/methods/get_catalog" method = Methods::GetCatalog.new(arguments) response = method.call(@client) require "vk/api/apps/responses/get_catalog_response" Responses::GetCatalogResponse.new(response.deep_symbolize_keys) end |
#get_friends_list(arguments = {}) ⇒ Vk::API::Apps::Responses::GetFriendsListResponse
Returns Creates friends list for requests and invites in current app.
5332 5333 5334 5335 5336 5337 5338 |
# File 'lib/vk/api/methods.rb', line 5332 def get_friends_list(arguments = {}) require "vk/api/apps/methods/get_friends_list" method = Methods::GetFriendsList.new(arguments) response = method.call(@client) require "vk/api/apps/responses/get_friends_list_response" Responses::GetFriendsListResponse.new(response.deep_symbolize_keys) end |
#get_leaderboard(arguments = {}) ⇒ Vk::API::Apps::Responses::GetLeaderboardResponse
Returns players rating in the game.
5344 5345 5346 5347 5348 5349 5350 |
# File 'lib/vk/api/methods.rb', line 5344 def get_leaderboard(arguments = {}) require "vk/api/apps/methods/get_leaderboard" method = Methods::GetLeaderboard.new(arguments) response = method.call(@client) require "vk/api/apps/responses/get_leaderboard_response" Responses::GetLeaderboardResponse.new(response.deep_symbolize_keys) end |
#get_score(arguments = {}) ⇒ Vk::API::Apps::Responses::GetScoreResponse
Returns user score in app
5355 5356 5357 5358 5359 5360 5361 |
# File 'lib/vk/api/methods.rb', line 5355 def get_score(arguments = {}) require "vk/api/apps/methods/get_score" method = Methods::GetScore.new(arguments) response = method.call(@client) require "vk/api/apps/responses/get_score_response" Responses::GetScoreResponse.new(response.deep_symbolize_keys) end |
#send_request(arguments = {}) ⇒ Vk::API::Apps::Responses::SendRequestResponse
Returns Sends a request to another user in an app that uses VK authorization.
5309 5310 5311 5312 5313 5314 5315 |
# File 'lib/vk/api/methods.rb', line 5309 def send_request(arguments = {}) require "vk/api/apps/methods/send_request" method = Methods::SendRequest.new(arguments) response = method.call(@client) require "vk/api/apps/responses/send_request_response" Responses::SendRequestResponse.new(response.deep_symbolize_keys) end |