草庐IT

Calcinai

全部标签

php - Invoice::setDueDate() 必须实现接口(interface) DateTimeInterface,使用 calcinai 的 Xero API

我正在关注这个wrapper我有这个错误:Catchablefatalerror:Argument1passedtoXeroPHP\Models\Accounting\Invoice::setDueDate()mustimplementinterfaceDateTimeInterface,stringgiven这是我的代码:try{$lineitem=newLineItem($this->_xi);$lineitem->setAccountCode('200')->setQuantity('5.400')->setDescription('thisisawesometest')->se

php - Calcinai xero-php 通过一次配置

我正在尝试弄清楚如何正确地开始使用这个包。我已经通过Composer安装了它,并且可以使用自述文件中的一些说明让它工作,但在这个阶段我必须每次都像这样传递配置变量:$config=['oauth'=>['consumer_key'=>'MYCONSUMERKEY','consumer_secret'=>'MYSECRETKEY','rsa_private_key'=>'file:///pathtokey','rsa_public_key'=>'file:///pathtopubkey'];$xero=new\XeroPHP\Application\PrivateApplication(