-
-
Save arielallon/b07a6c838613f9322c14ae467a27330d to your computer and use it in GitHub Desktop.
RETS server connectivity via curl
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl \ | |
--digest \ | |
--user-agent "MyCurlClient/1.0" \ | |
-o data/metadata.xml \ | |
--show-error \ | |
--dump-header data/headers.txt \ | |
-u "username:password" \ | |
--header "RETS-Version: RETS/1.5" \ | |
--cookie-jar data/cookies.txt \ | |
--cookie data/cookies.txt \ | |
--data Type=METADATA-SYSTEM \ | |
--data ID=* \ | |
--data Format=COMPACT \ | |
"https://rets.crmls.org/contact/rets/getMetadata" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl --digest \ | |
--user-agent "MyCurlClient/1.0" \ | |
-o data/login.xml \ | |
--show-error \ | |
--dump-header data/headers.txt \ | |
-u "username:password" \ | |
--header "RETS-Version: RETS/1.5" \ | |
--cookie-jar data/cookies.txt \ | |
"url" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl \ | |
--digest \ | |
--user-agent "MyCurlClient/1.0" \ | |
-o "data/search.xml" \ | |
--show-error \ | |
--dump-header data/headers.txt \ | |
-u "username:password" \ | |
--header "RETS-Version: RETS/1.5" \ | |
--cookie-jar data/cookies.txt \ | |
--cookie data/cookies.txt \ | |
--data Format=COMPACT \ | |
--data SearchType=Property \ | |
--data Class=Residential \ | |
--data StandardNames=0 \ | |
--data QueryType=DMQL2 \ | |
--data Query="(Status=A+)" \ | |
"https://rets.crmls.org/contact/rets/search" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl \ | |
--digest \ | |
--user-agent "MyCurlClient/1.0" \ | |
-o "data/search2.xml" \ | |
--show-error \ | |
--dump-header data/headers.txt \ | |
-u "username:password" \ | |
--header "RETS-Version: RETS/1.5" \ | |
--cookie-jar data/cookies.txt \ | |
--cookie data/cookies.txt \ | |
--data Format=COMPACT \ | |
--data SearchType=Media \ | |
--data Class=Media \ | |
--data StandardNames=0 \ | |
--data QueryType=DMQL2 \ | |
--data Query="(MediaKey=),(MediaType=IMAGE)" \ | |
"https://rets.crmls.org/contact/rets/search" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment