View Widget
Copied
https://api.ocamba.com/v2/adex/widgets/{id}
Copied
https://api.ocamba.com/v2/adex/widgets/{id}
Retrieves the details of a Widget that has previously been created if a valid identifier was provided
Name
Descriptionidstringrequired
Unique identifier for the object defined as a path parameter.Example: 12345
Name
Descriptionfieldsstring
The client can request more efficient filtered representation of the resource showing only specific field(s), using the “fields” query parameter. Note that the “fields” parameter has precedence over the “view” parameter.Example GET /VERSION/adex/RESOURCE_NAME?fields=id,name
See "Tips" for the list of filterable parameters.
Example: fields=field1,field2,field3
200 - OK
Name
Descriptionitems[ widget ]
An array of all created items.Widget
Name
Descriptioncontentstring
The widget content. This is the place where you can put HTML content with replacable fragments(macros). Where HTML page is rendered, placeholders are replaced with real macro values.create_timedateTime
Timezone: GMT.Example: 2021-09-29 15:40:10
idstring
The ID of the widget, generated by the Ocamba APIExample: 1000
macros[ widget-macro ]
The array of macro objects.Macro
Name
Descriptionnamestring
The macro name.Example: TITLE
requirednumber (int)
Acceptable values are - 0/1.Example: 1
typestring
At this time only text macros are supported.Example: text
namestring
The widget name.Example: My first widget
totalinteger
A total number of items.Example: 1