Services/Xero.php
authoredward <edward@roojs.com>
Thu, 28 Jun 2018 05:57:49 +0000 (13:57 +0800)
committeredward <edward@roojs.com>
Thu, 28 Jun 2018 05:57:49 +0000 (13:57 +0800)
Services/Xero.php

index 677ca70..5440d83 100644 (file)
@@ -20,7 +20,7 @@ class Services_Xero
     
     function getContacts($params = array())
     {
-        $response = $this->XeroOAuth->request('GET', $this->XeroOAuth->url('Contacts', 'core'), $params);
+        $response = $this->XeroOAuth->request('GET', $this->XeroOAuth->url('Contacts', 'core'), $params, '', 'json');
         
         if (empty($this->XeroOAuth->response['code']) || $this->XeroOAuth->response['code'] != 200) {
             throw new Exception('Xero Error: ' . $this->XeroOAuth->response['response']);