nexuslifeline / hubspot

HubSpot PHP API客户端(haPiHP包装器)

v1.0.6 2019-06-25 05:37 UTC

This package is auto-updated.

Last update: 2024-09-25 17:05:35 UTC


README

haPiHP包装器

Latest Stable Version Total Downloads Scrutinizer Code Quality License

如果您想使用新的COS或v2端点,我正在编写一个全新的API客户端:https://github.com/fungku/hubspot-php

设置

在composer.json中

"require": {
	"fungku/hubspot": "1.0.*"
}

然后运行 composer installcomposer 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

贡献者