Command to get website widgets and their respective products.
<mbapi> <command><!-- string --></command> <showXMLHeader><!-- boolean --></showXMLHeader> <params> <websiteWidgetID><!-- int --></websiteWidgetID> <websiteWidgetName><!-- int --></websiteWidgetName> <websiteWidgetTpl><!-- int --></websiteWidgetTpl> <orderFormID><!-- string --></orderFormID> <getProductInformation><!-- int --></getProductInformation> </params> </mbapi>
<mbapi> <header> <remoteSessionID><!-- hex --></remoteSessionID> <errorCount><!-- int --></errorCount> <errors> <error> <title><!-- string --></title> <message><!-- string --></message> </error> </errors> <numResults><!-- int --></numResults> <numAffectedRows><!-- int --></numAffectedRows> </header> <results> <websiteWidgets> <websiteWidget> <websiteWidgetID><!-- int --></websiteWidgetID> <websiteWidgetName><!-- int --></websiteWidgetName> <websiteWidgetTpl><!-- int --></websiteWidgetTpl> <orderFormID><!-- string --></orderFormID> <products> <product> <productID><!-- string --></productID> </product> </products> </websiteWidget> </websiteWidgets> </results> </mbapi>
mbapi
MBAPI request document root.
command
Required. The string GetWebsiteWidgets.
showXMLHeader
Whether to show an XML header in the results.
params
GetWebsiteWidgets parameters.
websiteWidgetID
Website Widget ID, if you want just one
websiteWidgetName
Website Widget name to search with.
websiteWidgetTpl
Website Widget tpl name to search by.
orderFormID
Order form id of this widget.
getProductInformation
Whether to return the product information or not.
mbapi
MBAPI response document root.
header
Contains result meta data: data about the result itself.
remoteSessionID
A session ID that may be used for authentication instead of a remote access hash.
errorCount
The number of errors that occured.
errors
Contains any errors that occured.
error
Contains information relating to a single error. Occurs header errorCount times.
title
The title of the error.
message
The error message.
numResults
The number of results that have been returned. For Get commands.
numAffectedRows
The number of rows that have been affected. For Set commands.
results
websiteWidgets
websiteWidget
websiteWidgetID
Website Widget ID, if you want just one
websiteWidgetName
Website Widget name to search with.
websiteWidgetTpl
Website Widget tpl name to search by.
orderFormID
Order form ID for this widget.
products
Contains the associated product ids
product
Contains
productID
Product ID