RainbowSubmarineTest3356::MenuApi
All URIs are relative to https://api.smooch.io/v1
Method | HTTP request | Description |
---|---|---|
delete_menu | DELETE /menu | |
get_menu | GET /menu | |
update_menu | PUT /menu |
delete_menu
MenuResponse delete_menu
Remove the specified app’s menu.
Example
# load the gem
require 'rainbow-submarine-test-3356'
# setup authorization
RainbowSubmarineTest3356.configure do |config|
# Configure API key authorization: appToken
config.api_key['app-token'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
#config.api_key_prefix['app-token'] = 'Bearer'
# Configure API key authorization: jwt
config.api_key['Authorization'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
#config.api_key_prefix['Authorization'] = 'Bearer'
end
api_instance = RainbowSubmarineTest3356::MenuApi.new
begin
result = api_instance.
p result
rescue RainbowSubmarineTest3356::ApiError => e
puts "Exception when calling MenuApi->delete_menu: #{e}"
end
Parameters
This endpoint does not need any parameter.
Return type
Authorization
HTTP request headers
- Content-Type: application/json
- Accept: application/json
get_menu
MenuResponse get_menu
Get the specified app’s menu.
Example
# load the gem
require 'rainbow-submarine-test-3356'
# setup authorization
RainbowSubmarineTest3356.configure do |config|
# Configure API key authorization: jwt
config.api_key['Authorization'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
#config.api_key_prefix['Authorization'] = 'Bearer'
end
api_instance = RainbowSubmarineTest3356::MenuApi.new
begin
result = api_instance.
p result
rescue RainbowSubmarineTest3356::ApiError => e
puts "Exception when calling MenuApi->get_menu: #{e}"
end
Parameters
This endpoint does not need any parameter.
Return type
Authorization
HTTP request headers
- Content-Type: application/json
- Accept: application/json
update_menu
MenuResponse update_menu(menu_update)
Configure the specified app’s menu.
Example
# load the gem
require 'rainbow-submarine-test-3356'
# setup authorization
RainbowSubmarineTest3356.configure do |config|
# Configure API key authorization: jwt
config.api_key['Authorization'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
#config.api_key_prefix['Authorization'] = 'Bearer'
end
api_instance = RainbowSubmarineTest3356::MenuApi.new
= RainbowSubmarineTest3356::Menu.new # Menu | Supported properties for a updateMenu request.
begin
result = api_instance.()
p result
rescue RainbowSubmarineTest3356::ApiError => e
puts "Exception when calling MenuApi->update_menu: #{e}"
end
Parameters
Name | Type | Description | Notes |
---|---|---|---|
menu_update | Menu | Supported properties for a updateMenu request. |
Return type
Authorization
HTTP request headers
- Content-Type: application/json
- Accept: application/json