gorets

command
v0.0.0-...-4c6a4f5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 12, 2024 License: GPL-3.0 Imports: 16 Imported by: 0

README

gorets

RETS command line client in Go

These are mostly intended to be examples for how a Go client might use the RETS client.

// connect.json:
{
	"username": "user",
	"password": "pwd",
	"url":	  "http://www.rets.com/rets/login",
	"user-agent": "Company/1.0",
	"user-agent-pw": "",
	"rets-version": "RETS/1.7",
	"wirelog": "/tmp/gorets/wire.log"
}

Example Search:

go run cmds/gorets/*.go search -c connect.json -params sp.json -o /tmp/
// sp.json:
{
	"SearchType": "Property",
	"Class": "Residential",
	"Select": "",
	"Format": "COMPACT_DECODED",
	"Count": 1,
	"Offset": 1,
	"Limit": 2500,
	"QueryType": "dmql2",
	"Query": "(ModifiedDateTime=2016-08-01T00:00:00+)"
}

Example GetObject:

go run cmds/getobject/*.go getobject -c connect.json -type "HiRes" -i "343234:*" -o /tmp/

Example Metadata:

go run cmds/metadata/*.go metadata -c connect.json -output /tmp/

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL