PHP code example of authsignal / authsignal-php
1. Go to this page and download the library: Download authsignal/authsignal-php 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/ */
authsignal / authsignal-php example snippets
Authsignal::setApiSecretKey('secretKey');
Authsignal::setApiUrl("https://au.signal.authsignal.com/v1");
$result = Authsignal::updateAction(
userId: $userId,
action: $action,
idempotencyKey: "invalidKey",
attributes: ['state' => 'CHALLENGE_FAILED']
);
# PHP Fatal error: Uncaught AuthsignalNotFoundError: 404 - not_found
bash
composer