Skip to main content

Campaign Search

This service is used to search for campaigns.

Parameters

DescriptionDefined DataExample DataRequired[**]/Optional[*]Parameters
Find Similar Itemsyes/notrue**alike
Campaign Name--conditions->name
Description--conditions->description
Status--conditions->status
Pagination Start-20pagination->start
Pagination Count-0pagination->count
Sorting-pagination->sorting

Sample Invocation

Show Full Source Code PHP

	<?php

$curl = curl_init();

curl_setopt_array($curl, array(
CURLOPT_URL => "http://192.168.51.21/api/v4/autodialer/campaigns/search",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS =>"{\r\n \"alike\":\"true\",\r\n \"conditions\":{\"name\":\"test\",\"description\":\"\",\"status\":\"\"},\r\n \"pagination\":{\"start\":0,\"count\":20,\"sorting\":{}}\r\n}",
CURLOPT_HTTPHEADER => array(
"X-APIKEY: vZKtIKWsld0egNlkzHo8i5LVBqLNBSWARCQsPOSgDjFmAHM3tG",
"Authorization: Basic dGVzdDpBYTEyMzQ1Ng==",
"Content-Type: application/json"
),
));

$response = curl_exec($curl);

if (!curl_errno($curl)) {
$httpcode = curl_getinfo($curl, CURLINFO_HTTP_CODE);
echo 'response code:'.$httpcode, '<br/>';
}

curl_close($curl);
echo $response;
?>