Vista
campaign/prefs
Parâmetros:
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/prefs'); 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: { "ip_limit": "1_30", // limite de execuções por IP "auto_add_visits": 0, // adicionar visitas automaticamente "auto_add_limit": 0, // com um saldo inferior a "timezone": "Europe/Moscow", // Fuso horário "scheduled_start": 0, // lançamento programado da CP "scheduled_stop": 0, // interrupção programada da CP "sex": "any", // gênero dos executores "age_min": 0, // idade mínima dos executores "age_max": 0, // idade máxima dos executores "hours_limits": { // limites de execução por hora por dia "0": "33", "1": "22", "2": "15", "3": "8", "4": "4", "5": "8", "6": "15", "7": "26", "8": "37", "9": "51", "10": "62", "11": "62", "12": "66", "13": "66", "14": "70", "15": "73", "16": "70", "17": "66", "18": "55", "19": "44", "20": "44", "21": "40", "22": "40", "23": "33" }, "days_limits": { // limites de execução por dia da semana "monday": "1000", "tuesday": "1000", "thursday": "1000", "wednesday": "1000", "friday": "1000", "saturday": "1000", "sunday": "1000" }, "days_hours": { // horas dos dias em que a execução é permitida "monday": "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23", "tuesday": "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23", "thursday": "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23", "wednesday": "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23", "friday": "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23", "saturday": "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23", "sunday": "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23" }, "error_code": 0 }
Mudança
campaign/prefs_set
Parâmetros:
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/prefs'); 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: { "ip_limit": "1_30", // límite de ejecuciones por IP "auto_add_visits": 0, // añadir automáticamente visitas "auto_add_limit": 0, // con un saldo inferior a "timezone": "Europe/Moscow", // huso horario "scheduled_start": 0, // lanzamiento programado de la CP "scheduled_stop": 0, // interrupción programada de la CP "sex": "any", // género de ejecutores "age_min": 0, // edad mínima de ejecutores "age_max": 0, // edad máxima de ejecutores "hours_limits": { // límites de ejecución por hora al día "0": "33", "1": "22", "2": "15", "3": "8", "4": "4", "5": "8", "6": "15", "7": "26", "8": "37", "9": "51", "10": "62", "11": "62", "12": "66", "13": "66", "14": "70", "15": "73", "16": "70", "17": "66", "18": "55", "19": "44", "20": "44", "21": "40", "22": "40", "23": "33" }, "days_limits": { // límites de ejecución por día de la semana "monday": "1000", "tuesday": "1000", "thursday": "1000", "wednesday": "1000", "friday": "1000", "saturday": "1000", "sunday": "1000" }, "days_hours": { // horas de los días en que se permite la ejecución "monday": "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23", "tuesday": "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23", "thursday": "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23", "wednesday": "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23", "friday": "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23", "saturday": "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23", "sunday": "0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23" }, "error_code": 0 }
Cambio
campaign/prefs_set
Parámetros:
Ejemplo de llamada a un método:
$token, 'id' => 999999, 'scheduled_start' => 1575222535 'scheduled_stop' => 1545722535 ); if( $curl = curl_init() ) { curl_setopt($curl, CURLOPT_URL, 'https://www.ipweb.ru/api/v2/campaign/prefs_set'); 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: { "status": "ok", "error_code": 0 }