Skip to content

Commit

Permalink
DEVDOCS-10453 adding codeDepot markers
Browse files Browse the repository at this point in the history
  • Loading branch information
paigesrossi committed Oct 10, 2023
1 parent ed025a6 commit 9184164
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/Services/Examples/eSignature/PermissionDeleteService.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,23 +15,25 @@ class PermissionDeleteService
* @param $clientService
* @return string
*/
# ***DS.snippet.0.start

public static function permissionDelete(array $args, $clientService): string
{
$accounts_api = $clientService->getAccountsApi();

try {
# Step 3. call the eSignature REST API
# Call the eSignature REST API
#ds-snippet-start:eSign27Step3
$accounts_api->deletePermissionProfile(
$args['account_id'],
$args['permission_args']['permission_profile_id']
);
#ds-snippet-end:eSign27Step3
} catch (ApiException $e) {
$clientService->showErrorTemplate($e);
exit;
}

return "The permission profile has been deleted!";
}
# ***DS.snippet.0.end

}

0 comments on commit 9184164

Please sign in to comment.