Checking User Status

Phone Verification && Info

Authy has an API to verify users via phone calls or sms. Also, user phone information can be gethered
for support and verification purposes.

Phone Verification Start

In order to start a phone verification, we ask the API to send a token to the user via sms or call:

$authy_api->phoneVerificationStart('111-111-1111', '1', 'sms');

Optionally you can specify the language that you prefer the phone verification message to be sent. Supported
languages include: English (en), Spanish (es), Portuguese (pt), German (de), French (fr) and
Italian (it). If not specified, English will be used.

$authy_api->phoneVerificationStart('111-111-1111', '1', 'sms', 'es');
// This will send a message in spanish

Phone Verification Check

Once you get the verification from user, you can check if it's valid with:

$authy_api->phoneVerificationCheck('111-111-1111', '1', '0000');

Phone Info

If you want to gather additional information about user phone, use phones info.

$authy_api->phoneInfo('111-111-1111', '1');

Tests

You will need to install composer https://getcomposer.org/download/
and install dependencies with composer install --no-dev. Also
You will need to install phpunit https://phpunit.de/manual/current/en/installation.html

Then you can run test by executing this command make

Contribute

You can use docker to run tests and develop locally without the need to install the dependencies directly in your machine: