View Push Task
View Push Task
GET
https://api.ocamba.com/v1/hood/push-tasks/{id}
Retrieves comprehensive details of a specific Push Task by its unique identifier.
Tip
If you don’t know the Push Task id, list the Push Tasks to find it.
Rate limits:
- Burst: 10/s
- Steady: 150/m
Path parameters
parametersQuery parameters
parametersResponse schemas
›
200
application/json
›
400
application/json
›
500
application/json
curl -X GET \
"https://api.ocamba.com/v1/hood/push-tasks/{id}" \
-H "Authorization: Bearer {TOKEN}"const url = 'https://api.ocamba.com/v1/hood/push-tasks/{id}';
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/v1/hood/push-tasks/{id}");
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": 1,
"items": [
{
"id": "1059",
"name": "Demo 3",
"status": "1",
"start_time": "2019-06-28 11:07:00",
"end_time": null,
"frequency": null,
"ttl": "3600",
"user_time_zone": null,
"quiet_time": null,
"next_execution_time": "2019-06-28 11:07:00",
"last_execution_time": null,
"create_time": "2019-06-28 11:06:33",
"targeting": {
"countries": {
"op": "include",
"items": [
"RS",
"IL"
]
},
"apps": {
"op": "exclude",
"items": [
"278686306",
"326707096"
]
},
"user_data": {
"appId": {
"op": "include",
"items": [
"news.readerapp"
]
},
"configVariant": {
"op": "exclude",
"items": [
"Newsplace_hardcoded_configVariant"
]
}
},
"remote_users": {
"items": [
"vhjbdnkjvmkdjmvdmj-scjldnsvmk"
],
"op": "include"
}
},
"message": null,
"adex": {
"zone_id": "1000000",
"account_id": null,
"campaign_id": [
"1000001",
"1000002"
],
"group_id": null,
"default_campaign_id": null,
"number_of_messages": "1",
"repeat_on_click": "0"
},
"creator_id": "1000001",
"creator_name": "John Doe"
}
]
}
400 Bad Request
{
"code": 400,
"title": "Bad request.",
"message": "The request body is not valid.",
"trace_id": "99a84211-f73d-4ff8-acdf-eb3e06bb9d62"
}
500 Internal Server Error
{
"code": 500,
"title": "Internal server error.",
"trace_id": "99a84211-f73d-4ff8-acdf-eb3e06bb9d62"
}
Responses