Get businesses related to application - ParllaySocial/parllay-php-sdk GitHub Wiki
Get Businesses related to application
Code
require_once 'parllay.php';
$parllay = new Parllay(array(
"appId" => "YOUR_APP_ID",
"secret" => "YOUR_APP_SECRET"
));
$businesses = $parllay->api("/businesses");
Result
Array
(
[data] => Array
(
[0] => Array
(
[id] => YOUR_BUSINESS_ID
[name] => YOUR_BUSINESS_NAME
)
)
)
If your business is an agency, all your child businesses will be return