PHP code example of consolibyte / quickbooks-openid-connect

1. Go to this page and download the library: Download consolibyte/quickbooks-openid-connect 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/ */

    

consolibyte / quickbooks-openid-connect example snippets





use Jumbojett\OpenIDConnectClient;

$openid = new OpenIDConnectClient('https://developer.api.intuit.com',
                                'ClientIDHere',
                                'ClientSecretHere');

$openid->addScope(array('openid', 'profile', 'email'));

$openid->setRedirectURL('Your redirect URL');
$openid->providerConfigParam(array('userinfo_endpoint' => 'https://sandbox-accounts.platform.intuit.com/v1/openid_connect/userinfo'));


$oidc->setVerifyHost(false);
$oidc->setVerifyPeer(false);