我是 Infusion API 的新手,我有几个问题无法找到具体答案。
我使用了 PHP SDK 并通过 composer 安装
1) 在新的 API 中,我可以查看所有已创建的标签吗?
2)我已经创建并获得了我的客户端clientId
和clientSecret
via,但我不确定如何将它连接到我想要获取标签的应用程序名称。
我通过查看通过 Google 看到的代码示例进行了尝试,但是我收到以下错误 -Call to undefined method Infusionsoft\Infusionsoft::dsQuery()
代码:
<?php
//Connect to the Infusionsoft API
require_once 'vendor/autoload.php';
$infusionsoft = new \Infusionsoft\Infusionsoft(array(
'clientId' => 'key',
'clientSecret' => 'key',
));
// Fetch the required tags for this place
$getFields = array('Id','GroupDescription', 'GroupName');
$query = array('GroupName' => '%');
$tags = $infusionsoft->dsQuery("ContactGroup",1000,0,$query,$getFields);
var_dump($tags);
?>