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 = Group::make($clientId, $clientSecret);
All Groups¶
To get all groups that exist in Planning Center, use the following method:
$group->all();
Get a Specific Group¶
To get a single Planning Center Group, use the forGroupId()
method and then chain the get()
method.
$group->forGroupId(YOUR_GROUP_ID)->get();