Get campaign log
Description
Retrieves campaign logs.
Request URL
Method: POST
https://example.com/api/v1.1/campaigns/log_v2
Request parameters
Parameter | Type | Example | Required | Description |
---|---|---|---|---|
token | string | "abcdefghijklmnqrstuvwxyz" | Yes | API token |
format | string | "json" | No | Response data format By default – json |
from_time | string | "2018-08-25T00:00:00.000Z" | No | Logs starting time (RFC 3339 format) |
id | int | 1 | Yes | Campaign ID |
limit | int | 2 | No | Log entries limit By default – 1000 |
Request example
{
"id": 1,
"limit": 1,
"token": "abcdefghijklmnqrstuvwxyz"
}
Response example
{
"data": [
{
"level": "INFO",
"message": "Begin campaign",
"state": "start",
"time": "2018-08-25T00:00:00.000Z",
"value": ""
}
],
"error": 0,
"error_text": "Successful operation",
"total_count": 10
}
Response parameters
Parameter | Type | Description |
---|---|---|
error | int | Error code |
error_text | string | Error text |
level | string | Logging level |
message | string | Log entry |
state | string | Entry status |
time | date | Entry registration date |
value | string | Event associated value |
Logging levels:
DEBUG
INFO
WARNING
ERROR
Event entry status:
start
– campaign startend
– campaign finish