PHP code example of uspdev / senhaunica-ci4
1. Go to this page and download the library: Download uspdev/senhaunica-ci4 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/ */
uspdev / senhaunica-ci4 example snippets
use Uspdev\SenhaunicaCI4\SenhaunicaCI4;
$clientCredentials = [
'identifier' => 'identificacao',
'secret' => 'chave-secreta',
'callback_id' => 0,
];
SenhaunicaCI4::login($clientCredentials);
header('Location:../');
exit;
use Uspdev\SenhaunicaCI4\SenhaunicaCI4;
putenv('SENHAUNICA_KEY=');
putenv('SENHAUNICA_SECRET=');
putenv('SENHAUNICA_CALLBACK_ID=');
SenhaunicaCI4::login();
header('Location:../');
exit;