File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change @@ -454,6 +454,35 @@ means the auth mechanism is slightly more complex than other APIs. You will need
454
454
> Your Dashboard Application ID
455
455
> Your Private Key
456
456
457
+ #### Usage
458
+
459
+ There are two available methods for this API: ` checkSimSwap ` and ` checkSimSwapDate ` .
460
+
461
+ Here is an example of using both:
462
+
463
+ ``` php
464
+
465
+ $credentials = new \Vonage\Client\Credentials\Gnp(
466
+ '0777888888',
467
+ file_get_contents('./private.key'),
468
+ '0dadaeb4-7c79-4d39-b4b0-5a6cc08bf537'
469
+ );
470
+
471
+ $client = new \Vonage\Client($credentials);
472
+
473
+ $swapResult = $client->simswap()->checkSimSwap('07999999999', 500);
474
+
475
+ if ($swapResult) {
476
+ echo "Warning: SIM Swapped recently"
477
+ } else {
478
+ echo "SIM OK"
479
+ };
480
+
481
+ // Finding the swap date
482
+ echo $client->simswap()->checkSimSwapDate('07999999999');
483
+
484
+ ```
485
+
457
486
### Using the Number Verification API
458
487
459
488
Number Verification uses CAMARA API standards and is used to determine whether a request is valid. Unlike other SDKs,
You can’t perform that action at this time.
0 commit comments