Skip to content

Commit 0dc217b

Browse files
committed
Commit cancel to docs, yes straight to main as trivial
1 parent c9b8ada commit 0dc217b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -383,6 +383,14 @@ $verificationEvent = \Vonage\Verify2\Webhook\Factory::createFromArray($payload);
383383
var_dump($verificationEvent->getStatus());
384384
```
385385

386+
### Cancelling a request in-flight
387+
388+
You can cancel a request should you need to, before the end user has taken any action.
389+
390+
```php
391+
$requestId = 'c11236f4-00bf-4b89-84ba-88b25df97315';
392+
$client->verify2()->cancel($requestId);
393+
```
386394

387395
### Making a Call
388396

0 commit comments

Comments
 (0)