Class: SlackWebApi::AppsPermissionsScopesController
- Inherits:
-
BaseController
- Object
- BaseController
- SlackWebApi::AppsPermissionsScopesController
- Defined in:
- lib/slack_web_api/controllers/apps_permissions_scopes_controller.rb
Overview
AppsPermissionsScopesController
Constant Summary
Constants inherited from BaseController
Instance Attribute Summary
Attributes inherited from BaseController
Instance Method Summary collapse
-
#apps_permissions_scopes_list(token) ⇒ ApiResponse
Returns list of scopes this app has on a team.
Methods inherited from BaseController
#initialize, #new_parameter, #new_request_builder, #new_response_handler, user_agent, user_agent_parameters
Constructor Details
This class inherits a constructor from SlackWebApi::BaseController
Instance Method Details
#apps_permissions_scopes_list(token) ⇒ ApiResponse
Returns list of scopes this app has on a team. scope: none
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/slack_web_api/controllers/apps_permissions_scopes_controller.rb', line 13 def (token) @api_call .request(new_request_builder(HttpMethodEnum::GET, '/apps.permissions.scopes.list', Server::DEFAULT) .query_param(new_parameter(token, key: 'token') .is_required(true)) .header_param(new_parameter('application/x-www-form-urlencoded', key: 'Content-Type')) .header_param(new_parameter('application/json', key: 'accept')) .auth(Single.new('slackAuth'))) .response(new_response_handler .deserializer(APIHelper.method(:custom_type_deserializer)) .deserialize_into(ApiPermissionsScopesListSuccessSchema.method(:from_hash)) .is_api_response(true) .local_error('default', 'Typical error response', AppsPermissionsScopesListErrorSchemaException)) .execute end |