cristianpontes / zoho-crm-client-php
提供对 Zoho Rest API 的清晰易读的 PHP API
1.7
2018-05-31 19:20 UTC
Requires
- php: >=5.3.3
- kriswallsmith/buzz: 0.15
- psr/log: ~1.0.0
Requires (Dev)
- phpunit/phpunit: 4.8.*
README
该项目不再维护,已被官方 Zoho PHP SDK 弃用。
有关更多信息,请访问 Zoho 官方文档

提供对 Zoho Rest API 的清晰易读的 PHP API。
该项目最初是从 此存储库 克隆而来,并通过以下方式改进:
- 新方法
- 更多功能
- 友好的文档
先决条件
- PHP 5.4 或更高版本
- CURL
简单安装
要使用 Composer 安装,只需要求此包的最新版本。
composer require cristianpontes/zoho-crm-client-php
确保加载了 Composer 的自动加载文件。
// somewhere early in your project's loading, require the Composer autoloader // see: https://getcomposer.org.cn/doc/00-intro.md require 'vendor/autoload.php';
用法示例
use CristianPontes\ZohoCRMClient\ZohoCRMClient; $client = new ZohoCRMClient('Leads', 'yourAuthToken'); $records = $client->getRecords() ->selectColumns('First Name', 'Last Name', 'Email') ->sortBy('Last Name')->sortAsc() ->since(date_create('last week')) ->request(); // Just for debug echo "<pre>"; print_r($records); echo "</pre>";
可用方法
- getRecords
- insertRecords
- updateRecords
- deleteRecords
- getDeletedRecordIds
- getRelatedRecords
- getRecordById
- searchRecords
- getSearchRecordsByPDC
- uploadFile
- downloadFile
- deleteFile
- getFields
- convertLead
- updateRelatedRecords
文档
所有之前提到的方法都在 库文档页面 中进行了详细解释。
此外,代码也进行了良好的文档记录,因此您可以查看方法、函数并检查它们的工作方式。