2017 © Pedro Peláez
 

library zoho-api

A class to consume Zoho's Creator and Reports API.

image

matthewnw/zoho-api

A class to consume Zoho's Creator and Reports API.

  • Saturday, February 17, 2018
  • by matthewnw
  • Repository
  • 2 Watchers
  • 0 Stars
  • 9 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 13 % Grown

The README.md

Zoho API Wrapper

Library offers API wrapper for Zoho Creator and Zoho Reports https://www.zoho.com., (*1)

PSR-4 compatible, (*2)

Features

  • Access Creator applications and get/add/delete records
  • Access Reports and import/export data

Installation

The preferred way to install the library is using composer., (*3)

Run:, (*4)

composer require matthewnw/zoho-api

Examples

Creator Example

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);

Reports Example

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);

Zoho API Documentation

Reports API

https://zohoreportsapi.wiki.zoho.com/, (*5)

ReportClient.php API Guide

https://www.zoho.com/reports/api/?php#zoho-reports-api, (*6)

Creator API

https://www.zoho.eu/creator/help/api/, (*7)

Author

Matthew Williams matthew@codelaunch.uk, (*8)

The Versions

17/02 2018

dev-master

9999999-dev

A class to consume Zoho's Creator and Reports API.

  Sources   Download

MIT

The Requires

  • php >=5.6

 

api reports creator zoho zohocreator

17/02 2018

1.0.1

1.0.1.0

A class to consume Zoho's Creator and Reports API.

  Sources   Download

MIT

The Requires

  • php >=5.6

 

api reports creator zoho zohocreator

17/02 2018

1.0.0

1.0.0.0

A class to consume Zoho's Creator and Reports API.

  Sources   Download

MIT

The Requires

  • php >=5.6

 

api reports creator zoho zohocreator