$response = $this->XeroOAuth->request('GET', $this->XeroOAuth->url($target, 'core'), $params);
if (empty($this->XeroOAuth->response['code']) || $this->XeroOAuth->response['code'] != 200) {
- print_R($this->XeroOAuth->response);exit;
- throw new Exception('Xero Error: ' . $this->XeroOAuth->response['response']);
- return;
+ return false;
}
$items = $this->XeroOAuth->parseResponse($this->XeroOAuth->response['response'], $this->XeroOAuth->response['format']);