This repository has been archived by the owner on Dec 30, 2022. It is now read-only.
forked from fullcontact/fullcontact-go
/
person.go
167 lines (147 loc) · 4.56 KB
/
person.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
package fullcontact
/* This contains all the Person centric response models for the Person Enrich API */
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 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 Demographics struct {
Gender string `json:"gender"`
MaritalStatus string `json:"MaritalStatus"`
Occupation string `json:"occupation"`
LivingStatus string `json:"livingStatus"`
Age Age `json:"age"`
}
type Email struct {
Label string `json:"label"`
Value string `json:"value"`
Type string `json:"type"`
Md5 string `json:"md5"`
Sha256 string `json:"sha256"`
}
type Phone struct {
Label string `json:"label"`
Value string `json:"value"`
Type string `json:"type"`
Md5 string `json:"md5"`
Sha256 string `json:"sha256"`
}
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 Photo struct {
Label string `json:"label,omitempty"`
Value string `json:"value,omitempty"`
}
type Date struct {
Year int `json:"year,omitempty"`
Month int `json:"month,omitempty"`
Day int `json:"day,omitempty"`
}
type Education struct {
Name string `json:"name"`
Degree string `json:"degree"`
End Date `json:"end"`
Start Date `json:"start"`
}
type Url struct {
Label string `json:"label,omitempty"`
Value string `json:"value,omitempty"`
}
type Interest struct {
Name string `json:"name"`
Id string `json:"id"`
Affinity string `json:"affinity"`
ParentIds []string `json:"parentIds"`
Category string `json:"category"`
}
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 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 Age struct {
Range string `json:"range"`
Value int `json:"value"`
Birthday Date `json:"birthday"`
}
type Identifiers struct {
Maids []Maids `json:"maids"`
PersonIds []string `json:"personIds"`
RecordIds []string `json:"recordIds"`
}
type Maids struct {
Id string `json:"id"`
Type string `json:"type"`
}
type Automotive struct {
Ownership Ownership `json:"ownership"`
}
type Ownership struct {
TotalCars string `json:"totalCars"`
Vehicles []Vehicle `json:"vehicles"`
}
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"`
}