[Vtigercrm-developers] Create a Lead in Web service using vtwsclib 1.5
estevan
estefan.civera at gmail.com
Mon Jun 15 21:05:25 GMT 2015
only two suggestion
try with http not https
use dodescribe function the get info about fields such as mandatory
nullable....
however it's seem to be correct your script!!
<?php
include_once('vtwsclib/Vtiger/WSClient.php');
$url = 'http://localhost/crd';
$client = new Vtiger_WSClient($url);
$login = $client->doLogin('admin', 'VWZfGSy7NYpKYmfY');
if(!$login)
die('Login Failed');
if(!$login)
echo 'Login Failed';
else {
$recordInfo = $client->doDescribe('Leads');
if($recordInfo) {
echo "<pre>doDescribe";
print_r($recordInfo);
echo "</pre>";
}
else
print_r($client->lasterror());
}
?>
-----
Ing. Estefan Civera
Vtiger developer and consultant
http://www.estefancivera.net
Italy
--
View this message in context: http://vtiger-crm.2324883.n4.nabble.com/Vtigercrm-developers-Create-a-Lead-in-Web-service-using-vtwsclib-1-5-tp16558p16576.html
Sent from the vtigercrm-developers mailing list archive at Nabble.com.
More information about the vtigercrm-developers
mailing list