fullcontact

package module
v0.0.0-...-3758d73 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	FcApiKey           = "FC_API_KEY"
	FCGoClientTestType = "FCGoClientTestType"
)

Variables

This section is empty.

Functions

func NewFullContactClient

func NewFullContactClient(options ...ClientOption) (*fullContactClient, error)

Types

type APIResponse

type APIResponse struct {
	RawHttpResponse       *http.Response
	PersonResponse        *PersonResp
	CompanyResponse       *CompanyResponse
	CompanySearchResponse []*CompanySearchResponse
	ResolveResponse       *ResolveResponse
	StatusCode            int
	Status                string
	IsSuccessful          bool
	Err                   error
}

func (*APIResponse) String

func (resp *APIResponse) String() string

type Age

type Age struct {
	Range    string `json:"range"`
	Value    int    `json:"value"`
	Birthday Date   `json:"birthday"`
}

type Apparel

type Apparel struct {
	General           bool `json:"general"`
	Children          bool `json:"children"`
	Men               bool `json:"men"`
	MensBigTall       bool `json:"mensBigTall"`
	NonGenderSpecific bool `json:"nonGenderSpecific"`
	Teenagers         bool `json:"teenagers"`
	Women             bool `json:"women"`
	WomenPetiteSize   bool `json:"womenPetiteSize"`
	WSomenPlusSize    bool `json:"womenPlusSize"`
}

type Automotive

type Automotive struct {
	Ownership Ownership `json:"ownership"`
}

type Average

type Average struct {
	NumberOfCarsInHousehold float64 `json:"numberOfCarsInHousehold"`
}

type Buyer

type Buyer struct {
	Catalog PurchaseBehavior `json:"catalog"`
	Retail  PurchaseBehavior `json:"retail"`
}

type Card

type Card struct {
	Amex             bool `json:"amex"`
	Discover         bool `json:"discover"`
	Other            bool `json:"other"`
	Store            bool `json:"store"`
	VisaOrMasterCard bool `json:"visaOrMasterCard"`
}

type Census

type Census struct {
	BasicTractNumber int      `json:"basicTractNumber"`
	BasicBlockGroup  int      `json:"basicBlockGroup"`
	Year2010         Year2010 `json:"year2010"`
}

type ClientOption

type ClientOption func(fc *fullContactClient)

func WithCredentialsProvider

func WithCredentialsProvider(credentialsProvider CredentialsProvider) ClientOption

func WithHeaders

func WithHeaders(headers map[string]string) ClientOption

func WithRetryHandler

func WithRetryHandler(retryHandler RetryHandler) ClientOption

func WithTimeout

func WithTimeout(timeout int) ClientOption

type Collectibles

type Collectibles struct {
	General           bool `json:"general"`
	Coins             bool `json:"coins"`
	Dolls             bool `json:"dolls"`
	Figurines         bool `json:"figurines"`
	Other             bool `json:"other"`
	Plates            bool `json:"plates"`
	SportsMemorabilia bool `json:"sportsMemorabilia"`
	Stamps            bool `json:"stamps"`
	FineArts          bool `json:"fineArts"`
}

type CompanyCategory

type CompanyCategory struct {
	Code string `json:"code"`
	Name string `json:"name"`
}

type CompanyDetails

type CompanyDetails struct {
	Locales    []Locale          `json:"locales"`
	Category   []CompanyCategory `json:"categories"`
	Entity     Entity            `json:"entity"`
	Industries []Industry        `json:"industries"`
	Emails     []Email           `json:"emails"`
	Phones     []Phone           `json:"phones"`
	Locations  []*Location       `json:"locations"`
	Images     []Photo           `json:"images"`
	Urls       []Url             `json:"urls"`
	Keywords   []string          `json:"keywords"`
	KeyPeople  []People          `json:"keyPeople"`
	Traffic    CompanyTraffic    `json:"traffic"`
	Profiles   Profiles          `json:"profiles"`
}

type CompanyRegion

type CompanyRegion struct {
	Name string `json:"name"`
	Code string `json:"code"`
}

type CompanyRequest

type CompanyRequest struct {
	Domain      string `json:"domain,omitempty"`
	CompanyName string `json:"companyName,omitempty"`
	WebhookUrl  string `json:"webhoookUrl,omitempty"`
	Location    string `json:"location,omitempty"`
	Locality    string `json:"locality,omitempty"`
	Region      string `json:"region,omitempty"`
	Country     string `json:"country,omitempty"`
	Sort        string `json:"sort,omitempty"`
}

func NewCompanyRequest

