PHP code example of socialiteproviders / bitrix24

1. Go to this page and download the library: Download socialiteproviders/bitrix24 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/ */

    

socialiteproviders / bitrix24 example snippets


'bitrix24' => [
      'endpoint' => env('BITRIX24_ENDPOINT_URI'),
      'client_id' => env('BITRIX24_CLIENT_ID'),
      'client_secret' => env('BITRIX24_CLIENT_SECRET'),
      'redirect' => env('BITRIX24_REDIRECT_URI'),
],

Event::listen(function (\SocialiteProviders\Manager\SocialiteWasCalled $event) {
    $event->extendSocialite('bitrix24', \SocialiteProviders\Bitrix24\Provider::class);
});

protected $listen = [
    \SocialiteProviders\Manager\SocialiteWasCalled::class => [
        // ... other providers
        \SocialiteProviders\Bitrix24\Bitrix24ExtendSocialite::class.'@handle',
    ],
];

return Socialite::driver('bitrix24')->redirect();