marwinupstreamtech / hubspot-object-collections
用于 HubSpot V3 的 PHP 包
1.0.1
2024-02-12 02:57 UTC
Requires
- php: ^8.1
- guzzlehttp/guzzle: ^7.4
- nesbot/carbon: ^2.58
Requires (Dev)
- barryvdh/laravel-ide-helper: ^2.13
- phpunit/phpunit: ^9.5
README
一个 Laravel 包可以帮助收集 HubSpot CRM 对象属性。
灵感
以下是一些示例,展示了良好的代码文档
使用方法与格式化
使用 OAUTH
$hubSpotObjectCollection = new HubSpotObjectCollection($api_token);
使用私有应用
将 API 令牌设置到您的 .env 文件中的 HUBSPOT_PRIVATE_APP_API_TOKEN
$hubSpotObjectCollection = new HubSpotObjectCollection();
Project Name: HubSpot Object Collection
Description: To collect the HubSpot CRM objects[companies, contacts, deals, feedback_submissions, line_items, products, quotes, discounts, fees, taxes, tickets, goals] and return only the properties.
### Dependencies
- php ^8.1
- Guzzle ^7.4
## Demo
/**
* The private API key set in the .env file
*/
$sourceSdk = new HubSpotObjectCollection();
$contacts = $sourceSdk->getCollection('contacts', ['hs_object_id', 'email']);
## Organization
* Upstreamtech/JackTaylorGroup