Vtiger-Webservices-curl/
├── controller/
│ └──VtApiClasses/
│ └──Operations/
│ ├──crm_crudoperation.php
│ └──Webservices/
│ ├──crm_auth.php
│ ├──crm_webservice.php
├── model/
│ constant.php
├── View/
│ ├──index.php
│ ├──create.php
│ ├──read.php
│ ├──update.php
│ ├──delete.php
├── .gitignore.swp
├── .README.md
├── .LICENSE.md
To run this project make sure that curl is installed and active in your php.ini You will Also need Composer to manage classes
in the main dir of your project open composer and execute composer self-update
followed by composer dump-autoload -o
To use this project you must replace the variables in model/constant.inc with your CRM information
<?php
$url = 'http://example.com/vtigercrm/webservice.php';
$userName='[YOUR CRM USER HERE]';
$userAccessKey='[YOUR CRM USER ACCESS KEY HERE]';
?>
available in the view folder of this project.
- 💪PRO tip -> to debug your code use the following code to toggle error messages display On/OFF
<?php
ini_set('display_errors', 1);
ini_set('display_startup_errors', 1);
error_reporting(E_ALL);
?>