PHP code example of kobas / oauth2-kobas
1. Go to this page and download the library: Download kobas/oauth2-kobas 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/ */
kobas / oauth2-kobas example snippets
$provider = new Kobas\OAuth2\Client\Provider\Kobas([
'clientId' => '{kobas-client-id}',
'clientSecret' => '{kobas-client-secret}',
'companyId' => '{kobas-company-id}',
]);
$accessToken = $provider->getAccessToken('client_credentials', ['scope' => 'integration']);