Search
 
SCRIPT & CODE EXAMPLE
 

PHP

add document by api php

<?php
//function to add lead by API
function ADDLeadCamp($companyID,$name,$prenom,$email,$societe,$phone){

	$data = array('campaign_id'=>$companyID,'nom'=>$name,'prenom'=>$prenom,'email' =>$email,
	'phone'=>$phone,
	'societe'=>$societe,
  );
   $URL     = 'https://www.yestravaux.com/webservice/crm/lead.php';
   $data=json_encode($data);
   $POSTVALUE  = 'fct=AddLeadApi&data='.$data.'&cmpid='.$companyID; 
   $dataAddLead=curl_do_post($URL,$POSTVALUE);
  if($dataAddLead==1){
	  echo 'ok';
}
else{
	echo 'error';
}}
?>
Comment

PREVIOUS NEXT
Code Example
Php :: check if date is older than today php 
Php :: download xampp php 5.3 for windows 7 64 bit 
Php :: DateTimeZone not found laravel 
Php :: php display result from html 
Php :: concatenar 
Php :: php oops 
Php :: export data to excel in codeigniter using phpexcel 
Php :: Generating Random String In PHP Using Brute Force 
Php :: how to increment a number after concatinating it with a date function in php 
Php :: diferencias empty() e isset() 
Php :: cmd download file from url 
Php :: doctrine remove element from arraycollection 
Php :: How can I display the data stored by summernote on laravel? 
Php :: PHP: how to "clone from" another object of same class 
Php :: laravel download file from storage with progress bar 
Php :: cast_assoc 
Php :: php get current datetime in us chicago 
Php :: php if 2 files in dir unlink the olderst 
Php :: how to check my server use cgi, fcgi or fpm. 
Php :: how to use php in laravel blade 
Php :: php generate html attributes from array 
Php :: update query in laravel eloquent 
Php :: send email accent subject php 
Php :: PHP include causes white space at the top of the page 
Php :: wordpress function _() not working 
Php :: laravel validateexception no error description 
Php :: Laravel display the date the participation was created 
Php :: validation sellphone laravel 
Php :: create request php-salesforce-rest-api 
Php :: call node js jquery http php 
ADD CONTENT
Topic
Content
Source link
Name
1+5 =