campaign/info
Parâmetros:
É necessário especificar o identificador do CP (id) ou o identificador da categoria (category_id). Se você não passar nenhum desses parâmetros, toda a lista dos CPs será exibida.
Exemplo de chamada de 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 do buscador", "date_begin": "14.06.2019 13:56", "site": "mysite.com (https://google.ru: frase-chave)", "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 do buscador", "date_begin": "14.06.2019 11:27", "site": "mysite.com (https://google.ru: frase-chave 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 do buscador", "date_begin": "14.06.2019 13:56", "site": "mysite.com (https://google.ru: frase-chave 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 possíveis do campo "Status":