如何使用API​​来获取QuickBooks的数据,而不基于浏览器OAUTH? [英] How can I use API to get quickbooks data without browser based OAUTH?

查看:650
本文介绍了如何使用API​​来获取QuickBooks的数据,而不基于浏览器OAUTH?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是有关的Quickbooks,QBO的在线版本(而不是桌面)。

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

我们需要我们的服务器端code才能够登录和查询从QuickBooks一些数据(就像你的API提供),并提供这个信息,我们的计费系统。这将不涉及浏览器,并使用像卷曲,但这意味着没有浏览器,也没有人来登录和请求接入各一次。我还没有找到一个办法做到这一点呢。任何想法?

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?

推荐答案

您的问题已经回答了在这里:

Your question was already answered over here:

唉,对冗长的缘故:

无论您选择哪种API,你可以做你在问什么。

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

无论你去与API(qbXML,或任何地方忒/ OAuth的),你只需要一个人得到的东西连接的的第一次连接的。

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.

这是第一次之后,你可以在任何你想要的时间与实际用户交互零取数据(如你建议的卷曲)。所有你需要做的是存储的OAuth凭据忒给你。这是所有的OAuth实现的工作方式 - 你保存你回来的凭据,所以你可以请求后无人值守的数据

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.

如果这不是你看到的行为,它只是意味着你已经实现了错误的东西(应该大概张贴您的code,因此,我们可以帮您解决)。

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).

您可能要检查出 QuickBooks的PHP的devkit ,其只是做的例子什么你问的:

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/

这篇关于如何使用API​​来获取QuickBooks的数据,而不基于浏览器OAUTH?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