Hello,
I know this is a returning question, but did anybody solve how to download the images from CRMLS.
Tried the following to drill down the issues:
$rets->Search("Media","Media","MediaKey=$ListingKey");
Gets me Fatal error: Uncaught PHRETS\Exceptions\RETSException: Internal SQL error: Conversion failed when converting from a character string to uniqueidentifier. in E:\Soft\Zend\ZendServer\data\apps\http\crmls.local\80\_docroot_\vendor\troydavisson\phrets\src\Session.php o
n line 424
--
$rets->Search("Media","Media","((MediaKey=$ListingKey), (MediaType=Image))");
Gets me Fatal error: Uncaught PHRETS\Exceptions\RETSException: Internal SQL error: Conversion failed when converting from a character string to uniqueidentifier. in E:\Soft\Zend\ZendServer\data\apps\http\crmls.local\80\_docroot_\vendor\troydavisson\phrets\src\Session.php o
n line 424
--
$rets->GetObject( $objectResource, $objectType, $ListingKey, $photoNumber, 0 );
Gets me
[error:protected] => PHRETS\Models\RETSError Object
(
[code:protected] => 20401
[message:protected] => Invalid Type
)
--
$rets->GetObject( $objectResource, $objectType, $ListingKey, $photoNumber, 1 );
Gets me
[error:protected] => PHRETS\Models\RETSError Object
(
[code:protected] => 20401
[message:protected] => Invalid Type
)
--
$rets->Search("Media","Media","((MediaKey=$ListingKey), (MediaType=Image))", array('Limit' => 'none', 'Select' => "MediaOrder,MediaURL"));
Gets me
--
So I am bit out of fresh ideas :)
Thanks
Eric