Add Lead
Your ID *
Contact Number *
Name *
Email
Project
Notes
Forgot partner ID     
In case of any queries please contact : 9620218357
Register as a Channel Partner
Reg. Number *
Company Name *
Contact Number *
Email *
Address *
  
status == 200 ){ echo '
Success! '.$output->response->message.'
'; } else { echo '
Failed! '.$output->response->message.'
'; } // var_dump($output); return $output; } else if(isset($_POST['cPartner'])) { $getpostData = $_POST; $apikey ='sattva!@#param'; $url = 'https://cloud.paramantra.com/paramantra/index.php/api/channel_partner/createChannelPartner/format/json'; $action = ""; $input = array( 'reg_number' => $getpostData['reg_number'], 'company_name' => $getpostData['company_name'], 'contact_num' => substr(trim($getpostData['contact_number']), -10), 'email' => $getpostData['contact_email'], 'address' => $getpostData['contact_address'], 'cr_date' => $date, ); $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_HTTPHEADER, array("X-API-KEY: $apikey","ACTION-ON: $action")); curl_setopt($ch, CURLOPT_POSTFIELDS, $input); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 300); curl_setopt($ch, CURLOPT_USERPWD, $apikey ); if(!$output = curl_exec($ch)) { trigger_error(curl_error($ch)); } curl_close($ch); $output = json_decode($output); if($output->status == 200 ){ echo '
Success! '.$output->response->message.'
'; } else { echo '
Failed! '.$output->response->message.'
'; } // var_dump($output); return $output; } else if(isset($_POST['getId'])) { $postData = array('partnerNumber' =>substr(trim($_REQUEST['partnerNumber']), -10)); $apikey ='sattva!@#param'; $url = 'https://cloud.paramantra.com/paramantra/index.php/api/channel_partner/getPartnerId/format/json'; $action = ""; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_HTTPHEADER, array("X-API-KEY: $apikey","ACTION-ON: $action")); curl_setopt($ch, CURLOPT_POSTFIELDS, $postData); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 300); curl_setopt($ch, CURLOPT_USERPWD, $apikey ); if(!$output = curl_exec($ch)) { trigger_error(curl_error($ch)); } curl_close($ch); $output = json_decode($output); if($output->status == 200 ){ echo '
Success! '.$output->response->message.'
'; } else { echo '
Failed! '.$output->response->message.'
'; } // var_dump($output); return $output; } ?>