try {
$list = \PayPal\Api\WebProfile::get_list($apiContext);
} catch (\Exception $ex) {
echo "Exception: " . $ex->getMessage() . PHP_EOL;
if (is_a($ex, '\PayPal\Exception\PPConnectionException')) {
var_dump($ex->getData());
}
exit(1);
}
$result = '';
foreach ($list as $object) {
$result .= $object->toJSON(JSON_PRETTY_PRINT) . PHP_EOL;
}
print_result("Get List of All Web Profiles", "Web Profiles", null, $result);
return $list;
Retrieve List of All Web Profiles
Documentation available at https://developer.paypal.com/webapps/developer/docs/api/#list-web-experience-profiles