%PDF- <> %âãÏÓ endobj 2 0 obj <> endobj 3 0 obj <>/ExtGState<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI] >>/Annots[ 28 0 R 29 0 R] /MediaBox[ 0 0 595.5 842.25] /Contents 4 0 R/Group<>/Tabs/S>> endobj ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<>endobj 2 0 obj<> endobj 2 0 obj<>endobj 2 0 obj<>es 3 0 R>> endobj 2 0 obj<> ox[ 0.000000 0.000000 609.600000 935.600000]/Fi endobj 3 0 obj<> endobj 7 1 obj<>/ProcSet[/PDF/Text/ImageB/ImageC/ImageI]>>/Subtype/Form>> stream
<?php class Social_model extends CI_Model { function __construct() { parent::__construct(); } function sendDataToEmailCampaign($data){ if(ENVIRONMENT=='development'){ return TRUE; } $endpoint=ENVIRONMENT=='development'?'http://localhost:8000/campaign/sendBulkEmails':'http://13.126.113.191/campaign/sendBulkEmails'; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $endpoint); curl_setopt($ch, CURLOPT_TIMEOUT, 60); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_ANY); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($data)); curl_setopt($ch, CURLOPT_HTTPHEADER, ['Content-Type: application/json']); $result=curl_exec ($ch); $status_code = (int)curl_getinfo($ch, CURLINFO_HTTP_CODE); curl_close ($ch); return [$status_code, json_decode($result, true)]; } function sendDataToSMSCampaign($data){ if(ENVIRONMENT=='development'){ return TRUE; } $endpoint=ENVIRONMENT=='development'?'http://localhost:8000/campaign/sendBulkSMS':'http://13.126.113.191/campaign/sendBulkSMS'; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $endpoint); curl_setopt($ch, CURLOPT_TIMEOUT, 60); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_ANY); curl_setopt($ch, CURLOPT_POST, 1); curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($data)); curl_setopt($ch, CURLOPT_HTTPHEADER, ['Content-Type: application/json']); $result=curl_exec ($ch); $status_code = (int)curl_getinfo($ch, CURLINFO_HTTP_CODE); curl_close ($ch); return [$status_code, json_decode($result, true)]; } } //End of file