如何在没有用户登录的情况下在我的Web应用程序中获取Quickbooks在线数据 [英] How to get Quickbooks online data in my webapp without the user logging in

查看:140
本文介绍了如何在没有用户登录的情况下在我的Web应用程序中获取Quickbooks在线数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为本地商店创建一个ecomerce应用程序,并使用Quickbooks Online。我可以看到Quickbooks Online API需要用户登录的Connect to Quickbooks按钮,但这不是我要找的。当他们查看产品页面,应用程序查询(或发送REST / SOAP调用)并获取我的商店的产品数据时,我正在寻找什么。我们的客户不知道我们正在使用快速在线,并且绝对不会有登录。该流程将如下所示:

客户点击产品



ProductsAction将对QuickBooks执行服务调用以获取我们销售的产品(从产品中选择*)

ProductsAction将返回Success将产品列表传递给要呈现的页面。



mycompany / Products呈现从QuickBooks Online返回的项目。



是否有任何可能的方法来执行此操作?我读过的所有内容都需要O'Auth身份验证(这意味着用户必须登录到QBO)。



请随时提出任何问题并提前致谢! p>

解决方案


我可以看到Quickbooks Online API需要一个Connect to Quickbooks按钮,但这不是我要找的。

是的。



您只需登录一次。完全一次,然后你永远不必再次登录。因此,您的QuickBooks管理员使用连接到QuickBooks按钮登录ONCE,然后再也不登录。

相反,您存储OAuth令牌,并使用存储的令牌从此处进行查询。


我在寻找的是当他们查看产品页面,应用程序查询(或发送REST / SOAP调用)并获取我商店的产品数据。


这完全可以实现。您现在无法执行此操作的原因是,因为您不存储与您一样的OAuth令牌应该是


我们的客户不知道我们正在使用quickbooks,绝对不会有登录。


他们不需要对此有任何想法。在连接ONCE后存储OAuth令牌,然后所有内容都可以无人值守,无需登录,只需要随时查询即可。


有没有可能的方法来做到这一点?


是!


已阅读需要O'Auth认证(意味着用户必须登录到QBO)。

QuickBooks管理员登录一次,然后再也不会。在此之后存储OAuth令牌并且仅仅登录后,然后使用它们在将来完成所有查询。



这就是OAuth如何适用于每个应用程序在整个星球上使用OAuth。登录并验证一次,存储您为未来查询获得的令牌。



...
...



我提到你应该存储一次QuickBooks管理员登录后收回的OAuth令牌吗? :-P


I'm creating an ecomerce app for a local store and they use Quickbooks Online. I can see the Quickbooks Online API requires a "Connect to Quickbooks" button where the user then logs in, but that's not what I'm looking for. What I'm looking for is something when they look at the products page, the app queries (or sends a REST/SOAP call) and gets back product data for my store. Our customers will have no idea that we're using quickbooks online, and definitely won't have a login. The flow would be like:

Customer clicks Products

ProductsAction will execute a service call to QuickBooks to get the products we sell (select * from products)

ProductsAction will return Success passing in the list of products to the page to be rendered.

mycompany/Products renders the items returned from QuickBooks Online.

Is there any possible way to do this? Everything I've read requires O'Auth authentication (meaning the user would have to login to QBO).

Feel free to ask any questions an thanks in advance!

解决方案

I can see the Quickbooks Online API requires a "Connect to Quickbooks" button where the user then logs in, but that's not what I'm looking for.

Yes, it is.

You only have to log in ONCE. Exactly ONCE, and then you never, ever have to log in ever again. So, your QuickBooks admin logs in ONCE using the "Connect to QuickBooks" button, and then NEVER LOGS IN AGAIN.

Instead, you store the OAuth tokens, and use the stored tokens to do you queries from there on out.

What I'm looking for is something when they look at the products page, the app queries (or sends a REST/SOAP call) and gets back product data for my store.

This is all perfectly do-able. The reason you can't do it right now is because you're not storing the OAuth tokens like you should be.

Our customers will have no idea that we're using quickbooks online, and definitely won't have a login.

They don't need to have any idea about this. Store the OAuth tokens after you connect ONCE, and then everything can be unattended, no login, you just query away whenever you want to.

Is there any possible way to do this?

Yes!

Everything I've read requires O'Auth authentication (meaning the user would have to login to QBO).

The QuickBooks admin logs in ONCE and then never again. Store the OAuth tokens after that one and only login, and then use those to do all of your queries in the future.

This is how OAuth works for every single application that uses OAuth on the entire planet. Log in and authenticate once, store the tokens you get for future queries.

... ...

Did I mention you should be storing the OAuth tokens that you get back after that one single time your QuickBooks admin logs in? :-P

这篇关于如何在没有用户登录的情况下在我的Web应用程序中获取Quickbooks在线数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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