Skip to content

Commit

Permalink
docs: fix broken example in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
ilfa committed Nov 22, 2024
1 parent 3fd125c commit b7abe8c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ $client = new FingerprintApi(
try {
// Fetch the event with a given requestId
list($model, $response) = $client->getEvent(FPJS_REQUEST_ID);
echo "<pre>" . $response->__toString() . "</pre>";
echo "<pre>" . $response->getBody()->getContents() . "</pre>";
} catch (Exception $e) {
echo 'Exception when calling FingerprintApi->getEvent: ', $e->getMessage(), PHP_EOL;
}
Expand Down
2 changes: 1 addition & 1 deletion template/README.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ $client = new FingerprintApi(
try {
// Fetch the event with a given requestId
list($model, $response) = $client->getEvent(FPJS_REQUEST_ID);
echo "<pre>" . $response->__toString() . "</pre>";
echo "<pre>" . $response->getBody()->getContents() . "</pre>";
} catch (Exception $e) {
echo 'Exception when calling FingerprintApi->getEvent: ', $e->getMessage(), PHP_EOL;
}
Expand Down

0 comments on commit b7abe8c

Please sign in to comment.