broklyngagah/zohocrmclient
Composer 安装命令:
composer require broklyngagah/zohocrmclient
包简介
Provides a clean readable PHP API to the Zoho Rest API
关键字:
README 文档
README
THE MAIN REPOSITORY IS NO LONGER MAINTENACE. I USE THIS FOR MY CUSTOM PROJECT.
Provides a clean readable PHP API to the Zoho Rest API.
Usage
use Christiaan\ZohoCRMClient\ZohoCRMClient; $client = new ZohoCRMClient('Leads', 'yourAuthKey'); $records = $client->getRecords() ->selectColumns('First Name', 'Last Name', 'Email') ->sortBy('Last Name')->sortAsc() ->since(date_create('last week')) ->request(); echo 'Content: ' . print_r($records, true) . PHP_EOL;
Using custom transport settings to enable logging
$buzzTransport = new BuzzTransport( new \Buzz\Browser(new \Buzz\Client\Curl()), 'https://crm.zoho.com/crm/private/xml/' ); $buzzTransport->setLogger($logger); $transport = new XmlDataTransportDecorator( new AuthenticationTokenTransportDecorator( 'yourAuthKey', $buzzTransport ) ); $client = new ZohoCRMClient('Leads', $transport);
Implemented Calls
At the moment only the following calls are supported
- getRecords
- getRecordById
- insertRecords
- updateRecords
- getFields
It is rather easy to add new calls, look at one of the classes in the Request dir for examples. After the Request class is made it might be necessary to alter the parsing of the response XML in the XmlDataTransportDecorator class.
统计信息
- 总下载量: 913
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-11-17