smartystreets-go-sdk: github.com/smartystreets/smartystreets-go-sdk Index | Files | Directories

package sdk

import "github.com/smartystreets/smartystreets-go-sdk"

sdk is a top-level package containing elements common to all SmartyStreets APIs.

Index

Package Files

credential.go doc.go http_status_error.go secret_key_credential.go version.go website_key_credential.go

Constants

const VERSION = "v1.2.0"

func NewSecretKeyCredential Uses

func NewSecretKeyCredential(authID, authToken string) *secretKeyCredential

func NewWebsiteKeyCredential Uses

func NewWebsiteKeyCredential(key, hostNameOrIP string) *websiteKeyCredential

type Credential Uses

type Credential interface {
    Sign(*http.Request) error
}

type HTTPStatusError Uses

type HTTPStatusError struct {
    // contains filtered or unexported fields
}

HTTPStatusError stands in for the error type but also provides convenience methods for accessing the status code and content of the request that caused the error. Instances of this type are returned by sdk.HTTPSender.Send(). When nil, the methods of this type behave as if called on a non-nil instance instantiated with http.StatusOK (200).

func NewHTTPStatusError Uses

func NewHTTPStatusError(statusCode int, content []byte) *HTTPStatusError

func (*HTTPStatusError) Content Uses

func (e *HTTPStatusError) Content() string

func (*HTTPStatusError) Error Uses

func (e *HTTPStatusError) Error() string

func (*HTTPStatusError) StatusCode Uses

func (e *HTTPStatusError) StatusCode() int

type RequestSender Uses

type RequestSender interface {
    Send(*http.Request) ([]byte, error)
}

Directories

PathSynopsis
internal/sdk
international-street-api
us-autocomplete-api
us-extract-api
us-street-api
us-zipcode-api
wireup

Package sdk imports 4 packages (graph) and is imported by 7 packages. Updated 2019-09-28. Refresh now. Tools for package owners.