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

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