EntityAPIHandler.php

zcrm-php-sdk · crm, entity-api, request-mapping, response-mapping

Handles Zoho CRM entity API requests via APIRequest, maps responses to records.

<?php
namespace zcrmsdk\crm\api\handler;

use zcrmsdk\crm\api\APIRequest;
use zcrmsdk\crm\crud\ZCRMEventParticipant;
use zcrmsdk\crm\crud\ZCRMInventoryLineItem;
use zcrmsdk\crm\crud\ZCRMLayout;
use zcrmsdk\crm\crud\ZCRMPriceBookPricing;
use zcrmsdk\crm\crud\ZCRMRecord;
use zcrmsdk\crm\crud\ZCRMTag;
use zcrmsdk\crm\crud\ZCRMTax;
use zcrmsdk\crm\exception\APIExceptionHandler;
use zcrmsdk\crm\exception\ZCRMException;
use zcrmsdk\crm\setup\users\ZCRMUser;
use zcrmsdk\crm\utility\APIConstants;

class EntityAPIHandler extends APIHandler
{
    
    protected $record = null;
    
    private function __construct($zcrmrecord)
    {
        $this->record = $zcrmrecord;
    }
    
    public static function getInstance($zcrmrecord)
    {
        return new EntityAPIHandler($zcrmrecord);
    }
    
  

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search 40K more like it.

Get a free API key