How can I use API to get quickbooks data without browser based OAUTH?

落爺英雄遲暮 提交于 2019-12-11 07:54:13

问题


This is in relation to the online version of Quickbooks, QBO (not the desktop).

We need our serverside code to be able to log-in and query some data from quickbooks (just like your API provides) and supply this information to our billing system. This would not involved a browser and use something like curl but this means there is no browser and no human to 'log in' and 'request access' each time. I have not found a way to do this yet. Any ideas?


回答1:


Your question was already answered over here:

  • https://intuitpartnerplatform.lc.intuit.com/questions/767273-how-can-i-use-api-to-get-quickbooks-data-without-browser-based-oauth

Alas, for the sake of verboseness:

No matter which API you choose, you can do what you're asking.

Regardless of which API you go with (qbXML, or Intuit Anywhere/OAuth) you only need a human to get things connected the very first time you connect.

After that very first time, you can fetch data at any time you want (as you suggest, with CURL) with zero interaction with an actual user. All you have to do is store the OAuth credentials that Intuit gives you. This is how all OAuth implementations work - you store the credentials you get back, so you can request data unattended later.

If that's not the behavior you're seeing, it just means you've implemented something incorrectly (and should probably post your code, so we can help you troubleshoot).

You might want to check out the QuickBooks PHP DevKit, which has examples of doing just what you're asking for:

  • http://consolibyte.com/quickbooks-open-source/


来源:https://stackoverflow.com/questions/18219015/how-can-i-use-api-to-get-quickbooks-data-without-browser-based-oauth

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!