NZTA\Workplace\Gateways\WorkplaceGateway
Handles the direct calls to the Workplace API.
The calls are made to endpoints using a .
Synopsis
class WorkplaceGateway
{
- // members
- private static integer $workplace_group_limit = 300;
- private static string $workplace_profile_return_fields = 'link';
- // methods
- public null|string getWorkplacePostsFromGroup()
- public null|string getAllGroups()
- public string|null getPostComments()
- public null|string getWorkplaceProfileInfo()
- public null|string call()
Members
private
- $workplace_group_limit
—
integer
The amount of groups that will received from Workplace - $workplace_profile_return_fields
—
string
Define return fields from workplace E.g 1. link,email,name 2. name,link,messages{message,attachments}
Methods
public
- call() — Make a REST call to the Workplace API.
- getAllGroups() — Get all facebook workplace groups
- getPostComments() — Get the comments from a specified post from Workplace.
- getWorkplacePostsFromGroup() — Get a feed from a specified group from Facebook Workplace.
- getWorkplaceProfileInfo() — You may able to search workplace users by their workplace email or workplace id using batch request method in facebook workplace api