I would like to be able to pull data from an existing online QB setup that I have access to, specifically all customers data that are sub accounts of a specific parent account. I would then like to add the data to a html table. Is this possible and if so where do I start? Thanks.
1条回答 默认 最新
- dsuxcxqep31023992 2015-09-24 01:53关注
Is this possible
Yes.
where do I start?
If I was you... I would start by searching. This question gets answered over and over and over again on StackOverflow, and there's tons of Google results too.
But... here's an overview:
- Go grab some open-source code from GitHub: https://github.com/consolibyte/quickbooks-php
Follow the quick-start guide linked to from that GitHub page: http://www.consolibyte.com/docs/index.php/PHP_DevKit_for_QuickBooks_-_Intuit_Partner_Platform_Quick-Start
The quick-start guide basically walks you through creating an app registration with Intuit, setting up some configuration, etc. All of the real details are documented on the QuickBooks developer website in lots of detail.
Look in the docs/ directory of the above QuickBooks PHP open-source code. There's lot of examples of querying QuickBooks Online for data. Specifically, you're probably going to want some code that looks like this:
$CustomerService = new QuickBooks_IPP_Service_Customer(); $customers = $CustomerService->query($Context, $realm, "SELECT * FROM Customer MAXRESULTS 25"); foreach ($customers as $Customer) { print('Customer Id=' . $Customer->getId() . ' is named: ' . $Customer->getFullyQualifiedName() . '<br>'); }
本回答被题主选为最佳回答 , 对您是否有帮助呢?解决 无用评论 打赏 举报
悬赏问题
- ¥15 关于#java#的问题,请各位专家解答!
- ¥15 急matlab编程仿真二阶震荡系统
- ¥20 TEC-9的数据通路实验
- ¥15 ue5 .3之前好好的现在只要是激活关卡就会崩溃
- ¥50 MATLAB实现圆柱体容器内球形颗粒堆积
- ¥15 python如何将动态的多个子列表,拼接后进行集合的交集
- ¥20 vitis-ai量化基于pytorch框架下的yolov5模型
- ¥15 如何实现H5在QQ平台上的二次分享卡片效果?
- ¥30 求解达问题(有红包)
- ¥15 请解包一个pak文件