func NewCompanyRequest(options ...CompanyRequestOption) (*CompanyRequest, error)

type CompanyRequestOption

type CompanyRequestOption func(cr *CompanyRequest)

func WithCompanyName

func WithCompanyName(companyName string) CompanyRequestOption

func WithCountry

func WithCountry(country string) CompanyRequestOption

func WithDomain

func WithDomain(domain string) CompanyRequestOption

func WithLocality

func WithLocality(locality string) CompanyRequestOption

func WithLocationForCompany

func WithLocationForCompany(location string) CompanyRequestOption

func WithRegion

func WithRegion(region string) CompanyRequestOption

func WithSort

func WithSort(sort string) CompanyRequestOption

func WithWebhookUrlForCompany

func WithWebhookUrlForCompany(webhookUrl string) CompanyRequestOption

type CompanyResponse

type CompanyResponse struct {
	Name       string          `json:"name"`
	Location   string          `json:"location"`
	Twitter    string          `json:"twitter"`
	Linkedin   string          `json:"linkedin"`
	Bio        string          `json:"bio"`
	Website    string          `json:"website"`
	Locale     string          `json:"locale"`
	Category   string          `json:"category"`
	Updated    string          `json:"updated"`
	Founded    int             `json:"founded"`
	Employees  int             `json:"employees"`
	DataAddOns []DataAddOns    `json:"dataAddOns"`
	Details    *CompanyDetails `json:"details"`
}

type CompanySearchLocation

type CompanySearchLocation struct {
	Locality string        `json:"locality"`
	Region   CompanyRegion `json:"region"`
	Country  CompanyRegion `json:"country"`
}

type CompanySearchResponse

type CompanySearchResponse struct {
	LookupDomain string                `json:"lookupDomain"`
	OrgName      string                `json:"orgName"`
	Location     CompanySearchLocation `json:"location"`
}

type CompanyTraffic

type CompanyTraffic struct {
	CountryRank TrafficRank `json:"countryRank"`
	LocaleRank  TrafficRank `json:"localeRank"`
}

type CredentialsProvider

type CredentialsProvider interface {
	// contains filtered or unexported methods
}

type CreditCards

type CreditCards struct {
	Premium Card `json:"premium"`
	Regular Card `json:"regular"`
	Debit   bool `json:"debit"`
}

type DataAddOns

type DataAddOns struct {
	Id          string `json:"id"`
	Name        string `json:"name"`
	Description string `json:"description"`
	DocLink     string `json:"docLink"`
}

type Date

type Date struct {
	Year  int `json:"year,omitempty"`
	Month int `json:"month,omitempty"`
	Day   int `json:"day,omitempty"`
}

type DefaultCredentialsProvider

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

func NewDefaultCredentialsProvider

func NewDefaultCredentialsProvider(envVar string) (DefaultCredentialsProvider, error)

type DefaultRetryHandler

type DefaultRetryHandler struct{}

func (*DefaultRetryHandler) RetryAttempts

func (drh *DefaultRetryHandler) RetryAttempts() int

func (*DefaultRetryHandler) RetryDelayMillis

func (drh *DefaultRetryHandler) RetryDelayMillis() int

func (*DefaultRetryHandler) ShouldRetry

func (drh *DefaultRetryHandler) ShouldRetry(responseCode int) bool

type Demographics

type Demographics struct {
	Gender        string `json:"gender"`
	MaritalStatus string `json:"MaritalStatus"`
	Occupation    string `json:"occupation"`
	LivingStatus  string `json:"livingStatus"`
	Age           Age    `json:"age"`
}

type Details

type Details struct {
	Name         *PersonName  `json:"name"`
	Age          Age          `json:"age"`
	Gender       string       `json:"gender"`
	Household    *Household   `json:"household"`
	Demographics Demographics `json:"demographics"`
	Finance      Finance      `json:"finance"`
	Emails       []Email      `json:"emails"`
	Phones       []Phone      `json:"phones"`
	Census       *Census      `json:"census"`
	Survey       *Survey      `json:"survey"`
	Buyer        Buyer        `json:"buyer"`
	Profiles     *Profiles    `json:"profiles"`
	Identifiers  Identifiers  `json:"identifiers"`
	Automotive   Automotive   `json:"automotive"`
	Locations    []Location   `json:"locations"`
	Employment   []Employment `json:"employment"`
	Photos       []Photo      `json:"photos"`
	Education    []Education  `json:"education"`
	Urls         []Url        `json:"urls"`
	Interests    []Interest   `json:"interests"`
}

