troydavisson / PHRETS

PHP client library for interacting with a RETS server to pull real estate listings, photos and other data made available from an MLS system
http://troda.com
MIT License
451 stars 236 forks source link

Error While fetching images using GetObject #213

Open sprycoop opened 6 years ago

sprycoop commented 6 years ago

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
    )

)

nader14y commented 4 years ago

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

Joyfred commented 3 years ago

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?