The Intuit Developer team has written this OAuth 2.0 Sample App in PHP to provide working examples on how to make QBO API calls to create an Invoice using tokens generated from the OAuth Playground
In order to successfully run this sample app you need a few things:
- PHP 5.4 or above, with Curl extension installed
- A developer.intuit.com account
- An app on developer.intuit.com
- Clone the GitHub repo to your computer
- Use the Oauth playground to generate OAuth 2 tokens
- Provide your Access Token and RealmID from playground, and environment(sandbox/production) in the
SampleInvoiceCreateAPICall.php
file $settings array
Once the sample app code is on your computer, you can do the following steps to run the app:
php SampleInvoiceCreateAPICall.php