Pago | 15521 |
Inscrições | 295 |
Ações em campanhas | 129040 |
Cartas lidas | 443 |
Novas campanhas | 581 |
Curtidas | 11221 |
Assinaturas | 37583 |
Republicações | 1459 |
Links | 66 |
Amigos | 3560 |
10:14 | 0.16 | ![]() |
10:14 | 1.70 | ![]() |
09:43 | 0.13 | ![]() |
09:43 | 1.35 | ![]() |
09:44 | 0.24 | ![]() |
1. | gg1092082512042... | 476 |
2. | ziadmohamedasal... | 422 |
3. | gg1127053604775... | 261 |
4. | Sanek037 | 243 |
5. | avers84 | 236 |
Parabéns ao 2273370º usuário ansarazk*** pelo registro bem-sucedido de uma conta no projeto 14.03.2025 10:37.
campaign/stat
Parâmetros:
É necessário especificar o identificador do CP (id) ou o identificador da categoria (category_id).
Exemplo de chamada de método:
<?php
$post = array(
'token' => $token,
'id' => 999999,
'period' => 'today'
);
if ($curl = curl_init()) {
curl_setopt($curl, CURLOPT_URL, 'https://www.ipweb.ru/api/v2/campaign/stat');
curl_setopt($curl, CURLOPT_RETURNTRANSFER,true);
curl_setopt($curl, CURLOPT_POST, true);
curl_setopt($curl, CURLOPT_POSTFIELDS, $post);
$out = curl_exec($curl);
echo $out;
curl_close($curl);
}
// Resultado:
{
"actions_hours": {
"00:00-01:00": 0,
"01:00-02:00": 0,
"02:00-03:00": 0,
"03:00-04:00": 0,
"04:00-05:00": 0,
"05:00-06:00": 0,
"06:00-07:00": 3,
"07:00-08:00": 1,
"08:00-09:00": 12,
"09:00-10:00": 0,
"10:00-11:00": 0,
"11:00-12:00": 23,
"12:00-13:00": 16
},
"error_code": 0
}
====================================================================================
<?php
$post = array(
'token' => $token,
'id' => 999999,
'period' => 'last_30'
);
if ($curl = curl_init()) {
curl_setopt($curl, CURLOPT_URL, 'https://www.ipweb.ru/api/v2/campaign/stat');
curl_setopt($curl, CURLOPT_RETURNTRANSFER,true);
curl_setopt($curl, CURLOPT_POST, true);
curl_setopt($curl, CURLOPT_POSTFIELDS, $post);
$out = curl_exec($curl);
echo $out;
curl_close($curl);
}
// Resultado:
{
"actions_30_days": {
"28.10": 14,
"29.10": 31,
"30.10": 12,
"31.10": 5,
"01.11": 26,
"02.11": 8,
"03.11": 11,
"04.11": 23,
"05.11": 17,
"06.11": 13,
"07.11": 42,
"08.11": 18,
"09.11": 24,
"10.11": 21,
"11.11": 13,
"12.11": 7,
"13.11": 22,
"14.11": 31,
"15.11": 17,
"16.11": 12,
"17.11": 11,
"18.11": 23,
"19.11": 14,
"20.11": 9,
"21.11": 15,
"22.11": 31,
"23.11": 23,
"24.11": 11,
"25.11": 21,
"26.11": 13
},
"error_code": 0
}
====================================================================================
<?php
$post = array(
'token' => $token,
'id' => 999999,
'period' => 'summary'
);
if ($curl = curl_init()) {
curl_setopt($curl, CURLOPT_URL, 'https://www.ipweb.ru/api/v2/campaign/stat');
curl_setopt($curl, CURLOPT_RETURNTRANSFER,true);
curl_setopt($curl, CURLOPT_POST, true);
curl_setopt($curl, CURLOPT_POSTFIELDS, $post);
$out = curl_exec($curl);
echo $out;
curl_close($curl);
}
// Resultado:
{
"actions_hour": 3,
"actions_today": 14,
"actions_month": 154,
"actions_all": 312,
"error_code": 0
}