Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Added Verify environment variables to config, and make sure everythin…
…g matched spec
  • Loading branch information
dragonmantank committed Oct 17, 2019
commit bad3535a58e8d27a2659089b8fd5b153d828a298
7 changes: 7 additions & 0 deletions .env-example
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,10 @@ MESSAGES_APPLICATION_ID=12a3b4cd-a1b2-1ab2-a1b2-a1234bc5d678
VOICE_CALLBACK_TYPE=tel
VOICE_CALLBACK_VALUE=447700900002
VOICE_STATUS_URL=https://example.com/webhooks/status

# Verify API examples
BRAND_NAME=Acme, Inc.
CODE=
NUMBER=
REQUEST_ID=
WORKFLOW_ID=4
2 changes: 1 addition & 1 deletion verify/request.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
$basic = new \Nexmo\Client\Credentials\Basic(NEXMO_API_KEY, NEXMO_API_SECRET);
$client = new \Nexmo\Client(new \Nexmo\Client\Credentials\Container($basic));

$verification = new \Nexmo\Verify\Verification(RECIPIENT_NUMBER, 'Acme Inc');
$verification = new \Nexmo\Verify\Verification(NUMBER, 'Acme Inc');
$client->verify()->start($verification);

echo "Started verification, `request_id` is " . $verification->getRequestId();