2017 © Pedro Peláez
 

library zoho

Zoho CRM client library

image

maidmaid/zoho

Zoho CRM client library

  • Tuesday, April 17, 2018
  • by maidmaid
  • Repository
  • 1 Watchers
  • 1 Stars
  • 2,517 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 5 Versions
  • 22 % Grown

The README.md

Zoho

Zoho client library. Require PHP >= 5.6., (*1)

Build Status Latest Stable Version License, (*2)

Installation

composer require maidmaid/zoho

Usage

Constructor

use Maidmaid\Zoho\Client;

$client = new Client('your_authtoken');

See Using Authentication Token in official doc for more infos., (*3)

Insert records

To insert records into the required Zoho CRM module., (*4)

$records = $client->insertRecords($module = 'Contacts', $data = [
    10 => [
        'Last Name' => 'Holmes',
        'First Name' => 'Sherlock',
    ]
);

See insertRecords Method in official doc for more infos., (*5)

Update records

To update or modify the records in Zoho CRM, (*6)

$records = $client->updateRecords($module, $data = [
    10 => [
        'Id' => 'the_ID',
        'First Name' => 'Sherlock',
    ]
]);

See updateRecords Method in official doc for more infos., (*7)

Delete records

To delete the selected records., (*8)

$client->deleteRecords($module = 'Contacts', 'the_ID');

See deleteMethod Method in official doc for more infos., (*9)

Get record by ID

To retrieve individual records by record ID, (*10)

$records = $client->getRecordById($module = 'Contacts', ['the_ID_1', 'the_ID_2'])

See getRecordById Method in official doc for more infos., (*11)

Get records

To retrieve all users data specified in the API request., (*12)

Fetch data from first page:, (*13)

$records = $client->getRecords($module = 'Contacts')

Fetch data with pagination:, (*14)

$page = 0;
while ($records = $client->getRecords($module = 'Contacts', ++$page)) {

}

See getRecords Method in official doc for more infos., (*15)

Search records

To retrieve the records that match your search criteria., (*16)

$records = $client->searchRecords($module = 'Contacts', $criteria = '(Last Name:Holmes)');

See searchRecords Method in official doc for more infos., (*17)

Get fields

To retrieve details of fields available in a module., (*18)

$fields = $client->getFields($module = 'Contacts');

See getFields Method in official doc for more infos., (*19)

Generic call

$result = $client->call($module, $method, $params, $data)

Check errors

You can get last errors on failed process records:, (*20)

$errors = $client->getLastErrors();

All calls thrown an exception if global response fails (e.g. if API key is wrong):, (*21)

try {
    $results = $client->updateRecords('Contacts', $updates = []);
} catch (ZohoCRMException $e) {
}

Licence

Zoho client library is licensed under the MIT License - see the LICENSE file for details., (*22)

The Versions

17/04 2018

dev-master

9999999-dev

Zoho CRM client library

  Sources   Download

MIT

The Requires

 

The Development Requires

17/04 2018

v0.3.0

0.3.0.0

Zoho CRM client library

  Sources   Download

MIT

The Requires

 

The Development Requires

17/04 2018

dev-fix-newlines

dev-fix-newlines

Zoho CRM client library

  Sources   Download

MIT

The Requires

 

15/02 2017

v0.2.0

0.2.0.0

Zoho CRM client library

  Sources   Download

MIT

The Requires

 

11/02 2017

v0.1.0

0.1.0.0

Zoho CRM client library

  Sources   Download

MIT

The Requires

 

The Development Requires