Infusionsoft Getting Tags
<p>I am new to the Infusion API and I have a couple of questions that I am unable to find a specific answer to.</p>

<p>I have used the PHP SDK and installed via composer</p>

<p>1) Within the new API is there away that I can view all tags that have been created?  </p>

<p>2) I have created and got my client <code>clientId</code> and <code>clientSecret</code> via but I am unsure how I connect it to the app name that I want to fetch the tags for.</p>

<p>I have given it an attempt by looking at code examples I have seen via Google however I am getting the following error - <code>Call to undefined method Infusionsoft\Infusionsoft::dsQuery()</code></p>

<p><strong>Code:</strong></p>

<pre><code>&lt;?php

//Connect to the Infusionsoft API

require_once 'vendor/autoload.php';

$infusionsoft = new \Infusionsoft\Infusionsoft(array(
    'clientId'      =&gt; 'key',
    'clientSecret'  =&gt; 'key',

    ));

// Fetch the required tags for this place

$getFields = array('Id','GroupDescription', 'GroupName');
$query     = array('GroupName' =&gt; '%');
$tags      = $infusionsoft-&gt;dsQuery("ContactGroup",1000,0,$query,$getFields);

var_dump($tags);

?&gt;
</code></pre>