【发布时间】:2021-03-21 12:59:49
【问题描述】:
我从 github,laravel-hubspot 获得了此代码,但通过此代码,如果我声明:$contact->properties->email->value; 电子邮件或电话号码或来自 hubspot 联系人的任何其他值,则它仅获取名字和姓氏。
我所需要的只是如何从 hubspot 联系人获取所有联系人字段详细信息
$response = $hubspot->contacts()->all();
foreach ($response->contacts as $contact) {
echo sprintf(
"Contact name is %s %s." . PHP_EOL,
$contact->properties->firstname->value,
$contact->properties->lastname->value
);
}
【问题讨论】:
标签: php laravel laravel-5 integration hubspot