Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I am not able to fetch the property image url with using ml_num. how to fetch properties image url? #311

Open
parteek-sdm opened this issue Sep 28, 2022 · 1 comment

Comments

@parteek-sdm
Copy link

parteek-sdm commented Sep 28, 2022

$rets->GetObject("Property", "Photo", "MLS_NUMBER", "*", 1);

I am using the above code to fetch all the images url by passing ml_num which i get from $rets->search.
But it is not showing images url.

@troydavisson

@troydavisson
Copy link
Owner

If you use a 0 instead for the last parameter, does getContent() give you anything?

If it does, it sounds like the server doesn't support providing URLs for photos and you'll need to download them instead (using the zero).

If it doesn't, ml_num might not be the right field to get the ID you need. Look at retsmd.com, pull up a list of fields and then look at "Key Field" mentioned at the top of the list. That's the field with the value you need to use for the getObject request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants