Please use this Login URL: "http://saam-rets.paragonrels.com/rets/fnisrets.aspx/SAAM/login?rets-version=rets/1.7.2"
I don't see where you are sending the Query parameter. The Query parameter is only optional for RETS/1.8 and up and you are using 1.7.2.
If you don't want to use a specific query you can use a generic one like this depending on the resource:
Property/Media/Tour/OpenHouse: (L_ListingID=0+)
Agent/ActiveAgent: (U_AgentID=0+)
Office/ActiveOffice: (O_OfficeID=0+)
Also in our logs I see some requests returning invalid class error.
The valid property classes for SAAM are: RE_1, LD_2, CI_3, RI_4
Update 8/18/2016 09:20 CST
There are some examples of how to use PHRETS and how to do searches on github.com:
"https://github.com/troydavisson/PHRETS"
"https://github.com/troydavisson/PHRETS/wiki/SearchQuery"
I see a few things wrong with your code:
You didn't provide a query for your search unless you specify RETS/1.8 the query parameter is required. If you add something like (L_ListingID=0+) it should work.
The Select parameter tells what data fields to return. If you leave it off, it returns all available fields. You have it set to: "LIST_1" which isn't a valid field name.
Something like this should work provided you did the other steps to establish a connection:
$results = $rets->Search("property", "RE_1", "(L_ListingID=0+)", array('Limit' => 5, 'Select' => 'L_ListingID'));
// print_r($results);
foreach ($results as $r) {
var_dump($r);
}
I would also suggest doing a logout, which I think is $rets->Disconnect(), when you are finished which the PHRETS examples don't show which will make sure the session gets closed.
What MLS URL and account name? Was the login successful?
MLS URL: http://saam.rets.fnismls.com/rets/fni... username: rnettleton