Library offers API wrapper for Zoho Creator and Zoho Reports https://www.zoho.com.
PSR-4 compatible
- Access Creator applications and get/add/delete records
- Access Reports and import/export data
The preferred way to install the library is using composer.
Run:
composer require matthewnw/zoho-api
use Matthewnw\Zoho\Creator\ZohoCreatorClient;
// Initializes the class.
$zohoCreatorClient = new ZohoCreatorClient($apiToken);
// Get a list of available Applications
$creatorapplications = $zohoCreatorClient->applications();
// Get a specific Application instance
$creatorapplication = $zohoCreatorClient->application($applicationName);
// get records from a Creator View and chain application method
$creatorViewRecords = $zohoCreatorClient->application($applicationName)->getRecords($viewName);
// add records form a Creator Form
$creatorapplication->add($formName, $dataArray);
use Matthewnw\Zoho\Creator\ZohoCreatorClient;
$zohoReportsClient = new ZohoReportsClient($apiToken);
// https://zohoreportsapi.wiki.zoho.com/importing-bulk-data.html
$uri = $zohoReportsClient->getURI($emailId, $reportsDatabaseName, $reportsTableName);
$importType = 'TRUNCATEADD'; // APPEND, TRUNCATEADD, UPDATEADD
$autoIdentify = 'TRUE';
$onError = 'ABORT';
$importData = json_encode($report_leads);
$config = ['ZOHO_IMPORT_FILETYPE' => 'JSON'];
$importReports = $zohoReportsClient->importDataAsString($uri, $importType, $importData, $autoIdentify, $onError, $config);
https://zohoreportsapi.wiki.zoho.com/
https://www.zoho.com/reports/api/?php#zoho-reports-api
https://www.zoho.eu/creator/help/api/
Matthew Williams [email protected]