Module: BrazeRuby::Endpoints::Catalogs
- Included in:
- API
- Defined in:
- lib/braze_ruby/endpoints/catalogs.rb
Instance Method Summary collapse
-
#create_catalog_items(catalog_name, **payload) ⇒ Object
Catalog items.
-
#create_catalogs(**payload) ⇒ Object
Catalog management.
- #delete_catalog(catalog_name) ⇒ Object
- #delete_catalog_items(catalog_name, **payload) ⇒ Object
- #list_catalogs ⇒ Object
- #update_catalog_items(catalog_name, **payload) ⇒ Object
Instance Method Details
#create_catalog_items(catalog_name, **payload) ⇒ Object
Catalog items
20 21 22 |
# File 'lib/braze_ruby/endpoints/catalogs.rb', line 20 def create_catalog_items(catalog_name, **payload) BrazeRuby::REST::CreateCatalogItems.new(api_key, braze_url, , catalog_name, **payload).perform end |
#create_catalogs(**payload) ⇒ Object
Catalog management
7 8 9 |
# File 'lib/braze_ruby/endpoints/catalogs.rb', line 7 def create_catalogs(**payload) BrazeRuby::REST::CreateCatalogs.new(api_key, braze_url, , **payload).perform end |
#delete_catalog(catalog_name) ⇒ Object
11 12 13 |
# File 'lib/braze_ruby/endpoints/catalogs.rb', line 11 def delete_catalog(catalog_name) BrazeRuby::REST::DeleteCatalog.new(api_key, braze_url, , catalog_name).perform end |
#delete_catalog_items(catalog_name, **payload) ⇒ Object
24 25 26 |
# File 'lib/braze_ruby/endpoints/catalogs.rb', line 24 def delete_catalog_items(catalog_name, **payload) BrazeRuby::REST::DeleteCatalogItems.new(api_key, braze_url, , catalog_name, **payload).perform end |
#list_catalogs ⇒ Object
15 16 17 |
# File 'lib/braze_ruby/endpoints/catalogs.rb', line 15 def list_catalogs BrazeRuby::REST::ListCatalogs.new(api_key, braze_url, ).perform end |
#update_catalog_items(catalog_name, **payload) ⇒ Object
28 29 30 |
# File 'lib/braze_ruby/endpoints/catalogs.rb', line 28 def update_catalog_items(catalog_name, **payload) BrazeRuby::REST::UpdateCatalogItems.new(api_key, braze_url, , catalog_name, **payload).perform end |