type DietConcerns

type DietConcerns struct {
	General            bool `json:"general"`
	LoseWeight         bool `json:"loseWeight"`
	EatNatural         bool `json:"eatNatural"`
	VitaminSupplements bool `json:"vitaminSupplements"`
	Healthy            bool `json:"healthy"`
}

type Education

type Education struct {
	Name   string `json:"name"`
	Degree string `json:"degree"`
	End    Date   `json:"end"`
	Start  Date   `json:"start"`
}

type Electronics

type Electronics struct {
	AppleDevice       bool `json:"appleDevice"`
	CableTv           bool `json:"cableTv"`
	HighSpeedInternet bool `json:"highSpeedInternet"`
	Dvr               bool `json:"dvr"`
	DvdPlayer         bool `json:"dvdPlayer"`
	Hdtv              bool `json:"hdtv"`
	HomeTheater       bool `json:"homeTheater"`
	SatelliteRadio    bool `json:"satelliteRadio"`
	SatelliteTv       bool `json:"satelliteTv"`
	VideoGameSystems  bool `json:"videoGameSystems"`
	Other             bool `json:"other"`
}

type Email

type Email struct {
	Label  string `json:"label"`
	Value  string `json:"value"`
	Type   string `json:"type"`
	Md5    string `json:"md5"`
	Sha256 string `json:"sha256"`
}

type Employment

type Employment struct {
	Name    string `json:"name"`
	Title   string `json:"title"`
	Domain  string `json:"domain"`
	Current bool   `json:"current"`
	Start   Date   `json:"start"`
	End     Date   `json:"end"`
}

type Entity

type Entity struct {
	Name      string `json:"name"`
	Founded   int    `json:"founded"`
	Employees int    `json:"employees"`
}

type FamilyInfo

type FamilyInfo struct {
	TotalAdults            int `json:"totalAdults"`
	TotalChildren          int `json:"totalChildren"`
	TotalPeopleInHousehold int `json:"totalPeopleInHousehold"`
}

type Finance

type Finance struct {
	CashValueBalanceHouseholdEstimate string `json:"cashValueBalanceHouseholdEstimate"`
	FinancialDebtRangeEstimate        string `json:"financialDebtRangeEstimate"`
	HouseholdIncomeEstimate           string `json:"householdIncomeEstimate"`
	NetWorthRange                     string `json:"netWorthRange"`
	BankCard                          string `json:"bankCard"`
	RetailCard                        string `json:"retailCard"`
	ActiveLineOfCredit                bool   `json:"activeLineOfCredit"`
	Bankruptcy                        bool   `json:"bankruptcy"`
	DiscretionaryIncomeEstimate       int    `json:"discretionaryIncomeEstimate"`
}

type FullContactError

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

func NewFullContactError

func NewFullContactError(msg string) *FullContactError

func (*FullContactError) Error

func (fcError *FullContactError) Error() string

type Gardening

type Gardening struct {
	General   bool `json:"general"`
	Flowers   bool `json:"flowers"`
	Organic   bool `json:"organic"`
	Vegetable bool `json:"vegetable"`
}

type Hobby

type Hobby struct {
	Gardening                Gardening `json:"gardening"`
	General                  bool      `json:"general"`
	Baking                   bool      `json:"baking"`
	BirdWatching             bool      `json:"birdWatching"`
	Cars                     bool      `json:"cars"`
	CigarSmoking             bool      `json:"cigarSmoking"`
	GourmetCooking           bool      `json:"gourmetCooking"`
	Cooking                  bool      `json:"cooking"`
	Crafts                   bool      `json:"crafts"`
	CasinoGambling           bool      `json:"casinoGambling"`
	HomeImprovement          bool      `json:"homeImprovement"`
	HomeStudyCourses         bool      `json:"homeStudyCourses"`
	Knitting                 bool      `json:"knitting"`
	Lotteries                bool      `json:"lotteries"`
	Quilting                 bool      `json:"quilting"`
	SelfImprovementCourses   bool      `json:"selfImprovementCourses"`
	Sewing                   bool      `json:"sewing"`
	Theater                  bool      `json:"theater"`
	Woodworking              bool      `json:"woodworking"`
	WineAppreciation         bool      `json:"wineAppreciation"`
	Photography              bool      `json:"photography"`
	Exercise3xPerWeek        bool      `json:"exercise3xPerWeek"`
	ScrapBooking             bool      `json:"scrapBooking"`
	LowFatCooking            bool      `json:"lowFatCooking"`
	CareerAdvancementCourses bool      `json:"careerAdvancementCourses"`
	JewelryMaking            bool      `json:"jewelryMaking"`
	Diy                      bool      `json:"diy"`
	Green                    bool      `json:"green"`
	SocialNetworking         bool      `json:"socialNetworking"`
	Spirituality             bool      `json:"spirituality"`
}

