Skip to content
troydavisson edited this page Nov 10, 2012 · 18 revisions

Examples

Note: These examples may not work in all cases depending on the features supported (and correctly implemented) by the RETS server

Quick Connection Tests

  • [Connect, quick request to verify connection is good, disconnect](wiki/Connect, quick request to verify connection is good, disconnect)
  • [Connect (using User-Agent authentication), verify connection, disconnect](wiki/Connect using User-Agent authentication)
  • [Connect with a specific user-agent, verify and disconnect](wiki/Connect with a specific user-agent, verify and disconnect)

Data Downloads

  • [Connect, download listing data in CSV format, disconnect](wiki/Connect, download listing data in CSV format, disconnect) - Requires 'Offset' support on the server
  • [Connect, download listing data in CSV format, disconnect using auto-Offset feature](wiki/Connect, download listing data in CSV format, disconnect using auto-Offset feature) - Requires 'Offset' support on the server and PHRETS 1.0rc2 or greater

Documentation

View the list of functions

Code Snippets

  • [Create MySQL tables from RETS metadata](wiki/Create MySQL tables from RETS metadata) - Takes the RETS METADATA-TABLE definitions and makes the SQL to create the database table in MySQL
  • [Create Batch List](wiki/Create Batch List) - Allows you to pass an array of values and returns a comma separated list of those values. Very helpful with PHRETS GetObject() requests.

Tips and Tricks

  • [flexmls RETS server](wiki/flexmls RETS server)