![]() ![]() These tokens are only good for a limited amount of time, but you can use them along with your OAuth consumer key and secret to start making requests with the PHP SDK. Note that this demo uses the QuickBooks Online Sandbox companies, which is great for testing but isn’t what your final application will use.Īfter connecting your app to your sandbox QuickBooks Online account (which finishes the last legs of OAuth) you should see a page with your OAuth access tokens. If you just see a bunch of unformatted PHP code, then you probably do not have your webserver configured to execute PHP. This is similar to the user experience that your end users will have when authenticating your app. Now, with your webserver started, you should be able to access the index.php page through a browser and see a button with a ‘Connect to QuickBooks image. There you will be able to add in the OAuth consumer key and secret from the Intuit Developer site to work with the OAuth PHP sample project. In the oauth-php project you downloaded, open up the PHPOAuthSample folder and a file inside named ‘config.php. You can use those credentials to complete your first authentication with the PHP SDK. The App Keys Screen inside your Intuit Developer Account From there, you can select the ‘Keys tab and see your apps token, which identifies your app uniquely to Intuit, as well as the OAuth consumer Keys and Secrets that you will need to authenticate your requests. Navigate to the ‘My Apps menu item at the top, and create a new app. If you dont have an account already, select the ‘create an account and fill out your information. ![]() ![]() It’s easy and free, just head over to and and click on the sign-in on the top right. Next (if you haven’t yet), youll want to create an account on the Intuit Developer site, and create a new app. It was originally intended to be used with a local Apache instance, but any web server setup that allows for you to navigate to the different pages and that will execute the PHP code will work just fine. This application is just a thin client on top of our PHP SDK to show the different legs of OAuth authentication. You can either clone the project from GitHub here: or download it directly to your computer: In this post, Ill walk through the steps to get up and running with the PHP SDK for QuickBooks Online.Īuthentication can be the hardest part of getting an API connection set up, so we created an example application that you can use to see how a successful OAuth connection works. We want to make it as easy as possible for developers to launch their ideas with QuickBooks Online, which is why we provide a variety of SDKs and libraries to help with the leg-work of your integration. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |