简体   繁体   中英

How to fetch propertie's image URLs using php rets server?

I want to fetch all the image url related to a particular property, but $rets->GetObject function is not returning the image url . Please help me to find where i am wrong?

I want to fetch the image URLs for the MLS property number = W******. But it is not returning any image URL.

Below is my code:

    $photos = $rets->GetObject("Property", "Photo", "W******", "*", 1);

Please help me to solve this.

RETS servers are not required to support the delivery of object URLs which, it sounds like, is what you're running into here. Some servers do provide a Media resource that might give the URLs, but you may not have that luxury with this particular feed.

If you still need URLs, you'll likely need to retrieve and store the photos yourself, maybe using a cloud hosting service.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM