phrets:Unable to download image urls
setLoginUrl('http://rebrae.retsiq.com/contact/rets/login'); $config->setUsername('etoutaro1'); $config->setPassword(XXXXXXX');
$config->setRetsVersion('1.7.2'); // see constants from \PHRETS\Versions\RETSVersion $config->setUserAgent('RobToutant/1.0');
"L_ListingID":"66977937","L_PictureCount":"3",
$photos = $rets->GetObject("Property", "Photo", $v,"*","1"); foreach ($photos as $photo) {
if($photo->isError())
{
echo($photo->getError()->getCode().":".$photo->getError()->getMessage());
}
else
{
echo "<pre>".$photo->getLocation()."</pre>";
}
}
no error message - just empty location $photos = $rets->GetObject("Property", "Photo", $v,"*","0");
gets all the appropriate images using getContent
Comments
What RETS URL are you using to connect and what account (NO PASSWORDS). Also that just shows your code not what response you are getting.
updated the original post with the information requested
no error message but if($photo->isError()) is true getCode and getMessage return empty
What PHRETS version are you using? Also do you use a User Agent Password too when you connect?
version is 2.5 user agent is in the original post RobToutant/1.0 and I use a usergent password all the code works - i can not seem to get image URL's can you please check if my user has permissions set to download image url's
reinstalled 2.5 phrets setRetsVersion('1.7.2'); i now get error message 20414:URL Location Not Supported