问题
My company uses QuickBooks Online, and I would like to write some php scripts that retrieve very basic information like a list of customers and list of invoices from the QuickBooks Online subscription.
Therefore, I created a QuickBooks IPP account (at developer.intuit.com).
Now, how do I connect/point my QuickBooks IPP account to my company's QuickBooks Online subscription?
Thank you.
回答1:
We use three-legged OAuth to authorize your application to make calls to your QBO account: https://developer.intuit.com/docs/0025_quickbooksapi/0010_getting_started/0020_connect/0010_from_within_your_app
Once you have the access token and secret, you can call the APIs.
回答2:
If you want to run some php code very quickly I just finished an example you can find here:
- http://runnable.com/UtEZ4OpSEoFzAACs/quickbooks-oauth-%2B-list-customers-example-for-php-intuit-and-intuit-partner-platform
Test it out and tell me what you think.
回答3:
We're written an open-source PHP DevKit that is popular and has lots of examples in it. It might be helpful to help you get connected and make those OAuth requests.
You can find the code on GitHub:
- https://github.com/consolibyte/quickbooks-php
If you follow the quick-start guide (which basically involves swapping out some URLs and tokens - since you're already registered your app with Intuit, you won't need to do that part again) you'll end up with a working mini-app that has a working "Connect to QuickBooks" button, Blue Dot menu, disconnect script, and a big pile of example data exchange scripts for adding/querying/updating customers, invoices, etc.
Quick start guide:
- http://www.consolibyte.com/docs/index.php/PHP_DevKit_for_QuickBooks_-_Intuit_Partner_Platform_Quick-Start
Lots and lots of example code:
- https://github.com/consolibyte/quickbooks-php/tree/master/docs/example_app_ipp_v3
回答4:
5 STEPS TO QBO AUTHORIZATION (JAVA API)
Dear All,
The following content is intended to demonstrate INTUIT API AUTHORIZATION in a simplified way:
Note: This tutorial assumes that you have already registered in https://developer.intuit.com and created and and registered new app. So you must be having 'Oauth Consumer Key' & 'Oauth Consumer Secret'.
Outlined Steps:
Get REQUEST TOKEN, REQUEST TOKEN SECRET & Authorization URL.
Go to Authorization URL select the company to be authorised and click Authorize button.
Get OAUTH VERIFIER CODE post authorization (after autorization button is clicked) through a GET request from Intuit API server.
Get ACCESS TOKEN and ACCESS TOKEN SECRET using
OAUTH VERIFIER CODE,
REQUEST TOKEN & REQUEST TOKEN SECRET.
Create DateService object using 'Oauth Consumer Key', 'Oauth Consumer Secret', ACCESS TOKEN, ACCESS TOKEN SECRET & Company id (a.k.a Realm id).
CLICK HERE FOR BASIC SAMPLE CODES
来源:https://stackoverflow.com/questions/21125191/connect-quickbooks-ipp-to-quickbooks-online