type HomeInfo

type HomeInfo struct {
	HomeValueEstimate   int    `json:"homeValueEstimate"`
	LoanToValueEstimate int    `json:"loanToValueEstimate"`
	YearsInHome         int    `json:"yearsInHome"`
	DwellingType        string `json:"dwellingType"`
}

type Household

type Household struct {
	HomeInfo     HomeInfo     `json:"homeInfo"`
	Presence     Presence     `json:"presence"`
	Finance      Finance      `json:"finance"`
	LocationInfo LocationInfo `json:"locationInfo"`
	FamilyInfo   FamilyInfo   `json:"familyInfo"`
}

type Identifiers

type Identifiers struct {
	Maids     []Maids  `json:"maids"`
	PersonIds []string `json:"personIds"`
	RecordIds []string `json:"recordIds"`
}

type Industry

type Industry struct {
	Name string `json:"name"`
	Type string `json:"type"`
	Code string `json:"code"`
}

type Interest

type Interest struct {
	Name      string   `json:"name"`
	Id        string   `json:"id"`
	Affinity  string   `json:"affinity"`
	ParentIds []string `json:"parentIds"`
	Category  string   `json:"category"`
}

type Locale

type Locale struct {
	Code string `json:"code"`
	Name string `json:"name"`
}

type Location

type Location struct {
	AddressLine1 string `json:"addressLine1,omitempty"`
	AddressLine2 string `json:"addressLine2,omitempty"`
	City         string `json:"city,omitempty"`
	Region       string `json:"region,omitempty"`
	RegionCode   string `json:"regionCode,omitempty"`
	Country      string `json:"country,omitempty"`
	CountryCode  string `json:"countryCode,omitempty"`
	Formatted    string `json:"formatted,omitempty"`
	PostalCode   string `json:"postalCode,omitempty"`
	Type         string `json:"type,omitempty"`
	Label        string `json:"type,omitempty"`
}

func NewLocation

func NewLocation(options ...LocationOption) *Location

type LocationInfo

type LocationInfo struct {
	CarrierRoute             string `json:"carrierRoute"`
	DesignatedMarketArea     string `json:"designatedMarketArea"`
	CoreBasedStatisticalArea string `json:"coreBasedStatisticalArea"`
	NielsenCountySize        string `json:"nielsenCountySize"`
	CongressionalDistrict    int    `json:"congressionalDistrict"`
	NumericCountyCode        int    `json:"numericCountyCode"`
	SeasonalAddress          bool   `json:"seasonalAddress"`
}

type LocationOption

type LocationOption func(location *Location)

func WithAddressLine1

func WithAddressLine1(addressLine1 string) LocationOption

func WithAddressLine2

func WithAddressLine2(addressLine2 string) LocationOption

func WithCity

func WithCity(city string) LocationOption

func WithCountryCode

func WithCountryCode(countryCode string) LocationOption

func WithCountryForLocation

func WithCountryForLocation(country string) LocationOption

func WithFormatted

func WithFormatted(formatted string) LocationOption

func WithPostalCode

func WithPostalCode(postalCode string) LocationOption

func WithRegionCode

func WithRegionCode(regionCode string) LocationOption

func WithRegionForLocation

func WithRegionForLocation(region string) LocationOption

type Maids

type Maids struct {
	Id   string `json:"id"`
	Type string `json:"type"`
}

type Median

type Median struct {
	AgeOfHouseholder       int `json:"ageOfHouseholder"`
	EffectiveBuyingIncome  int `json:"effectiveBuyingIncome"`
	HomeValue              int `json:"homeValue"`
	HouseholdIncome        int `json:"householdIncome"`
	HouseholdIncomeByState int `json:"householdIncomeByState"`
}

type Music

type Music struct {
	General           bool `json:"general"`
	ChristianOrGospel bool `json:"christianOrGospel"`
	Classical         bool `json:"classical"`
	Country           bool `json:"country"`
	Jazz              bool `json:"jazz"`
	Other             bool `json:"other"`
	RhythmAndBlues    bool `json:"rhythmAndBlues"`
	Rock              bool `json:"rock"`
	SoftRock          bool `json:"softRock"`
	Swing             bool `json:"swing"`
	Alternative       bool `json:"alternative"`
}

