Skip to content

Instantly share code, notes, and snippets.

@tsh-code
Forked from szyku-tsh/exception1.php
Created June 10, 2019 09:38
Show Gist options
  • Save tsh-code/2ba38ac571bee8ae58312b4ee90d465d to your computer and use it in GitHub Desktop.
Save tsh-code/2ba38ac571bee8ae58312b4ee90d465d to your computer and use it in GitHub Desktop.
First attempt
<?php
//....
$action = DocumentSigningAction::create($doc);
/** @var \Psr\Http\Message\ResponseInterface $response */
$response = $action->execute();
if ($response->getStatusCode() !== 200) {
throw new SigningException("Could not sign document");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment