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 宇视监控服务器无法登录
- ¥15 PADS Logic 原理图
- ¥15 PADS Logic 图标
- ¥15 电脑和power bi环境都是英文如何将日期层次结构转换成英文
- ¥15 DruidDataSource一直closing
- ¥20 气象站点数据求取中~
- ¥15 如何获取APP内弹出的网址链接
- ¥15 wifi 图标不见了 不知道怎么办 上不了网 变成小地球了
- ¥50 STM32单片机传感器读取错误
- ¥50 power BI 从Mysql服务器导入数据,但连接进去后显示表无数据