Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is responsible for sending requests to the us-extract-api.
func NewClient ¶
func NewClient(sender sdk.RequestSender) *Client
NewClient creates a client with the provided sender.
func (*Client) SendLookup ¶
SendBatch sends the batch of inputs, populating the output for each input if the batch was successful.
type ExtractedAddress ¶
type HTMLPayload ¶
type HTMLPayload string
const ( HTMLUnspecified HTMLPayload = "" // Indicates that the server may decide if Lookup.Text is HTML or not. HTMLYes HTMLPayload = "true" // Indicates that the Lookup.Text is known to be HTML. HTMLNo HTMLPayload = "false" // Indicates that the Lookup.Text is known to NOT be HTML. )
type Lookup ¶
type Lookup struct { Text string HTML HTMLPayload Aggressive bool AddressesWithLineBreaks bool AddressesPerLine int Result *Result }
Lookup represents all input fields documented here: https://smartystreets.com/docs/cloud/us-extract-api#http-request-input-fields
type Result ¶
type Result struct { Metadata Metadata `json:"meta"` Addresses []ExtractedAddress `json:"addresses"` }
Result, Metadata, and ExtractedAddress represent all output fields documented here: https://smartystreets.com/docs/cloud/us-extract-api#http-response
Click to show internal directories.
Click to hide internal directories.