Pattern Dosen't Match - Schedule Campaign

Pattern Dosen't Match - Schedule Campaign

ScheduleCampaign.php

$url = 'https://campaigns.zoho.com/api/v1.1/sendcampaign?isschedule=true';

$header
= array(
'Content-Type: application/x-www-form-urlencoded',
'Authorization: Zoho-oauthtoken '.$access_token,
);

// Initialize cURL request and set parameters
$ch = curl_init($url);
curl_setopt_array($ch, array(
CURLOPT_POST => 1,
CURLOPT_POSTFIELDS => http_build_query(array(
'resfmt' => 'json',
'campaignkey' => $campaign_key,
'scheduleDate' => '01/11/2020',
'scheduleHour' => '01',
'scheduleMinute' => '10',
'am_pm' => 'pm',
'sendingTZ' => 'Asia/Kolkata'
)),
CURLOPT_URL => $url,
CURLOPT_HTTPHEADER => $header,
CURLOPT_HEADER => 0,
CURLOPT_RETURNTRANSFER => TRUE,
CURLOPT_TIMEOUT => 30,
CURLOPT_USERAGENT => 'Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)'
));

$server_output
= curl_exec($ch);
curl_close($ch);
It always return response as below,
stdClass Object
(
    [message] => Pattern doesn't Match
    [version] => 1.1
    [URI] => /api/v1.1/sendcampaign
    [Code] => 1001
    [status] => error
)
Kindly check the code if anything missing or is any kind of API error. If any possible sollution available then kindly reply ASAP.