Tags¶
To start using the Group Tags API, add the following to the top of your file:
use EncoreDigitalGroup\PlanningCenter\Objects\Groups\Tag;
TagGroup Class¶
Now we can create a new instance of the Tag class;
$tag = new Tag($client);
All Tag Groups¶
To get all group tags that exist in Planning Center, use the following method:
$tag->all();
Tags¶
Get All Tags¶
$tag->all();
Get a Single Tag¶
$tag->tagId = TAG_ID;
$tag->get();
Get Groups by Tag¶
$tag->tagId = TAG_ID;
$tag->groups();