type Own

type Own struct {
	OwnCat           bool `json:"ownCat"`
	OwnDog           bool `json:"ownDog"`
	OwnDigitalCamera bool `json:"ownDigitalCamera"`
	OwnHorse         bool `json:"ownHorse"`
	OwnMotorcycle    bool `json:"ownMotorcycle"`
	OwnSwimmingPool  bool `json:"ownSwimmingPool"`
	OwnAtv           bool `json:"ownAtv"`
	OwnRv            bool `json:"ownRv"`
}

type Ownership

type Ownership struct {
	TotalCars string    `json:"totalCars"`
	Vehicles  []Vehicle `json:"vehicles"`
}

type Payment

type Payment struct {
	Amx         bool `json:"amx"`
	CreditCard  bool `json:"creditCard"`
	Discover    bool `json:"discover"`
	HouseCharge bool `json:"houseCharge"`
	MasterCard  bool `json:"masterCard"`
	RetailCard  bool `json:"retailCard"`
	Visa        bool `json:"visa"`
}

type People

type People struct {
	FullName string `json:"fullName"`
	Title    string `json:"title"`
	Avatar   string `json:"avatar"`
}

type Percent

type Percent struct {
	AbovePovertyLevel      int `json:"abovePovertyLevel"`
	BelowPovertyLevel      int `json:"belowPovertyLevel"`
	Black                  int `json:"black"`
	BlueCollarEmployed     int `json:"blueCollarEmployed"`
	DivorcedOrSeparated    int `json:"divorcedOrSeparated"`
	Hispanic               int `json:"hispanic"`
	HomesBuiltSince2000    int `json:"homesBuiltSince2000"`
	Homeowner              int `json:"homeowner"`
	HouseholdsWithChildren int `json:"householdsWithChildren"`
	Married                int `json:"married"`
	MobileHome             int `json:"mobileHome"`
	MovedToAreaSince2000   int `json:"movedToAreaSince2000"`
	SalariedProfessional   int `json:"salariedProfessional"`
	SingleFamilyHome       int `json:"singleFamilyHome"`
	VehicleOwnership       int `json:"vehicleOwnership"`
	White                  int `json:"white"`
}

type PersonName

type PersonName struct {
	Given  string `json:"given,omitempty"`
	Family string `json:"family,omitempty"`
	Full   string `json:"full,omitempty"`
}

func NewPersonName

func NewPersonName(options ...PersonNameOptions) *PersonName

type PersonNameOptions

type PersonNameOptions func(name *PersonName)

func WithFamily

func WithFamily(family string) PersonNameOptions

func WithFull

func WithFull(full string) PersonNameOptions

func WithGiven

func WithGiven(given string) PersonNameOptions

type PersonRequest

type PersonRequest struct {
	Emails     []string    `json:"emails,omitempty"`
	Phones     []string    `json:"phones,omitempty"`
	DataFilter []string    `json:"dataFilter,omitempty"`
	Maid       []string    `json:"maids,omitempty"`
	Location   *Location   `json:"location,omitempty"`
	Name       *PersonName `json:"name,omitempty"`
	Profiles   []*Profile  `json:"profiles,omitempty"`
	WebhookUrl string      `json:"webhookUrl,omitempty"`
	RecordId   string      `json:"recordId,omitempty"`
	PersonId   string      `json:"personId,omitempty"`
	Confidence string      `json:"confidence,omitempty"`
	Infer      bool        `json:"infer,omitempty"`
}

func NewPersonRequest

func NewPersonRequest(option ...PersonRequestOption) (*PersonRequest, error)

type PersonRequestOption

type PersonRequestOption func(pr *PersonRequest)

func WithConfidence

func WithConfidence(confidence string) PersonRequestOption

func WithDataFilter

func WithDataFilter(dataFilter string) PersonRequestOption

func WithDataFilters

func WithDataFilters(dataFilters []string) PersonRequestOption

func WithEmail

func WithEmail(email string) PersonRequestOption

func WithEmails

func WithEmails(emails []string) PersonRequestOption

func WithInfer

func WithInfer(infer bool) PersonRequestOption

func WithLocation

func WithLocation(location *Location) PersonRequestOption

func WithMaid

func WithMaid(maid string) PersonRequestOption

func WithMaids

func WithMaids(maids []string) PersonRequestOption

func WithName

func WithName(name *PersonName) PersonRequestOption

func WithPersonId

func WithPersonId(personId string) PersonRequestOption

func WithPhone

func WithPhone(phone string) PersonRequestOption

