Ask Your Question

SJSR-Retrieve Image Data

asked 2021-10-15 13:58:47 -0600

updated 2021-10-18 13:24:37 -0600

Good Afternoon,

I've been trying to access image data for SJSR IDX feed for the last few days and am hoping someone can show me the error of my ways.

I tried to access it through the Media resource first and was greeted by the SystemNames, but all the data was NULL and at the end of the file it said

["restricted_indicator":protected]=> string(4) "**" ["maxrows_reached":protected]=> bool(false)

I then tried this query

$search = $rets->Search($resource, $class, $query, array('RestrictedIndicator' => 'RESTRICTED') );

and was returned with

["restricted_indicator":protected]=> string(10) "RESTRICTED" ["maxrows_reached":protected]=> bool(false)

Figured I'll try a few more methods, onto getobject! I tried a simple getobject

$objects = $rets->GetObject("Media", "RE_1", "547088", "*", 1); var_dump($objects);

Everything in the value said protected and at the end of the result it read "Invalid Type [RE_1]"

I tried the url getObject next

I was kindly returned with another RETS ReplyCode="20401" ReplyText="Invalid Type [RE_1]. "

I double checked the class through and confirmed the class is RE_1 and RE_1 is the same for the property resource and that works fine!

I then tried to access the data from the URL, found all the metadata and searched with this query

I was once again returned with all the names of the columns but at the end was again greeted with RETS-STATUS ReplyCode="20201" ReplyText="No Records Found."

Just to be sure I wasn't losing my mind, I replaced "SearchType=Media" with "SearchType=Property" and I DID get data from that query, for some reason I simply can't access the urls of the images and I'm hoping someone can help me find my small, yet annoying error that I simply can't see.

Thanks for your time!

EDIT: After a few more hours of debugging and looking at the raw data, I'm convinced I don't have permission to view the RE_1 class in the Media Resource, I've successfully retrieved image data from the 5 other Media Classes. If you are part of the SJSR MLS and are able to access the RE_1 class of the Media Resource, please let me know.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2021-10-18 14:35:37 -0600

You should be able to access RE_1 using the Media resource now.
There was an issue with the configuration.

edit flag offensive delete link more


Thank you so much Bruce! You're a gentleman and a scholar!

WaltzerWhite18 gravatar imageWaltzerWhite18 ( 2021-10-18 14:41:34 -0600 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2021-10-15 13:58:47 -0600

Seen: 124 times

Last updated: Oct 18 '21