PHP code example of aego / oauth2-odnoklassniki

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

    

aego / oauth2-odnoklassniki example snippets


$provider = new Aego\OAuth2\Client\Provider\Odnoklassniki([
    'clientId' => '1234567890',
    'clientPublic' => 'BA57A2DACCE55C0DE',
    'clientSecret' => '5ADC0DE2ADD1C7ED70C0FFEE',
    'redirectUri' => 'https://example.org/oauth-endpoint',
]);