List Widgets
List Widgets
GET
https://api.ocamba.com/v2/adex/widgets
Returns a list of WidgetsQuery parameters
parametersResponse schemas
›
200
application/json
curl -X GET \
"https://api.ocamba.com/v2/adex/widgets" \
-H "Authorization: Bearer {TOKEN}"const url = 'https://api.ocamba.com/v2/adex/widgets';
const options = {
method: 'GET',
headers: {
Authorization: `Bearer {TOKEN}`
}
};
try {
const response = await fetch(url, options);
const data = await response.json();
console.log(data);
} catch (error) {
console.error(error);
}$ch = curl_init("https://api.ocamba.com/v2/adex/widgets");
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET");
curl_setopt($ch, CURLOPT_HTTPHEADER, [
"Authorization: Bearer {TOKEN}"
]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);Responses
200 OK
{
"total": 38,
"items": [
{
"id": "143",
"company_id": "3813298",
"name": "ase",
"type": "widget example 1",
"create_time": "2023-04-25 06:45:34",
"update_time": "2024-02-22 11:23:01"
},
{
"id": "131",
"company_id": "3813298",
"name": "widget example 2",
"type": "user-defined",
"create_time": "2022-10-14 09:53:17",
"update_time": "2024-02-21 14:52:25"
}
]
}
Responses
Tip
Searchable fields are name, and content.
Sortable fields are name, type, create_time and update_time.
Filterable fields are id, name, type, create_time and update_time.
To get the widget object, pass widget_id.