reonomydmsource

package module
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2024 License: Apache-2.0 Imports: 10 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

data-mover-source-reonomy

Data mover source connector for Reonomy

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ReonomySource

type ReonomySource struct {
	AccessKey string
	SecretKey string
	BaseURL   string

	// summary queries to filter properties
	SummaryQueries []map[string]interface{}
	// limit of how many properties to retrieve per API call
	SummaryLimit int
	// property detail types. Valid types are basic, mortgages, ownership,
	// reported_owner, sales, taxes, and tenants.
	PropertyDetailTypes []string
	// whether to supply the filter_pii to the property bulk API endpoint
	FilterPII bool
	// the number of times to retry a request if it fails
	RetryCount int
	// contains filtered or unexported fields
}

ReonomySource struct for use by the data-mover-core

func NewReonomySource

func NewReonomySource(accessKey string, secretKey string, queries []map[string]interface{}, propertyDetailTypes []string, filterPII bool, summaryLimit int, retryCount int) *ReonomySource

NewReonomySource initializes a ReonomySource struct for use by the data-mover-core. The accessKey and secretKey are used for basic authentication to the API.

The query parameter is used to filter which properties to return. The query is passed into the "settings" field in the body of a summaries search. Ref: https://api.reonomy.com/v2/docs/guides/search/#filtered-search.

The detailTypes parameter must be one of: basic, mortgages, ownership, reported_owner, sales, taxes, and tenants. Ref: https://api.reonomy.com/v2/docs/api/data-dictionary/

func (*ReonomySource) GetData

func (s *ReonomySource) GetData() (data []map[string]interface{}, err error)

GetData is the implementation of the GetData interface for the data-mover-core

func (*ReonomySource) Initialize

func (s *ReonomySource) Initialize() error

Initialize is the implementation of the Initialize interface for the data-mover-core

Jump to

Keyboard shortcuts

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