Module: Slack::Web::Api::Endpoints::AppsManifest
- Included in:
- Slack::Web::Api::Endpoints
- Defined in:
- lib/slack/web/api/endpoints/apps_manifest.rb
Instance Method Summary collapse
-
#apps_manifest_create(options = {}) ⇒ Object
Create an app from an app manifest.
-
#apps_manifest_delete(options = {}) ⇒ Object
Permanently deletes an app created through app manifests.
-
#apps_manifest_export(options = {}) ⇒ Object
Export an app manifest from an existing app.
-
#apps_manifest_update(options = {}) ⇒ Object
Update an app from an app manifest.
-
#apps_manifest_validate(options = {}) ⇒ Object
Validate an app manifest.
Instance Method Details
#apps_manifest_create(options = {}) ⇒ Object
Create an app from an app manifest.
16 17 18 19 20 |
# File 'lib/slack/web/api/endpoints/apps_manifest.rb', line 16 def apps_manifest_create( = {}) raise ArgumentError, 'Required arguments :manifest missing' if [:manifest].nil? = (, %i[manifest]) post('apps.manifest.create', ) end |
#apps_manifest_delete(options = {}) ⇒ Object
Permanently deletes an app created through app manifests
29 30 31 32 |
# File 'lib/slack/web/api/endpoints/apps_manifest.rb', line 29 def apps_manifest_delete( = {}) raise ArgumentError, 'Required arguments :app_id missing' if [:app_id].nil? post('apps.manifest.delete', ) end |
#apps_manifest_export(options = {}) ⇒ Object
Export an app manifest from an existing app
41 42 43 44 |
# File 'lib/slack/web/api/endpoints/apps_manifest.rb', line 41 def apps_manifest_export( = {}) raise ArgumentError, 'Required arguments :app_id missing' if [:app_id].nil? post('apps.manifest.export', ) end |
#apps_manifest_update(options = {}) ⇒ Object
Update an app from an app manifest
55 56 57 58 59 60 |
# File 'lib/slack/web/api/endpoints/apps_manifest.rb', line 55 def apps_manifest_update( = {}) raise ArgumentError, 'Required arguments :app_id missing' if [:app_id].nil? raise ArgumentError, 'Required arguments :manifest missing' if [:manifest].nil? = (, %i[manifest]) post('apps.manifest.update', ) end |
#apps_manifest_validate(options = {}) ⇒ Object
Validate an app manifest
71 72 73 74 |
# File 'lib/slack/web/api/endpoints/apps_manifest.rb', line 71 def apps_manifest_validate( = {}) raise ArgumentError, 'Required arguments :manifest missing' if [:manifest].nil? post('apps.manifest.validate', ) end |