func WithPhones

func WithPhones(phones []string) PersonRequestOption

func WithProfile

func WithProfile(profile *Profile) PersonRequestOption

func WithProfiles

func WithProfiles(profiles []*Profile) PersonRequestOption

func WithRecordId

func WithRecordId(recordId string) PersonRequestOption

func WithWebhookUrl

func WithWebhookUrl(webhookUrl string) PersonRequestOption

type PersonResp

type PersonResp struct {
	FullName     string   `json:"fullName"`
	Email        string   `json:"email"`
	Phone        string   `json:"phone"`
	AgeRange     string   `json:"ageRange"`
	Gender       string   `json:"gender"`
	Location     string   `json:"location"`
	Title        string   `json:"title"`
	Organization string   `json:"organization"`
	Twitter      string   `json:"twitter"`
	Linkedin     string   `json:"linkedin"`
	Bio          string   `json:"bio"`
	Avatar       string   `json:"avatar"`
	Website      string   `json:"website"`
	Details      *Details `json:"details"`
	Updated      string   `json:"updated"`
}

type Phone

type Phone struct {
	Label  string `json:"label"`
	Value  string `json:"value"`
	Type   string `json:"type"`
	Md5    string `json:"md5"`
	Sha256 string `json:"sha256"`
}

type Photo

type Photo struct {
	Label string `json:"label,omitempty"`
	Value string `json:"value,omitempty"`
}

type PopulationDensity

type PopulationDensity struct {
	CentileInState int `json:"centileInState"`
	CentileInUs    int `json:"centileInUs"`
}

type Presence

type Presence struct {
	Children                  string `json:"children"`
	MultigenerationalResident string `json:"multigenerationalResident"`
}

type Profile

type Profile struct {
	URL      string `json:"url,omitempty"`
	Username string `json:"username,omitempty"`
	UserId   string `json:"userid,omitempty"`
	Service  string `json:"service,omitempty"`
}

func NewProfile

func NewProfile(options ...ProfileOptions) (*Profile, error)

type ProfileData

type ProfileData struct {
	URL       string  `json:"url"`
	Username  string  `json:"username"`
	UserId    string  `json:"userid"`
	Service   string  `json:"service"`
	Bio       string  `json:"bio"`
	Followers int     `json:"followers"`
	Following int     `json:"following"`
	Photos    []Photo `json:"photos"`
	Urls      []Url   `json:"urls"`
}

type ProfileOptions

type ProfileOptions func(*Profile)

func WithService

func WithService(service string) ProfileOptions

func WithUrl

func WithUrl(url string) ProfileOptions

func WithUserid

func WithUserid(userid string) ProfileOptions

func WithUsername

func WithUsername(username string) ProfileOptions

type Profiles

type Profiles struct {
	Twitter         ProfileData `json:"twitter"`
	Linkedin        ProfileData `json:"linkedin"`
	Linkedincompany ProfileData `json:"linkedinCompany"`
	Klout           ProfileData `json:"klout"`
	Youtube         ProfileData `json:"youtube"`
	Angellist       ProfileData `json:"angellist"`
	Owler           ProfileData `json:"owler"`
	Pinterest       ProfileData `json:"pinterest"`
}

type Purchase

type Purchase struct {
	HomeDecorating          bool `json:"homeDecorating"`
	BeautyProducts          bool `json:"beautyProducts"`
	ClubStores              bool `json:"clubStores"`
	FastFoods               bool `json:"fastFoods"`
	SpecialtyBeautyProducts bool `json:"specialtyBeautyProducts"`
	UsesCoupons             bool `json:"usesCoupons"`
}

type PurchaseBehavior

