connecting to TREB RETS

588 views
Skip to first unread message

Mehdi Mirza

unread,
Jan 15, 2014, 10:32:40 PM1/15/14
to lib...@googlegroups.com
Hello,

Does anyone have any documentation to connect to TREB RETS? a sample code would help. 
but i dont receive any response, is there a different procedure for TREB?

Thanks,
Mehdi

Keith T. Garner

unread,
Jan 16, 2014, 11:31:06 AM1/16/14
to For discussion and help for and by the users of the libRETS C++ library
Have you turned on HTTP logging? What shows up in the logs?

Keith
> _______________________________________________
> libRETS-users mailing list
> libRET...@crt.realtors.org
> http://mail.crt.realtors.org/mailman/listinfo/librets-users

--
Keith T. Garner - kga...@realtors.org - 312-329-3294 - http://realtor.org/
National Association of REALTORS® - VP - Information Technology Services

_______________________________________________
libRETS-users mailing list
libRET...@crt.realtors.org
http://mail.crt.realtors.org/mailman/listinfo/librets-users

Mehdi Mirza

unread,
Jan 16, 2014, 1:55:14 PM1/16/14
to lib...@googlegroups.com
Keith,

Thanks for directing me to HTTP logging, i now see the header results and i am now able to get my user details.
This is just my first step, hope to build my application soon.

Mehdi
Message has been deleted

Keith T. Garner

unread,
Jan 17, 2014, 4:45:45 PM1/17/14
to For discussion and help for and by the users of the libRETS C++ library
No can do, I don't know of the particulars of that MLS.  You'll need to look at their metadata to craft a query.

Keith

On Jan 16, 2014, at 6:19 PM, Mehdi Mirza <mehdi...@gmail.com> wrote:

Keith,

can you help me with the query, i want to download all the listings as this is the first dump. I am getting this error "<RETS ReplyCode="20206" ReplyText="Invalid DMQL query (0)"/>`` Below is my query 
  SearchRequest searchRequest = session.CreateSearchRequest(
                                                    "Property",
                                                    "ResidentialProperty",
                                                    "(Status='A')");
            searchRequest.SetStandardNames(true);
            searchRequest.SetSelect("ListingID,ListPrice,Beds,City");
            searchRequest.SetLimit(SearchRequest.LIMIT_NONE);
            searchRequest.SetOffset(SearchRequest.OFFSET_NONE);
            searchRequest.SetCountType(SearchRequest.CountType.RECORD_COUNT_AND_RESULTS);

Thanks,
Mehdi 

David Bills

unread,
Jan 17, 2014, 4:55:55 PM1/17/14
to For discussion and help for and by the users of the libRETS C++library

Shouldn’t status be formatted as:

(Status=|A)

 

…since status is normally a lookup value?

Mehdi Mirza

unread,
Jan 17, 2014, 5:21:23 PM1/17/14
to lib...@googlegroups.com
Status=A worked for me, downloaded all data without specifying any select options 
--
You received this message because you are subscribed to a topic in the Google Groups "LibRets Mirror" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/librets/MsbJeLD6c88/unsubscribe.
To unsubscribe from this group and all its topics, send an email to librets+u...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Reply all
Reply to author
Forward
0 new messages