campaign/info
Parámetros:
Es necesario especificar el identificador de la CP (id) O el identificador de categoría (category_id). Si no pasa ninguno de estos parámetros, se mostrará toda la lista de las CP.
Ejemplo de llamada a un método:
$token, 'id' => 999999 ); if( $curl = curl_init() ) { curl_setopt($curl, CURLOPT_URL, 'https://www.ipweb.ru/api/v2/campaign/info'); 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: { "id": "999999", "type": "paid_se", "type_name": "visitas del buscador", "date_begin": "14.06.2019 13:56", "site": "mysite.com (https://google.ru: frase clave)", "one_visit_cost": "0.786", "one_visit_currency": "₽", "balance_visits": "2996", "visits_hour": "0", "visits_hour_limit": "1", "visits_today": "1", "visits_today_limit": "0", "comments": "", "status": "active", "category_id": "9999", "category_name": "mysite.com", "error_code": 0 } ==================================================================================== $token, 'category_id' => 9999 ); if( $curl = curl_init() ) { curl_setopt($curl, CURLOPT_URL, 'https://www.ipweb.ru/api/v2/campaign/info'); 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: { "sites": [ { "id": "999999", "type": "paid_se", "type_name": "visitas del buscador", "date_begin": "14.06.2019 11:27", "site": "mysite.com (https://google.ru: frase clave 1)", "one_visit_cost": "0.786", "one_visit_currency": "₽", "balance_visits": "0", "visits_hour": "0", "visits_hour_limit": "1", "visits_today": "0", "visits_today_limit": "0", "comments": "тест", "status": "stopped", "category_id": "9999", "category_name": "mysite.com" }, { "id": "999998", "type": "paid_se", "type_name": "visitas del buscador", "date_begin": "14.06.2019 13:56", "site": "mysite.com (https://google.ru: frase clave 2)", "one_visit_cost": "0.786", "one_visit_currency": "₽", "balance_visits": "992", "visits_hour": "0", "visits_hour_limit": "1", "visits_today": "0", "visits_today_limit": "1", "comments": "", "status": "active", "category_id": "9999", "category_name": "mysite.com" } ], "error_code": 0 }
Valores posibles del campo "Status":