type PurchaseBehavior struct {
	Apparel             Apparel `json:"apparel"`
	Payment             Payment `json:"payment"`
	ArtsAntiques        bool    `json:"artsAntiques"`
	Automative          bool    `json:"automative"`
	Beauty              bool    `json:"beauty"`
	Books               bool    `json:"books"`
	ChildrenProducts    bool    `json:"childrenProducts"`
	Collectibles        bool    `json:"collectibles"`
	HomeOffice          bool    `json:"homeOffice"`
	Crafts              bool    `json:"crafts"`
	Electronics         bool    `json:"electronics"`
	FoodBeverages       bool    `json:"foodBeverages"`
	Furniture           bool    `json:"furniture"`
	Garden              bool    `json:"garden"`
	GeneralMerchandise  bool    `json:"generalMerchandise"`
	Gift                bool    `json:"gift"`
	Health              bool    `json:"health"`
	Holiday             bool    `json:"holiday"`
	HomeCare            bool    `json:"homeCare"`
	HomeFurnishings     bool    `json:"homeFurnishings"`
	Housewares          bool    `json:"housewares"`
	Jewelry             bool    `json:"jewelry"`
	Linens              bool    `json:"linens"`
	Music               bool    `json:"music"`
	Novelty             bool    `json:"novelty"`
	OtherMerchServices  bool    `json:"otherMerchServices"`
	PersonalCare        bool    `json:"personalCare"`
	Pets                bool    `json:"pets"`
	PhotoVideoEquipment bool    `json:"photoVideoEquipment"`
	SpecialtyFood       bool    `json:"specialtyFood"`
	SpecialtyGifts      bool    `json:"specialtyGifts"`
	SportsLeisure       bool    `json:"sportsLeisure"`
	Stationery          bool    `json:"stationery"`
	Travel              bool    `json:"travel"`
	VideoEntertainment  bool    `json:"videoEntertainment"`
	ContinuityShopper   bool    `json:"continuityShopper"`
	OnlineShopper       bool    `json:"onlineShopper"`
}

type Rank

type Rank struct {
	Rank int    `json:"rank"`
	Name string `json:"name"`
}

type Reading

type Reading struct {
	LikesToRead           bool `json:"likesToRead"`
	Astrology             bool `json:"astrology"`
	BibleOrDevotional     bool `json:"bibleOrDevotional"`
	BestSellingFiction    bool `json:"bestSellingFiction"`
	Audiobooks            bool `json:"audiobooks"`
	Childrens             bool `json:"childrens"`
	Cooking               bool `json:"cooking"`
	Computer              bool `json:"computer"`
	CountryLifestyle      bool `json:"countryLifestyle"`
	Fashion               bool `json:"fashion"`
	History               bool `json:"history"`
	InteriorDecorating    bool `json:"interiorDecorating"`
	Health                bool `json:"health"`
	Military              bool `json:"military"`
	Mystery               bool `json:"mystery"`
	NaturalHealthRemedies bool `json:"naturalHealthRemedies"`
	Entertainment         bool `json:"entertainment"`
	Romance               bool `json:"romance"`
	ScienceFiction        bool `json:"scienceFiction"`
	Technology            bool `json:"technology"`
	Sports                bool `json:"sports"`
	WorldNewsOrPolitics   bool `json:"worldNewsOrPolitics"`
	Suspense              bool `json:"suspense"`
	BestSellers           bool `json:"bestSellers"`
	BookClub              bool `json:"bookClub"`
	Comics                bool `json:"comics"`
	Financial             bool `json:"financial"`
	HomeAndGarden         bool `json:"homeAndGarden"`
	SelfImprovement       bool `json:"selfImprovement"`
	Travel                bool `json:"travel"`
	Magazines             bool `json:"magazines"`
}

type ResolveRequest

type ResolveRequest struct {
	Emails   []string    `json:"emails,omitempty"`
	Phones   []string    `json:"phones,omitempty"`
	Maid     []string    `json:"maids,omitempty"`
	Location *Location   `json:"location,omitempty"`
	Name     *PersonName `json:"name,omitempty"`
	Profiles []*Profile  `json:"profiles,omitempty"`
	RecordId string      `json:"recordId,omitempty"`
	PersonId string      `json:"personId,omitempty"`
}

func NewResolveRequest

func NewResolveRequest(option ...ResolveRequestOption) (*ResolveRequest, error)

type ResolveRequestOption

type ResolveRequestOption func(pr *ResolveRequest)

func WithEmailForResolve

func WithEmailForResolve(email string) ResolveRequestOption

func WithEmailsForResolve

func WithEmailsForResolve(emails []string) ResolveRequestOption

func WithLocationForResolve

func WithLocationForResolve(location *Location) ResolveRequestOption

func WithMaidForResolve

func WithMaidForResolve(maid string) ResolveRequestOption

func WithMaidsForResolve

func WithMaidsForResolve(maids []string) ResolveRequestOption

func WithNameForResolve

func WithNameForResolve(name *PersonName) ResolveRequestOption

func WithPersonIdForResolve

func WithPersonIdForResolve(personId string) ResolveRequestOption

func WithPhoneForResolve

func WithPhoneForResolve(phone string) ResolveRequestOption

func WithPhonesForResolve

func WithPhonesForResolve(phones []string) ResolveRequestOption

func WithProfileForResolve

func WithProfileForResolve(profile *Profile) ResolveRequestOption

