如何在没有基于浏览器的 OAUTH 的情况下使用 API 获取快速书籍数据? [英] How can I use API to get quickbooks data without browser based OAUTH?

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

问题描述

这与 Quickbooks 的在线版本 QBO(不是桌面版)有关.

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

我们需要我们的服务器端代码能够登录并从 quickbooks 中查询一些数据(就像您的 API 提供的那样)并将这些信息提供给我们的计费系统.这不会涉及浏览器并使用 curl 之类的东西,但这意味着没有浏览器,也没有人每次都登录"和请求访问".我还没有找到一种方法来做到这一点.有什么想法吗?

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 或 Intuit Anywhere/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.

在第一次之后,您可以随时获取数据(如您所建议的,使用 CURL),与实际用户零交互.您所要做的就是存储 Intuit 提供给您的 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.

如果这不是您所看到的行为,则仅表示您实施了错误的操作(并且可能应该发布您的代码,以便我们帮助您进行故障排除).

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:

这篇关于如何在没有基于浏览器的 OAUTH 的情况下使用 API 获取快速书籍数据?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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