简体   繁体   English

QuickBooks Online v3 - REST API和SDK

[英]QuickBooks Online v3 - REST API and the SDK

I'm having a bit of trouble figuring out how to properly proceed making calls using the Intuit QuickBooks Online API v3. 我在使用Intuit QuickBooks Online API v3确定如何正确地进行调用时遇到了一些麻烦。 I've looked at the API Explorer, and from my understanding, I can send and receive JSON. 我查看了API Explorer,根据我的理解,我可以发送和接收JSON。

They also provide information about the base URL, the entity, etc: https://developer.intuit.com/docs/api/accounting/Customer 它们还提供有关基本URL,实体等的信息: https//developer.intuit.com/docs/api/accounting/Customer

So I'm wondering, am I supposed to be using the QuickBooks SDK that they mention to download? 所以我想知道,我应该使用他们提到的QuickBooks SDK来下载吗? https://developer.intuit.com/docs/0100_accounting https://developer.intuit.com/docs/0100_accounting

Or would I be able to utilize their API using something like cURL? 或者我可以使用像cURL这样的东西来利用他们的API吗? I don't want to reinvent the wheel of course, but with all the information they provide and no reference to the SDK itself, that's where I started to get a little confused. 我当然不想重新发明轮子,但是他们提供的所有信息都没有参考SDK本身,这就是我开始有点困惑的地方。 They basically tell you how to make the calls, but don't reference the SDK in those documents. 它们基本上告诉您如何进行调用,但不要在这些文档中引用SDK。

Just to provide some extra information, I'm using PHP 5.5 and Laravel. 为了提供一些额外的信息,我使用的是PHP 5.5和Laravel。

So I'm wondering, am I supposed to be using the QuickBooks SDK that they mention to download? 所以我想知道,我应该使用他们提到的QuickBooks SDK来下载吗?

If you want to, sure. 如果你想,当然。

Or would I be able to utilize their API using something like cURL? 或者我可以使用像cURL这样的东西来利用他们的API吗?

Again, if you want to, sure. 再次,如果你想,当然。 Just be aware that if you use cURL, you'll have to do some OAuth signing of your requests (see the OAuth spec) or find an OAuth lib too. 请注意,如果您使用cURL,则必须对请求进行OAuth签名(请参阅OAuth规范)或找到OAuth lib。

Here's another open-source alternative if you need something with more examples (disclaimer: I'm the author): 如果您需要更多示例(免责声明:我是作者),这是另一个开源替代方案:

Examples: 例子:

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM