如何通过 PHP 从 Freshbooks API 获取数据
你好,我是 Freshbooks 的新手,我想要一些非常简单的东西。
我希望我的客户在字段中输入电子邮件或名字和姓氏,如果我有该客户,我希望我的 php 代码能够搜索到我的 Freshbook 帐户(如果我这样做),我希望我的表单能够提取他的所有帐户并粘贴到输入区域中他们应该是。就像客户的名字进入名字区域姓氏进入姓氏区域一样。
我尝试使用; http://code.google.com/p/freshbooks-php-library/
这个,但我无法弄清楚,而且我不知道 XML 如何工作,所以有人可以帮助我吗?
Hi I am new to Freshbooks and I want something very simple.
I want my customer to enter either email or firstname and lastname into fields and I want my php code to search into my Freshbook account if I have that customer if I do I want my form to pull up all his account and paste into input areas where they supposed be. Like Customer`s first name into first name area lastname into last name area.
I tried to use;
http://code.google.com/p/freshbooks-php-library/
This but I couldnt figure it out and I don
t know how to XML works so is there anybody can help me ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
看看 API,我相信代码可能如下所示。请注意,这完全未经测试。
从客户端对象开始
使用列表方法获取具有特定电子邮件的用户
使用列表方法获取具有特定用户名的用户
希望它帮助您入门。
Looking at the API, I believe the code might look something like below. Note that this is completely untested.
Start with a client object
Using the listing method to get get user with specific email
Using the listing method to get get user with specific username
Hope it helps you get started.