func WithProfilesForResolve

func WithProfilesForResolve(profiles []*Profile) ResolveRequestOption

func WithRecordIdForResolve

func WithRecordIdForResolve(recordId string) ResolveRequestOption

type ResolveResponse

type ResolveResponse struct {
	RecordIds []string `json:"recordIds"`
	PersonIds []string `json:"personIds"`
}

type RetryHandler

type RetryHandler interface {
	ShouldRetry(responseCode int) bool
	RetryAttempts() int
	RetryDelayMillis() int
}

type Sporting

type Sporting struct {
	Other            bool `json:"other"`
	CampingOrHiking  bool `json:"campingOrHiking"`
	Baseball         bool `json:"baseball"`
	Boating          bool `json:"boating"`
	Basketball       bool `json:"basketball"`
	Fishing          bool `json:"fishing"`
	AmericanFootball bool `json:"americanFootball"`
	Fitness          bool `json:"fitness"`
	Golf             bool `json:"golf"`
	Hockey           bool `json:"hockey"`
	Hunting          bool `json:"hunting"`
	Nascar           bool `json:"nascar"`
	SnowSkiing       bool `json:"snowSkiing"`
	Walking          bool `json:"walking"`
	Running          bool `json:"running"`
	Scuba            bool `json:"scuba"`
	Tennis           bool `json:"tennis"`
	WeightLifting    bool `json:"weightLifting"`
	Biking           bool `json:"biking"`
	ExtremeSports    bool `json:"extremeSports"`
	Motocross        bool `json:"motocross"`
	Skateboarding    bool `json:"skateboarding"`
	Snowboarding     bool `json:"snowboarding"`
	Rollerblading    bool `json:"rollerblading"`
	Interests        bool `json:"interests"`
}

type StaticCredentialsProvider

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

func NewStaticCredentialsProvider

func NewStaticCredentialsProvider(apiKey string) (StaticCredentialsProvider, error)

type Survey

type Survey struct {
	Own             Own          `json:"own"`
	Collectibles    Collectibles `json:"collectibles"`
	CreditCards     CreditCards  `json:"creditCards"`
	DietConcerns    DietConcerns `json:"dietConcerns"`
	Hobby           Hobby        `json:"hobby"`
	Music           Music        `json:"music"`
	Reading         Reading      `json:"reading"`
	Sporting        Sporting     `json:"sporting"`
	Travel          Travel       `json:"travel"`
	Electronics     Electronics  `json:"electronics"`
	Purchase        Purchase     `json:"purchase"`
	Religious       bool         `json:"religious"`
	Grandchildren   bool         `json:"grandchildren"`
	OnlinePurchaser bool         `json:"onlinePurchaser"`
	Investments     bool         `json:"investments"`
}

type TrafficRank

type TrafficRank struct {
	Global Rank `json:"global"`
	Us     Rank `json:"us"`
	In     Rank `json:"in"`
	Gb     Rank `json:"gb"`
}

type Travel

type Travel struct {
	General                 bool `json:"general"`
	UsBusiness              bool `json:"usBusiness"`
	InternationalBusiness   bool `json:"internationalBusiness"`
	UsPersonal              bool `json:"usPersonal"`
	InternationalPersonal   bool `json:"internationalPersonal"`
	CasinoVacations         bool `json:"casinoVacations"`
	FamilyVacations         bool `json:"familyVacations"`
	FrequentFlyer           bool `json:"frequentFlyer"`
	Timeshare               bool `json:"timeshare"`
	VacationCruises         bool `json:"vacationCruises"`
	AttractionsOrThemeParks bool `json:"attractionsOrThemeParks"`
	Rv                      bool `json:"rv"`
}

type Url

type Url struct {
	Label string `json:"label,omitempty"`
	Value string `json:"value,omitempty"`
}

type Vehicle

type Vehicle struct {
	BodyStyle    string `json:"bodyStyle"`
	FuelType     string `json:"fuelType"`
	Make         string `json:"make"`
	Model        string `json:"model"`
	PurchaseType string `json:"purchaseType"`
	PurchaseDate int    `json:"purchaseDate"`
	Year         int    `json:"year"`
}

type Year2010

type Year2010 struct {
	EducationLevel     string            `json:"educationLevel"`
	SocioEconomicScore int               `json:"socioEconomicScore"`
	Average            Average           `json:"average"`
	Percent            Percent           `json:"percent"`
	Median             Median            `json:"median"`
	PopulationDensity  PopulationDensity `json:"populationDensity"`
}

Jump to

Keyboard shortcuts

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