1. Go to this page and download the library: Download rinvex/authy library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
rinvex / authy example snippets
$apiKey = 'AuthySecretKey';
$httpClient = new \GuzzleHttp\Client();
$authyApp = new \Rinvex\Authy\App($httpClient, $apiKey);
$appStats = $authyApp->stats(); // Get app stats
$appDetails = $authyApp->details(); // Get app details
$authyUser = new \Rinvex\Authy\User($httpClient, $apiKey);
$user = $authyUser->register('[email protected]', '317-338-9302', '54'); // Register user
$userActivity = $authyUser->registerActivity($user->get('user')['id'], 'cookie_login', 'Test Data'); // Register user activity
$userStatus = $authyUser->status($user->get('user')['id']); // Get user status
$userDeleted = $authyUser->delete($user->get('user')['id']); // Delete user
$body = $tokenVerified->body(); // Get all response body
$code = $tokenVerified->statusCode(); // Get response status code
$succeed = $tokenVerified->succeed(); // Check whether respose is a success
$failed = $tokenVerified->failed(); // Check whether respose is a failure
$message = $tokenVerified->message(); // Get response message
$item = $tokenVerified->get('item'); // Get response body item
$errors = $tokenVerified->errors(); // Get response errors
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.