basetwosolutions / 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.*
This package is not auto-updated.
Last update: 2024-09-24 08:57:07 UTC
README
为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://composer.php.ac.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
文档
所有之前提到的方都在库文档页面中得到了详细的解释。
此外,代码也得到了良好的文档记录,因此您可以查看方法、函数并检查它们的工作方式。