OAuth2_PHP
OAuth2_PHP copied to clipboard
PHP sample app for OAuth2
I'm implementing credit card charge of Quickbooks Payment API ok this's done but I get the access token through Curl manually, so I want to get it from authorization code...
OAuth2PHPExample.php should set the session value for the realmId, ex: $_SESSION['realmId'] = $_GET['realmId']; and index.php should display the realmId value along with the token values.
Accessing an index in an array that has not been set generates a undefined index notice. empty() fixes that by checking if a variable is set first.
I can't find revoke token method in the php, Could you provide us such method
i have been following all the steps mentioned in the documentation of this code base as well as the official documentation including serving my app in ngrok..etc however; whenever i...
Fatal error: Uncaught exception 'Exception' with message 'error setting certificate verify locations: CAfile: ./Certificate/cacert.pem CApath: none' in C:\xampp\htdocs\OAuth2_PHP\OAuth_2\Client.php:186 Stack trace: #0 C:\xampp\htdocs\OAuth2_PHP\OAuth_2\Client.php(86): Client->executeRequest('https://oauth.p...', Array, Array, 'POST') #1 C:\xampp\htdocs\OAuth2_PHP\OAuth_2\OAuth2PHPExample.php(48): Client->getAccessToken('https://oauth.p...', 'Q011528139602Ph...',...
Hi, #9 it is said that the realmId is in the response upon successful authentication. Is this still true, because running your example I do not see a realmId. Thank...
Good Day... I was trying to test OAuth with this sample but I keep getting error when redirected to https://appcenter.intuit.com/connect/oauth2?client_id=L0wfLei7A5qHX3OU62CU0DWMZyifQr6DINORlF4HdoyxQ36F8z&scope=com.intuit.quickbooks.accounting&redirect_uri=https%3A%2F%2Fqb.dagnum.com%2Ftest%2FOAuth2PHPExample.php&response_type=code&state=RandomState .. I couldn't even reach to the page wher it...
Here's my config.php: `` With index.php, these are displayed: > Add the OAuth 2 Consumer Key and OAuth 2 Consumer Secret of your application to config.php file to enable OAuth2...
Hello guys, I hope you doing great , in fact i am stuck with configuration of quick books online, i am using OAth2 downloaded from https://github.com/IntuitDeveloper/OAuth2_PHP/tree/master/OAuth_2. i have setup for...