PHRETS icon indicating copy to clipboard operation
PHRETS copied to clipboard

Error While fetching images using GetObject

Open sprycoop opened this issue 7 years ago • 2 comments

I am trying to fetch the images from CRMLS but getting error. I am able to get the listing details but not able to fetch images for particular listing.

Using GetObject method to fetch images: $photo = $rets->GetObject('Media', 'Media', $listingKey, '*', 1);

Array ( [0] => Array ( [Success] => [Content-Type] => text/xml [MIME-Version] => 1.0 [Length] => 53 [Data] =>

        [ReplyCode] => 20401
        [ReplyText] => Invalid Type
    )

)

sprycoop avatar Aug 08 '18 12:08 sprycoop

You need to use Search function to get result from Media resource: $photo = $rets->Search('Media', 'Media', $query, $options);

nader14y avatar Jan 02 '20 11:01 nader14y

Hey @nader14y... I analyzed the URL obtained using Media resource. Resolution of the image is low & hence looks blurry. Is there any possible way to get high resolution images?

Joyfred avatar Jan 28 '21 19:01 Joyfred