All URIs are relative to https://zernio.com/api
| Method | HTTP request | Description |
|---|---|---|
| get_google_business_food_menus | GET /v1/accounts/{accountId}/gmb-food-menus | Get food menus |
| update_google_business_food_menus | PUT /v1/accounts/{accountId}/gmb-food-menus | Update food menus |
get_google_business_food_menus(account_id, opts)
Get food menus
Returns food menus for a GBP location including sections, items, pricing, and dietary info. Only for locations with food menu support.
require 'time'
require 'zernio-sdk'
# setup authorization
Zernio.configure do |config|
# Configure Bearer authorization (JWT): bearerAuth
config.access_token = 'YOUR_BEARER_TOKEN'
end
api_instance = Zernio::GMBFoodMenusApi.new
account_id = 'account_id_example' # String | The Zernio account ID (from /v1/accounts)
opts = {
location_id: 'location_id_example' # String | Override which location to query. If omitted, uses the account's selected location. Use GET /gmb-locations to list valid IDs.
}
begin
# Get food menus
result = api_instance.get_google_business_food_menus(account_id, opts)
p result
rescue Zernio::ApiError => e
puts "Error when calling GMBFoodMenusApi->get_google_business_food_menus: #{e}"
endThis returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> get_google_business_food_menus_with_http_info(account_id, opts)
begin
# Get food menus
data, status_code, headers = api_instance.get_google_business_food_menus_with_http_info(account_id, opts)
p status_code # => 2xx
p headers # => { ... }
p data # => <GetGoogleBusinessFoodMenus200Response>
rescue Zernio::ApiError => e
puts "Error when calling GMBFoodMenusApi->get_google_business_food_menus_with_http_info: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| account_id | String | The Zernio account ID (from /v1/accounts) | |
| location_id | String | Override which location to query. If omitted, uses the account's selected location. Use GET /gmb-locations to list valid IDs. | [optional] |
GetGoogleBusinessFoodMenus200Response
- Content-Type: Not defined
- Accept: application/json
update_google_business_food_menus(account_id, update_google_business_food_menus_request, opts)
Update food menus
Updates food menus for a GBP location. Send the full menus array. Use updateMask for partial updates.
require 'time'
require 'zernio-sdk'
# setup authorization
Zernio.configure do |config|
# Configure Bearer authorization (JWT): bearerAuth
config.access_token = 'YOUR_BEARER_TOKEN'
end
api_instance = Zernio::GMBFoodMenusApi.new
account_id = 'account_id_example' # String | The Zernio account ID (from /v1/accounts)
update_google_business_food_menus_request = Zernio::UpdateGoogleBusinessFoodMenusRequest.new({menus: [Zernio::FoodMenu.new({labels: [Zernio::FoodMenuLabel.new({display_name: 'display_name_example'})]})]}) # UpdateGoogleBusinessFoodMenusRequest |
opts = {
location_id: 'location_id_example' # String | Override which location to target. If omitted, uses the account's selected location. Use GET /gmb-locations to list valid IDs.
}
begin
# Update food menus
result = api_instance.update_google_business_food_menus(account_id, update_google_business_food_menus_request, opts)
p result
rescue Zernio::ApiError => e
puts "Error when calling GMBFoodMenusApi->update_google_business_food_menus: #{e}"
endThis returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> update_google_business_food_menus_with_http_info(account_id, update_google_business_food_menus_request, opts)
begin
# Update food menus
data, status_code, headers = api_instance.update_google_business_food_menus_with_http_info(account_id, update_google_business_food_menus_request, opts)
p status_code # => 2xx
p headers # => { ... }
p data # => <UpdateGoogleBusinessFoodMenus200Response>
rescue Zernio::ApiError => e
puts "Error when calling GMBFoodMenusApi->update_google_business_food_menus_with_http_info: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| account_id | String | The Zernio account ID (from /v1/accounts) | |
| update_google_business_food_menus_request | UpdateGoogleBusinessFoodMenusRequest | ||
| location_id | String | Override which location to target. If omitted, uses the account's selected location. Use GET /gmb-locations to list valid IDs. | [optional] |
UpdateGoogleBusinessFoodMenus200Response
- Content-Type: application/json
- Accept: application/json