return $data;
}
+ function getInvoices($params = array())
+ {
+ $response = $this->XeroOAuth->request('GET', $this->XeroOAuth->url('Invoices', 'core'), $params, '', $this->format);
+
+ $data = $this->XeroOAuth->parseResponse($response['response'], $response['format']);
+
+ if (empty($response['code']) || $response['code'] != 200) {
+ return $this->toFailedResult($response['code'], $data);
+ }
+
+ return $data;
+ }
+
function createInvoice($xml = '', $params = array())
{
if(empty($xml)) {