[craheb@crahebmbp:~/Development/mph$ php index.php
[2015-05-11 16:10:20] PHRETS.DEBUG: Loading Monolog\Logger logger [] []
[2015-05-11 16:10:20] PHRETS.DEBUG: Sending HTTP Request for http://sample.data.crea.ca/Login.svc/Login (Login) {"headers":{"User-Agent":"PHRETS/2.0","RETS-Version":"RETS/1.8","Accept-Encoding":"gzip"},"cookies":[]} []
[2015-05-11 16:10:21] PHRETS.DEBUG: Response: HTTP 200 [] []
[2015-05-11 16:10:21] PHRETS.DEBUG: Sending HTTP Request for http://sample.data.crea.ca/Search.svc/Search (Search) {"query":{"SearchType":"Property","Class":"Property","Query":"(ID=*)","QueryType":"DMQL2","Count":1,"Format":"COMPACT-DECODED","Limit":3,"StandardNames":0,"Select":"ListingId,City,PostalCode,Sewer"},"headers":{"User-Agent":"PHRETS/2.0","RETS-Version":"RETS/1.8","Accept-Encoding":"gzip"},"cookies":["[object] (GuzzleHttp\\Cookie\\SetCookie: {})","[object] (GuzzleHttp\\Cookie\\SetCookie: {})"]} []
[2015-05-11 16:10:21] PHRETS.DEBUG: Response: HTTP 200 [] []
[2015-05-11 16:10:21] PHRETS.DEBUG: 2 column headers/fields given [] []
[2015-05-11 16:10:21] PHRETS.DEBUG: 961 total results found [] []
[2015-05-11 16:10:21] PHRETS.DEBUG: 3 results given [] []
[2015-05-11 16:10:21] PHRETS.DEBUG: Maximum rows returned in response [] []
[2015-05-11 16:10:21] PHRETS.INFO: Testing info: Array ( [ListingKey] => 11937441 [ModificationTimestamp] => 14/06/2012 12:09:54 PM ) [] []
[2015-05-11 16:10:21] PHRETS.INFO: Testing info: Array ( [ListingKey] => 11937440 [ModificationTimestamp] => 14/06/2012 12:09:53 PM ) [] []
[2015-05-11 16:10:21] PHRETS.INFO: Testing info: Array ( [ListingKey] => 11937439 [ModificationTimestamp] => 14/06/2012 12:09:53 PM ) [] []require_once('../vendor/autoload.php');
$config = new \PHRETS\Configuration;
$config->setLoginUrl('http://sample.data.crea.ca/Login.svc/Login')
->setUsername('CXLHfDVrziCfvwgCuL8nUahC')
->setPassword('mFqMsCSPdnb5WO1gpEEtDCHH')
->setRetsVersion('1.7.2');
$rets = new \PHRETS\Session($config);
$connect = $rets->Login();
$DBML = '(ID=*)';
$params = ['Limit' => 1, 'Format' => 'STANDARD-XML'];
$recursive = false;
$searchCREAResults = $rets->Search('Office', 'Office', $DBML, $params, $recursive);
$searchCREAResultsArray = $searchCREAResults->toArray();[2016-02-02 20:53:22] PHRETS.DEBUG: Response: HTTP 200 [] []
[2016-02-02 20:53:22] PHRETS.DEBUG: 1 column headers/fields given [] []
[2016-02-02 20:53:22] PHRETS.DEBUG: 51 total results found [] []
[2016-02-02 20:53:22] PHRETS.DEBUG: 0 results given [] []