fungku/hubspot

此包已被弃用且不再维护。未建议替代包。

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

v1.0.5 2015-10-18 20:25 UTC

This package is not auto-updated.

Last update: 2021-04-16 22:15:23 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_APIKEY 环境变量,HubSpot 类将检查该变量。

haPiHP

概述

HubSpot API 的 PHP 客户端。此客户端的文档:https://github.com/HubSpot/haPiHP/wiki/haPiHP

通用 API 参考文档:http://developers.hubspot.com/docs

贡献者