All URIs are relative to https://localhost/api/v5
Method | HTTP request | Description |
---|---|---|
add_element | POST /megamenus/menu/{mid}/{page}/{y}/{x} | Add element |
close_renderer | DELETE /megamenus/render/{mid}/{viewer} | Close renderer |
create_menu | POST /megamenus/menu | Create menu |
create_renderer | POST /megamenus/render/{mid} | Create menu |
delete_element | DELETE /megamenus/menu/{mid}/{page}/{y}/{x} | Delete menu |
delete_menu | DELETE /megamenus/menu/{mid} | Delete menu |
delete_page | DELETE /megamenus/menu/{mid}/{page} | Delete a page of elements |
delete_renderer | DELETE /megamenus/renderer/{mid} | Delete menu |
find_renderer | GET /megamenus/render/find/{viewer} | Get the renderer for viewer |
get_element | GET /megamenus/menu/{mid}/{page}/{y}/{x} | Get menu |
get_menu | GET /megamenus/menu/{mid} | Get menu |
get_page | GET /megamenus/menu/{mid}/{page} | Reads a single page of elements |
get_renderer | GET /megamenus/render/{mid} | Get the renderer for this menu |
list_menus | GET /megamenus/menu | List menus |
list_renderer | GET /megamenus/render | List renderer |
open_renderer | PUT /megamenus/render/{mid}/{viewer} | Open renderer |
set_element | PUT /megamenus/menu/{mid}/{page}/{y}/{x} | Update menu |
set_menu | PUT /megamenus/menu/{mid} | Update menu |
MegaMenusElement add_element(mid, page, y, x, body=body, details=details, accept=accept, pretty=pretty)
Add element
Adds an element to the menu Required permissions: - megamenus.megamenus.menu.edit
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: ApiKeyHeader
configuration = swagger_client.Configuration()
configuration.api_key['X-WebAPI-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-WebAPI-Key'] = 'Bearer'
# Configure API key authorization: ApiKeyQuery
configuration = swagger_client.Configuration()
configuration.api_key['key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['key'] = 'Bearer'
# create an instance of the API class
api_instance = swagger_client.InventoryApi(swagger_client.ApiClient(configuration))
mid = 'mid_example' # str |
page = 56 # int |
y = 56 # int |
x = 56 # int |
body = swagger_client.MegaMenusElement() # MegaMenusElement | (optional)
details = true # bool | Add to include additional details, omit or false otherwise (optional)
accept = 'accept_example' # str | Override the 'Accept' request header (useful for debugging your requests) (optional)
pretty = true # bool | Add to make the Web-API pretty print the response (useful for debugging your requests) (optional)
try:
# Add element
api_response = api_instance.add_element(mid, page, y, x, body=body, details=details, accept=accept, pretty=pretty)
pprint(api_response)
except ApiException as e:
print("Exception when calling InventoryApi->add_element: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
mid | str | ||
page | int | ||
y | int | ||
x | int | ||
body | MegaMenusElement | [optional] | |
details | bool | Add to include additional details, omit or false otherwise | [optional] |
accept | str | Override the 'Accept' request header (useful for debugging your requests) | [optional] |
pretty | bool | Add to make the Web-API pretty print the response (useful for debugging your requests) | [optional] |
- Content-Type: application/json, application/xml
- Accept: application/json, application/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
MegaMenusRenderer close_renderer(mid, viewer, details=details, accept=accept, pretty=pretty)
Close renderer
Close the renderer for this viewer Required permissions: - megamenus.megamenus.renderer.close
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: ApiKeyHeader
configuration = swagger_client.Configuration()
configuration.api_key['X-WebAPI-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-WebAPI-Key'] = 'Bearer'
# Configure API key authorization: ApiKeyQuery
configuration = swagger_client.Configuration()
configuration.api_key['key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['key'] = 'Bearer'
# create an instance of the API class
api_instance = swagger_client.InventoryApi(swagger_client.ApiClient(configuration))
mid = 'mid_example' # str |
viewer = 'viewer_example' # str |
details = true # bool | Add to include additional details, omit or false otherwise (optional)
accept = 'accept_example' # str | Override the 'Accept' request header (useful for debugging your requests) (optional)
pretty = true # bool | Add to make the Web-API pretty print the response (useful for debugging your requests) (optional)
try:
# Close renderer
api_response = api_instance.close_renderer(mid, viewer, details=details, accept=accept, pretty=pretty)
pprint(api_response)
except ApiException as e:
print("Exception when calling InventoryApi->close_renderer: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
mid | str | ||
viewer | str | ||
details | bool | Add to include additional details, omit or false otherwise | [optional] |
accept | str | Override the 'Accept' request header (useful for debugging your requests) | [optional] |
pretty | bool | Add to make the Web-API pretty print the response (useful for debugging your requests) | [optional] |
- Content-Type: application/json, application/xml
- Accept: application/json, application/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
MenuMenusMenu create_menu(body=body, details=details, accept=accept, pretty=pretty)
Create menu
Creates a new menu Required permissions: - megamenus.megamenus.menu.create
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: ApiKeyHeader
configuration = swagger_client.Configuration()
configuration.api_key['X-WebAPI-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-WebAPI-Key'] = 'Bearer'
# Configure API key authorization: ApiKeyQuery
configuration = swagger_client.Configuration()
configuration.api_key['key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['key'] = 'Bearer'
# create an instance of the API class
api_instance = swagger_client.InventoryApi(swagger_client.ApiClient(configuration))
body = swagger_client.MenuMenusMenu() # MenuMenusMenu | (optional)
details = true # bool | Add to include additional details, omit or false otherwise (optional)
accept = 'accept_example' # str | Override the 'Accept' request header (useful for debugging your requests) (optional)
pretty = true # bool | Add to make the Web-API pretty print the response (useful for debugging your requests) (optional)
try:
# Create menu
api_response = api_instance.create_menu(body=body, details=details, accept=accept, pretty=pretty)
pprint(api_response)
except ApiException as e:
print("Exception when calling InventoryApi->create_menu: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
body | MenuMenusMenu | [optional] | |
details | bool | Add to include additional details, omit or false otherwise | [optional] |
accept | str | Override the 'Accept' request header (useful for debugging your requests) | [optional] |
pretty | bool | Add to make the Web-API pretty print the response (useful for debugging your requests) | [optional] |
- Content-Type: application/json, application/xml
- Accept: application/json, application/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
MegaMenusRenderer create_renderer(mid, body=body, details=details, accept=accept, pretty=pretty)
Create menu
Creates a new menu Required permissions: - megamenus.megamenus.renderer.create
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: ApiKeyHeader
configuration = swagger_client.Configuration()
configuration.api_key['X-WebAPI-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-WebAPI-Key'] = 'Bearer'
# Configure API key authorization: ApiKeyQuery
configuration = swagger_client.Configuration()
configuration.api_key['key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['key'] = 'Bearer'
# create an instance of the API class
api_instance = swagger_client.InventoryApi(swagger_client.ApiClient(configuration))
mid = 'mid_example' # str |
body = swagger_client.MegaMenusRenderer() # MegaMenusRenderer | (optional)
details = true # bool | Add to include additional details, omit or false otherwise (optional)
accept = 'accept_example' # str | Override the 'Accept' request header (useful for debugging your requests) (optional)
pretty = true # bool | Add to make the Web-API pretty print the response (useful for debugging your requests) (optional)
try:
# Create menu
api_response = api_instance.create_renderer(mid, body=body, details=details, accept=accept, pretty=pretty)
pprint(api_response)
except ApiException as e:
print("Exception when calling InventoryApi->create_renderer: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
mid | str | ||
body | MegaMenusRenderer | [optional] | |
details | bool | Add to include additional details, omit or false otherwise | [optional] |
accept | str | Override the 'Accept' request header (useful for debugging your requests) | [optional] |
pretty | bool | Add to make the Web-API pretty print the response (useful for debugging your requests) | [optional] |
- Content-Type: application/json, application/xml
- Accept: application/json, application/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
MegaMenusElement delete_element(mid, page, x, y, details=details, accept=accept, pretty=pretty)
Delete menu
Deletes a menu element Required permissions: - megamenus.megamenus.menu.edit
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: ApiKeyHeader
configuration = swagger_client.Configuration()
configuration.api_key['X-WebAPI-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-WebAPI-Key'] = 'Bearer'
# Configure API key authorization: ApiKeyQuery
configuration = swagger_client.Configuration()
configuration.api_key['key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['key'] = 'Bearer'
# create an instance of the API class
api_instance = swagger_client.InventoryApi(swagger_client.ApiClient(configuration))
mid = 'mid_example' # str |
page = 56 # int |
x = 56 # int |
y = 56 # int |
details = true # bool | Add to include additional details, omit or false otherwise (optional)
accept = 'accept_example' # str | Override the 'Accept' request header (useful for debugging your requests) (optional)
pretty = true # bool | Add to make the Web-API pretty print the response (useful for debugging your requests) (optional)
try:
# Delete menu
api_response = api_instance.delete_element(mid, page, x, y, details=details, accept=accept, pretty=pretty)
pprint(api_response)
except ApiException as e:
print("Exception when calling InventoryApi->delete_element: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
mid | str | ||
page | int | ||
x | int | ||
y | int | ||
details | bool | Add to include additional details, omit or false otherwise | [optional] |
accept | str | Override the 'Accept' request header (useful for debugging your requests) | [optional] |
pretty | bool | Add to make the Web-API pretty print the response (useful for debugging your requests) | [optional] |
- Content-Type: application/json, application/xml
- Accept: application/json, application/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
MenuMenusMenu delete_menu(mid, details=details, accept=accept, pretty=pretty)
Delete menu
Deletes a menu Required permissions: - megamenus.megamenus.menu.delete
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: ApiKeyHeader
configuration = swagger_client.Configuration()
configuration.api_key['X-WebAPI-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-WebAPI-Key'] = 'Bearer'
# Configure API key authorization: ApiKeyQuery
configuration = swagger_client.Configuration()
configuration.api_key['key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['key'] = 'Bearer'
# create an instance of the API class
api_instance = swagger_client.InventoryApi(swagger_client.ApiClient(configuration))
mid = 'mid_example' # str |
details = true # bool | Add to include additional details, omit or false otherwise (optional)
accept = 'accept_example' # str | Override the 'Accept' request header (useful for debugging your requests) (optional)
pretty = true # bool | Add to make the Web-API pretty print the response (useful for debugging your requests) (optional)
try:
# Delete menu
api_response = api_instance.delete_menu(mid, details=details, accept=accept, pretty=pretty)
pprint(api_response)
except ApiException as e:
print("Exception when calling InventoryApi->delete_menu: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
mid | str | ||
details | bool | Add to include additional details, omit or false otherwise | [optional] |
accept | str | Override the 'Accept' request header (useful for debugging your requests) | [optional] |
pretty | bool | Add to make the Web-API pretty print the response (useful for debugging your requests) | [optional] |
- Content-Type: application/json, application/xml
- Accept: application/json, application/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
MenuMenusMenu delete_page(mid, page, details=details, accept=accept, pretty=pretty)
Delete a page of elements
**Required permissions:** - **megamenus.megamenus.menu.delete**
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: ApiKeyHeader
configuration = swagger_client.Configuration()
configuration.api_key['X-WebAPI-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-WebAPI-Key'] = 'Bearer'
# Configure API key authorization: ApiKeyQuery
configuration = swagger_client.Configuration()
configuration.api_key['key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['key'] = 'Bearer'
# create an instance of the API class
api_instance = swagger_client.InventoryApi(swagger_client.ApiClient(configuration))
mid = 'mid_example' # str |
page = 56 # int |
details = true # bool | Add to include additional details, omit or false otherwise (optional)
accept = 'accept_example' # str | Override the 'Accept' request header (useful for debugging your requests) (optional)
pretty = true # bool | Add to make the Web-API pretty print the response (useful for debugging your requests) (optional)
try:
# Delete a page of elements
api_response = api_instance.delete_page(mid, page, details=details, accept=accept, pretty=pretty)
pprint(api_response)
except ApiException as e:
print("Exception when calling InventoryApi->delete_page: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
mid | str | ||
page | int | ||
details | bool | Add to include additional details, omit or false otherwise | [optional] |
accept | str | Override the 'Accept' request header (useful for debugging your requests) | [optional] |
pretty | bool | Add to make the Web-API pretty print the response (useful for debugging your requests) | [optional] |
- Content-Type: application/json, application/xml
- Accept: application/json, application/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
MegaMenusRenderer delete_renderer(mid, details=details, accept=accept, pretty=pretty)
Delete menu
Closes this renderer for all currently active viewers Required permissions: - megamenus.megamenus.renderer.close
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: ApiKeyHeader
configuration = swagger_client.Configuration()
configuration.api_key['X-WebAPI-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-WebAPI-Key'] = 'Bearer'
# Configure API key authorization: ApiKeyQuery
configuration = swagger_client.Configuration()
configuration.api_key['key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['key'] = 'Bearer'
# create an instance of the API class
api_instance = swagger_client.InventoryApi(swagger_client.ApiClient(configuration))
mid = 'mid_example' # str |
details = true # bool | Add to include additional details, omit or false otherwise (optional)
accept = 'accept_example' # str | Override the 'Accept' request header (useful for debugging your requests) (optional)
pretty = true # bool | Add to make the Web-API pretty print the response (useful for debugging your requests) (optional)
try:
# Delete menu
api_response = api_instance.delete_renderer(mid, details=details, accept=accept, pretty=pretty)
pprint(api_response)
except ApiException as e:
print("Exception when calling InventoryApi->delete_renderer: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
mid | str | ||
details | bool | Add to include additional details, omit or false otherwise | [optional] |
accept | str | Override the 'Accept' request header (useful for debugging your requests) | [optional] |
pretty | bool | Add to make the Web-API pretty print the response (useful for debugging your requests) | [optional] |
- Content-Type: application/json, application/xml
- Accept: application/json, application/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
MegaMenusRenderer find_renderer(viewer, details=details, accept=accept, pretty=pretty)
Get the renderer for viewer
Returns the renderer the viewer is currently subject to Required permissions: - megamenus.megamenus.renderer.get
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: ApiKeyHeader
configuration = swagger_client.Configuration()
configuration.api_key['X-WebAPI-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-WebAPI-Key'] = 'Bearer'
# Configure API key authorization: ApiKeyQuery
configuration = swagger_client.Configuration()
configuration.api_key['key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['key'] = 'Bearer'
# create an instance of the API class
api_instance = swagger_client.InventoryApi(swagger_client.ApiClient(configuration))
viewer = 'viewer_example' # str |
details = true # bool | Add to include additional details, omit or false otherwise (optional)
accept = 'accept_example' # str | Override the 'Accept' request header (useful for debugging your requests) (optional)
pretty = true # bool | Add to make the Web-API pretty print the response (useful for debugging your requests) (optional)
try:
# Get the renderer for viewer
api_response = api_instance.find_renderer(viewer, details=details, accept=accept, pretty=pretty)
pprint(api_response)
except ApiException as e:
print("Exception when calling InventoryApi->find_renderer: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
viewer | str | ||
details | bool | Add to include additional details, omit or false otherwise | [optional] |
accept | str | Override the 'Accept' request header (useful for debugging your requests) | [optional] |
pretty | bool | Add to make the Web-API pretty print the response (useful for debugging your requests) | [optional] |
- Content-Type: application/json, application/xml
- Accept: application/json, application/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
MegaMenusElement get_element(mid, page, x, y, details=details, accept=accept, pretty=pretty)
Get menu
Read a menu with all elements Required permissions: - megamenus.megamenus.menu.edit
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: ApiKeyHeader
configuration = swagger_client.Configuration()
configuration.api_key['X-WebAPI-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-WebAPI-Key'] = 'Bearer'
# Configure API key authorization: ApiKeyQuery
configuration = swagger_client.Configuration()
configuration.api_key['key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['key'] = 'Bearer'
# create an instance of the API class
api_instance = swagger_client.InventoryApi(swagger_client.ApiClient(configuration))
mid = 'mid_example' # str |
page = 56 # int |
x = 56 # int |
y = 56 # int |
details = true # bool | Add to include additional details, omit or false otherwise (optional)
accept = 'accept_example' # str | Override the 'Accept' request header (useful for debugging your requests) (optional)
pretty = true # bool | Add to make the Web-API pretty print the response (useful for debugging your requests) (optional)
try:
# Get menu
api_response = api_instance.get_element(mid, page, x, y, details=details, accept=accept, pretty=pretty)
pprint(api_response)
except ApiException as e:
print("Exception when calling InventoryApi->get_element: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
mid | str | ||
page | int | ||
x | int | ||
y | int | ||
details | bool | Add to include additional details, omit or false otherwise | [optional] |
accept | str | Override the 'Accept' request header (useful for debugging your requests) | [optional] |
pretty | bool | Add to make the Web-API pretty print the response (useful for debugging your requests) | [optional] |
- Content-Type: application/json, application/xml
- Accept: application/json, application/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
MenuMenusMenu get_menu(mid, details=details, accept=accept, pretty=pretty)
Get menu
Read a menu with all elements Required permissions: - megamenus.megamenus.menu.get
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: ApiKeyHeader
configuration = swagger_client.Configuration()
configuration.api_key['X-WebAPI-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-WebAPI-Key'] = 'Bearer'
# Configure API key authorization: ApiKeyQuery
configuration = swagger_client.Configuration()
configuration.api_key['key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['key'] = 'Bearer'
# create an instance of the API class
api_instance = swagger_client.InventoryApi(swagger_client.ApiClient(configuration))
mid = 'mid_example' # str |
details = true # bool | Add to include additional details, omit or false otherwise (optional)
accept = 'accept_example' # str | Override the 'Accept' request header (useful for debugging your requests) (optional)
pretty = true # bool | Add to make the Web-API pretty print the response (useful for debugging your requests) (optional)
try:
# Get menu
api_response = api_instance.get_menu(mid, details=details, accept=accept, pretty=pretty)
pprint(api_response)
except ApiException as e:
print("Exception when calling InventoryApi->get_menu: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
mid | str | ||
details | bool | Add to include additional details, omit or false otherwise | [optional] |
accept | str | Override the 'Accept' request header (useful for debugging your requests) | [optional] |
pretty | bool | Add to make the Web-API pretty print the response (useful for debugging your requests) | [optional] |
- Content-Type: application/json, application/xml
- Accept: application/json, application/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[MegaMenusElement] get_page(mid, page, details=details, accept=accept, pretty=pretty)
Reads a single page of elements
**Required permissions:** - **megamenus.megamenus.menu.get**
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: ApiKeyHeader
configuration = swagger_client.Configuration()
configuration.api_key['X-WebAPI-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-WebAPI-Key'] = 'Bearer'
# Configure API key authorization: ApiKeyQuery
configuration = swagger_client.Configuration()
configuration.api_key['key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['key'] = 'Bearer'
# create an instance of the API class
api_instance = swagger_client.InventoryApi(swagger_client.ApiClient(configuration))
mid = 'mid_example' # str |
page = 56 # int |
details = true # bool | Add to include additional details, omit or false otherwise (optional)
accept = 'accept_example' # str | Override the 'Accept' request header (useful for debugging your requests) (optional)
pretty = true # bool | Add to make the Web-API pretty print the response (useful for debugging your requests) (optional)
try:
# Reads a single page of elements
api_response = api_instance.get_page(mid, page, details=details, accept=accept, pretty=pretty)
pprint(api_response)
except ApiException as e:
print("Exception when calling InventoryApi->get_page: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
mid | str | ||
page | int | ||
details | bool | Add to include additional details, omit or false otherwise | [optional] |
accept | str | Override the 'Accept' request header (useful for debugging your requests) | [optional] |
pretty | bool | Add to make the Web-API pretty print the response (useful for debugging your requests) | [optional] |
- Content-Type: application/json, application/xml
- Accept: application/json, application/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
MegaMenusRenderer get_renderer(mid, details=details, accept=accept, pretty=pretty)
Get the renderer for this menu
**Required permissions:** - **megamenus.megamenus.renderer.get**
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: ApiKeyHeader
configuration = swagger_client.Configuration()
configuration.api_key['X-WebAPI-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-WebAPI-Key'] = 'Bearer'
# Configure API key authorization: ApiKeyQuery
configuration = swagger_client.Configuration()
configuration.api_key['key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['key'] = 'Bearer'
# create an instance of the API class
api_instance = swagger_client.InventoryApi(swagger_client.ApiClient(configuration))
mid = 'mid_example' # str |
details = true # bool | Add to include additional details, omit or false otherwise (optional)
accept = 'accept_example' # str | Override the 'Accept' request header (useful for debugging your requests) (optional)
pretty = true # bool | Add to make the Web-API pretty print the response (useful for debugging your requests) (optional)
try:
# Get the renderer for this menu
api_response = api_instance.get_renderer(mid, details=details, accept=accept, pretty=pretty)
pprint(api_response)
except ApiException as e:
print("Exception when calling InventoryApi->get_renderer: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
mid | str | ||
details | bool | Add to include additional details, omit or false otherwise | [optional] |
accept | str | Override the 'Accept' request header (useful for debugging your requests) | [optional] |
pretty | bool | Add to make the Web-API pretty print the response (useful for debugging your requests) | [optional] |
- Content-Type: application/json, application/xml
- Accept: application/json, application/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[MenuMenusMenu] list_menus(details=details, accept=accept, pretty=pretty)
List menus
Returns a list of all menus Required permissions: - megamenus.megamenus.menu.list
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: ApiKeyHeader
configuration = swagger_client.Configuration()
configuration.api_key['X-WebAPI-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-WebAPI-Key'] = 'Bearer'
# Configure API key authorization: ApiKeyQuery
configuration = swagger_client.Configuration()
configuration.api_key['key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['key'] = 'Bearer'
# create an instance of the API class
api_instance = swagger_client.InventoryApi(swagger_client.ApiClient(configuration))
details = true # bool | Add to include additional details, omit or false otherwise (optional)
accept = 'accept_example' # str | Override the 'Accept' request header (useful for debugging your requests) (optional)
pretty = true # bool | Add to make the Web-API pretty print the response (useful for debugging your requests) (optional)
try:
# List menus
api_response = api_instance.list_menus(details=details, accept=accept, pretty=pretty)
pprint(api_response)
except ApiException as e:
print("Exception when calling InventoryApi->list_menus: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
details | bool | Add to include additional details, omit or false otherwise | [optional] |
accept | str | Override the 'Accept' request header (useful for debugging your requests) | [optional] |
pretty | bool | Add to make the Web-API pretty print the response (useful for debugging your requests) | [optional] |
- Content-Type: application/json, application/xml
- Accept: application/json, application/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
list[MegaMenusRenderer] list_renderer(details=details, accept=accept, pretty=pretty)
List renderer
Returns a list of all renderer for menus created with WebAPI Required permissions: - megamenus.megamenus.renderer.list
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: ApiKeyHeader
configuration = swagger_client.Configuration()
configuration.api_key['X-WebAPI-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-WebAPI-Key'] = 'Bearer'
# Configure API key authorization: ApiKeyQuery
configuration = swagger_client.Configuration()
configuration.api_key['key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['key'] = 'Bearer'
# create an instance of the API class
api_instance = swagger_client.InventoryApi(swagger_client.ApiClient(configuration))
details = true # bool | Add to include additional details, omit or false otherwise (optional)
accept = 'accept_example' # str | Override the 'Accept' request header (useful for debugging your requests) (optional)
pretty = true # bool | Add to make the Web-API pretty print the response (useful for debugging your requests) (optional)
try:
# List renderer
api_response = api_instance.list_renderer(details=details, accept=accept, pretty=pretty)
pprint(api_response)
except ApiException as e:
print("Exception when calling InventoryApi->list_renderer: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
details | bool | Add to include additional details, omit or false otherwise | [optional] |
accept | str | Override the 'Accept' request header (useful for debugging your requests) | [optional] |
pretty | bool | Add to make the Web-API pretty print the response (useful for debugging your requests) | [optional] |
- Content-Type: application/json, application/xml
- Accept: application/json, application/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
MegaMenusRenderer open_renderer(mid, viewer, details=details, accept=accept, pretty=pretty)
Open renderer
Opens the renderer to viewer, effectively opening the menu Required permissions: - megamenus.megamenus.renderer.open
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: ApiKeyHeader
configuration = swagger_client.Configuration()
configuration.api_key['X-WebAPI-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-WebAPI-Key'] = 'Bearer'
# Configure API key authorization: ApiKeyQuery
configuration = swagger_client.Configuration()
configuration.api_key['key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['key'] = 'Bearer'
# create an instance of the API class
api_instance = swagger_client.InventoryApi(swagger_client.ApiClient(configuration))
mid = 'mid_example' # str |
viewer = 'viewer_example' # str |
details = true # bool | Add to include additional details, omit or false otherwise (optional)
accept = 'accept_example' # str | Override the 'Accept' request header (useful for debugging your requests) (optional)
pretty = true # bool | Add to make the Web-API pretty print the response (useful for debugging your requests) (optional)
try:
# Open renderer
api_response = api_instance.open_renderer(mid, viewer, details=details, accept=accept, pretty=pretty)
pprint(api_response)
except ApiException as e:
print("Exception when calling InventoryApi->open_renderer: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
mid | str | ||
viewer | str | ||
details | bool | Add to include additional details, omit or false otherwise | [optional] |
accept | str | Override the 'Accept' request header (useful for debugging your requests) | [optional] |
pretty | bool | Add to make the Web-API pretty print the response (useful for debugging your requests) | [optional] |
- Content-Type: application/json, application/xml
- Accept: application/json, application/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
MegaMenusElement set_element(mid, page, x, y, body=body, details=details, accept=accept, pretty=pretty)
Update menu
Update a menu element Required permissions: - megamenus.megamenus.menu.edit
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: ApiKeyHeader
configuration = swagger_client.Configuration()
configuration.api_key['X-WebAPI-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-WebAPI-Key'] = 'Bearer'
# Configure API key authorization: ApiKeyQuery
configuration = swagger_client.Configuration()
configuration.api_key['key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['key'] = 'Bearer'
# create an instance of the API class
api_instance = swagger_client.InventoryApi(swagger_client.ApiClient(configuration))
mid = 'mid_example' # str |
page = 56 # int |
x = 56 # int |
y = 56 # int |
body = swagger_client.MegaMenusElement() # MegaMenusElement | (optional)
details = true # bool | Add to include additional details, omit or false otherwise (optional)
accept = 'accept_example' # str | Override the 'Accept' request header (useful for debugging your requests) (optional)
pretty = true # bool | Add to make the Web-API pretty print the response (useful for debugging your requests) (optional)
try:
# Update menu
api_response = api_instance.set_element(mid, page, x, y, body=body, details=details, accept=accept, pretty=pretty)
pprint(api_response)
except ApiException as e:
print("Exception when calling InventoryApi->set_element: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
mid | str | ||
page | int | ||
x | int | ||
y | int | ||
body | MegaMenusElement | [optional] | |
details | bool | Add to include additional details, omit or false otherwise | [optional] |
accept | str | Override the 'Accept' request header (useful for debugging your requests) | [optional] |
pretty | bool | Add to make the Web-API pretty print the response (useful for debugging your requests) | [optional] |
- Content-Type: application/json, application/xml
- Accept: application/json, application/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]
MenuMenusMenu set_menu(mid, body=body, details=details, accept=accept, pretty=pretty)
Update menu
This will only update the title, elements have to be addressed through the respective endpoints Required permissions: - megamenus.megamenus.menu.update
from __future__ import print_function
import time
import swagger_client
from swagger_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: ApiKeyHeader
configuration = swagger_client.Configuration()
configuration.api_key['X-WebAPI-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-WebAPI-Key'] = 'Bearer'
# Configure API key authorization: ApiKeyQuery
configuration = swagger_client.Configuration()
configuration.api_key['key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['key'] = 'Bearer'
# create an instance of the API class
api_instance = swagger_client.InventoryApi(swagger_client.ApiClient(configuration))
mid = 'mid_example' # str |
body = swagger_client.MenuMenusMenu() # MenuMenusMenu | (optional)
details = true # bool | Add to include additional details, omit or false otherwise (optional)
accept = 'accept_example' # str | Override the 'Accept' request header (useful for debugging your requests) (optional)
pretty = true # bool | Add to make the Web-API pretty print the response (useful for debugging your requests) (optional)
try:
# Update menu
api_response = api_instance.set_menu(mid, body=body, details=details, accept=accept, pretty=pretty)
pprint(api_response)
except ApiException as e:
print("Exception when calling InventoryApi->set_menu: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
mid | str | ||
body | MenuMenusMenu | [optional] | |
details | bool | Add to include additional details, omit or false otherwise | [optional] |
accept | str | Override the 'Accept' request header (useful for debugging your requests) | [optional] |
pretty | bool | Add to make the Web-API pretty print the response (useful for debugging your requests) | [optional] |
- Content-Type: application/json, application/xml
- Accept: application/json, application/xml
[Back to top] [Back to API list] [Back to Model list] [Back to README]