I am developing for a WordPress site and am getting an error that states: "Unexpected end of Query.". I have no idea what I'm doing wrong. I'm just putting in the example query from the documentation .
Url: http://wyo-rets.paragonrels.com/rets/fnisrets.aspx/WYO/login?rets-version=rets/1.7.2
$config = new \PHRETS\Configuration;
$config->setLoginUrl('http://wyo-rets.paragonrels.com/rets/fnisrets.aspx/WYO/login?rets-version=rets/1.7.2');
$config->setUsername('******');
$config->setPassword('******');
$config->setRetsVersion('1.7.2'); // see constants from \PHRETS\Versions\RETSVersion
$config->setHttpAuthenticationMethod('digest'); // or 'basic' if required
$config->setOption('use_post_method', false); // boolean
$config->setOption('disable_follow_location', false); // boolean
$rets = new \PHRETS\Session($config);
$connect = $rets->Login();
var_dump($connect);
$results = $rets->Search(
'Property',
'RE_1',
'*',
['Limit' => 3, 'Select' => 'LIST_1,LIST_105,LIST_15,LIST_22,LIST_87,LIST_133,LIST_134']
);
foreach ($results as $r) {
var_dump($r);
}