sotechnology / laravel-hubspot
这将创建 HubSpot 中的联系人和联系人列表。为 Laravel 5.1 支持而分叉
1.0.1
2021-07-06 13:55 UTC
This package is not auto-updated.
Last update: 2024-09-26 05:24:44 UTC
README
从 nirbhay94/laravel-hubspot 分叉以支持 Laravel 5.1
安装
1.composer require nirbhay94/laravel-hubspot:dev-master
2.从您的 HubSpot 账户的集成页面获取 HubSpot API 密钥。
3.将您的 HubSpot API 密钥添加到您的 .env
文件中: HAPI_KEY=yourApiKey
4.将 Nirbhay\Hubspot\HubspotServiceProvider::class
添加到您的 config/app.php 文件中的 providers。
5.将 'HubSpot' => Nirbhay\Hubspot\Facades\Hubspot::class
添加到您的 config/app.php 文件中的 aliases。
6.php artisan vendor:publish --provider="Nirbhay\Hubspot\HubspotServiceProvider"
将创建一个 config/hubspot.php 文件。
使用
您可以使用外观作为依赖项
外观
//Echo all contacts $response = HubSpot::contacts();
//Create a contact $response = HubSpot::createContact($request->only(['firstname', 'lastname', 'email','phone','website','company','address','city','state','zip']));