Groups¶
To start using the Groups API, add the following to the top of your file:
use EncoreDigitalGroup\PlanningCenter\Objects\Groups\Group;
Group Class¶
Now we can create a new instance of the Group class;
$group = new Group($clientConfig);
All Groups¶
To get all groups that exist in Planning Center, use the following method:
$group->all();
Get a Specific Group¶
To get a specific group, set the $groupId
property to the id
of the specific group you wish to retrieve.
$group->groupId = 123;
$group->get();