-
Notifications
You must be signed in to change notification settings - Fork 0
/
model_user.go
129 lines (127 loc) · 5.47 KB
/
model_user.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
package instagram
// UserTags struct
type UserTags struct {
Status string `json:"status"`
NumResults int `json:"num_results"`
AutoLoadMoreEnabled bool `json:"auto_load_more_enabled"`
Items []struct {
Code string `json:"code"`
Usertags struct {
In []struct {
Position []float64 `json:"position"`
User struct {
Username string `json:"username"`
Pk int `json:"pk"`
ProfilePicURL string `json:"profile_pic_url"`
IsPrivate bool `json:"is_private"`
FullName string `json:"full_name"`
} `json:"user"`
} `json:"in"`
} `json:"usertags"`
MaxNumVisiblePreviewComments int `json:"max_num_visible_preview_comments"`
LikeCount int `json:"like_count"`
ImageVersions2 struct {
Candidates []struct {
URL string `json:"url"`
Width int `json:"width"`
Height int `json:"height"`
} `json:"candidates"`
} `json:"image_versions2"`
ID string `json:"id"`
ClientCacheKey string `json:"client_cache_key"`
Comments []struct {
Status string `json:"status"`
UserID int `json:"user_id"`
CreatedAtUtc int `json:"created_at_utc"`
CreatedAt int `json:"created_at"`
BitFlags int `json:"bit_flags"`
User struct {
Username string `json:"username"`
Pk int `json:"pk"`
ProfilePicURL string `json:"profile_pic_url"`
IsPrivate bool `json:"is_private"`
FullName string `json:"full_name"`
} `json:"user"`
ContentType string `json:"content_type"`
Text string `json:"text"`
MediaID int64 `json:"media_id"`
Pk int64 `json:"pk"`
Type int `json:"type"`
} `json:"comments"`
DeviceTimestamp float64 `json:"device_timestamp"`
CommentCount int `json:"comment_count"`
MediaType int `json:"media_type"`
OrganicTrackingToken string `json:"organic_tracking_token"`
CaptionIsEdited bool `json:"caption_is_edited"`
OriginalHeight int `json:"original_height"`
User struct {
Username string `json:"username"`
HasAnonymousProfilePicture bool `json:"has_anonymous_profile_picture"`
IsUnpublished bool `json:"is_unpublished"`
FriendshipStatus struct {
Following bool `json:"following"`
OutgoingRequest bool `json:"outgoing_request"`
} `json:"friendship_status"`
ProfilePicURL string `json:"profile_pic_url"`
IsFavorite bool `json:"is_favorite"`
FullName string `json:"full_name"`
Pk int64 `json:"pk"`
IsPrivate bool `json:"is_private"`
} `json:"user"`
Pk int64 `json:"pk"`
HasLiked bool `json:"has_liked"`
HasMoreComments bool `json:"has_more_comments"`
PhotoOfYou bool `json:"photo_of_you"`
Caption interface{} `json:"caption"`
TakenAt float64 `json:"taken_at"`
OriginalWidth int `json:"original_width"`
FilterType int `json:"filter_type,omitempty"`
Lng float64 `json:"lng,omitempty"`
Lat float64 `json:"lat,omitempty"`
Location struct {
ExternalSource string `json:"external_source"`
City string `json:"city"`
Name string `json:"name"`
FacebookPlacesID interface{} `json:"facebook_places_id"`
ExternalID interface{} `json:"external_id"`
State string `json:"state"`
Address string `json:"address"`
Lat float64 `json:"lat"`
Pk int `json:"pk"`
Lng float64 `json:"lng"`
FoursquareV2ID string `json:"foursquare_v2_id"`
} `json:"location,omitempty"`
} `json:"items"`
MoreAvailable bool `json:"more_available"`
TotalCount int `json:"total_count"`
RequiresReview bool `json:"requires_review"`
NewPhotos []interface{} `json:"new_photos"`
Message string `json:"message"` // from Error
}
// UserNameInfo struct
type UserNameInfo struct {
Status string `json:"status"`
User struct {
Username string `json:"username"`
IsProfileActionNeeded bool `json:"is_profile_action_needed"`
HasAnonymousProfilePicture bool `json:"has_anonymous_profile_picture"`
MediaCount int `json:"media_count"`
FollowingCount int `json:"following_count"`
IsNeedy bool `json:"is_needy"`
AutoExpandChaining bool `json:"auto_expand_chaining"`
HasChaining bool `json:"has_chaining"`
UsertagReviewEnabled bool `json:"usertag_review_enabled"`
GeoMediaCount int `json:"geo_media_count"`
IncludeDirectBlacklistStatus bool `json:"include_direct_blacklist_status"`
ProfilePicURL string `json:"profile_pic_url"`
UsertagsCount int `json:"usertags_count"`
Biography string `json:"biography"`
FullName string `json:"full_name"`
FollowerCount int `json:"follower_count"`
Pk int64 `json:"pk"`
IsVerified bool `json:"is_verified"`
IsPrivate bool `json:"is_private"`
ExternalURL string `json:"external_url"`
} `json:"user"`
Message string `json:"message"` // from Error
}