nexuslifeline / hubspot
HubSpot PHP API客户端(haPiHP包装器)
v1.0.6
2019-06-25 05:37 UTC
Requires
- php: >=5.3.0
This package is auto-updated.
Last update: 2024-09-25 17:05:35 UTC
README
haPiHP包装器
如果您想使用新的COS或v2端点,我正在编写一个全新的API客户端:https://github.com/fungku/hubspot-php
设置
在composer.json中
"require": {
"fungku/hubspot": "1.0.*"
}
然后运行 composer install
或 composer update
示例
$hapikey = "demo"; $hubspot = new Fungku\HubSpot($hapikey); // get 5 contacts' firstnames, offset by 50 $contacts = $hubspot->contacts()->get_all_contacts(array( 'count' => 5, // defaults to 20 'property' => 'firstname', // only get the specified properties 'vidOffset' => '50' // contact offset used for paging ));
注意: 如果在实例化时未包含,Hubspot类会检查HUBSPOT_APIKEY
环境变量。
haPiHP
概览
HubSpot API的PHP客户端。此客户端的文档:https://github.com/HubSpot/haPiHP/wiki/haPiHP。
通用API参考文档:http://developers.hubspot.com/docs。
贡献者
- adrianmott (Adrian Mott)
- chrishoult (Christopher Hoult)
- TheRealBenSmith (Ben Smith)
- ajorgensen (Andrew Jorgensen)
- jprado
- thinkclay (Clayton McIlrath)
- [adamgoose] (https://github.com/adamgoose) (Adam Engebretson)