PHP code example of xelax90 / l2p-client
1. Go to this page and download the library: Download xelax90/l2p-client 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/ */
xelax90 / l2p-client example snippets
$token = $client->getAccessToken();
if($token === null){
$deviceToken = $config->getStorage()->getDeviceToken();
$verificationUrl = $deviceToken->buildVerificationUrl();
sprintf('<a href="%s" target="_blank">Verify here</a>', $verificationUrl);
}