XERO通过电子邮件发送发票

问题描述 投票:1回答:1

我已经将XERO与我的php(codeigniter)网站集成在一起,我实现的一切都工作正常。我想通过我创建的电子邮件发送发票。

我正在使用XeroOAuth。

//This line is working properly
$response = $this->XeroOAuth->request('GET', $this->XeroOAuth->url('Invoices/'.$invoiceId, 'core'), array(), "", 'pdf');


//but cant send email through xero api
$send_email = $this->XeroOAuth->request('POST', $this->XeroOAuth->url('Invoices/'.$invoiceId.'/Email', 'core'), array() );

正如他们的文档所解释的那样,此行代码应触发xero send mail选项,但其返回错误401

php api codeigniter xero-api
1个回答
1
投票

尝试使用XERO PHP您可以使用

轻松发送发票
$invoice->sendMail();
© www.soinside.com 2019 - 2024. All rights reserved.