PHP code example of rs / socialite-healthcare-authenticator
1. Go to this page and download the library: Download rs/socialite-healthcare-authenticator 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/ */
rs / socialite-healthcare-authenticator example snippets
'hca' => [
'client_id' => env('HCA_CLIENT_ID'),
'client_secret' => env('HCA_CLIENT_SECRET'),
'redirect' => env('HCA_REDIRECT_URI'),
'profile_extended'=>true // Set this to false if you dont have access to the full profile
'api_key'=>env('HCA_API_KEY')
],
foreach ($result->successful() as $link) {
// $link is a GeneratedMagicLink DTO
echo "Magic link for {$link->accountEmail}: {$link->url}\n";
}
foreach ($result->failed() as $failed) {
// $failed is a FailedMagicLink DTO
echo "Failed to create link for {$failed->requestEmail}: {$failed->error}\n";
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.