Get a List of Schedules
curl --request GET \
--url https://api.hakumedia.ai/v2/schedules \
--header 'Authorization: <api-key>'const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.hakumedia.ai/v2/schedules', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.hakumedia.ai/v2/schedules"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.hakumedia.ai/v2/schedules",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"object": "list",
"has_more": false,
"limit": 10,
"offset": 0,
"url": "/v2/schedules",
"data": [
{
"day_cap_limit": 1111,
"day_cap_type": "clicks",
"delivery_method": "default",
"start_date": "2018-09-15 00:00:00",
"end_date": "2019-10-15 00:00:00",
"start_at": "2024-11-01T09:00:00-04:00",
"start_at_timezone": "America/New_York",
"end_at": "2024-11-15T17:00:00-04:00",
"end_at_timezone": "America/New_York",
"per_user_view_limit": null,
"per_user_view_period": null,
"quota_lifetime": 10000,
"quota_type": "views",
"under_delivery_behaviour": "endOnDate",
"day_parting_id": 1234,
"status": "active",
"created_date": "2019-01-22 00:00:00",
"clicks": 0,
"views": 0,
"quote_remaining": null,
"object": "schedule",
"self": "/v2/schedules/1234",
"id": 1234,
"end_date_local": "2019-05-26 15:32:06",
"start_date_local": "2019-05-26 15:32:06"
}
]
}Schedules
Get a List of Schedules
You can use the fields query parameter to restrict the fields to be retrieved.
GET
/
schedules
Get a List of Schedules
curl --request GET \
--url https://api.hakumedia.ai/v2/schedules \
--header 'Authorization: <api-key>'const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://api.hakumedia.ai/v2/schedules', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.hakumedia.ai/v2/schedules"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.hakumedia.ai/v2/schedules",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}{
"object": "list",
"has_more": false,
"limit": 10,
"offset": 0,
"url": "/v2/schedules",
"data": [
{
"day_cap_limit": 1111,
"day_cap_type": "clicks",
"delivery_method": "default",
"start_date": "2018-09-15 00:00:00",
"end_date": "2019-10-15 00:00:00",
"start_at": "2024-11-01T09:00:00-04:00",
"start_at_timezone": "America/New_York",
"end_at": "2024-11-15T17:00:00-04:00",
"end_at_timezone": "America/New_York",
"per_user_view_limit": null,
"per_user_view_period": null,
"quota_lifetime": 10000,
"quota_type": "views",
"under_delivery_behaviour": "endOnDate",
"day_parting_id": 1234,
"status": "active",
"created_date": "2019-01-22 00:00:00",
"clicks": 0,
"views": 0,
"quote_remaining": null,
"object": "schedule",
"self": "/v2/schedules/1234",
"id": 1234,
"end_date_local": "2019-05-26 15:32:06",
"start_date_local": "2019-05-26 15:32:06"
}
]
}Autorizaciones
Parámetros de consulta
Respuesta
default - application/json
successful operation