-
Notifications
You must be signed in to change notification settings - Fork 0
/
threads.go
135 lines (134 loc) · 5.61 KB
/
threads.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
package threads_api
type UserThreadsData struct {
Data struct {
MediaData struct {
Threads []struct {
ThreadItems []struct {
Post struct {
User struct {
ProfilePicURL string `json:"profile_pic_url"`
Username string `json:"username"`
ID any `json:"id"`
IsVerified bool `json:"is_verified"`
Pk string `json:"pk"`
} `json:"user"`
ImageVersions2 struct {
Candidates []struct {
Height int `json:"height"`
URL string `json:"url"`
Width int `json:"width"`
Typename string `json:"__typename"`
} `json:"candidates"`
} `json:"image_versions2"`
OriginalWidth int `json:"original_width"`
OriginalHeight int `json:"original_height"`
VideoVersions []any `json:"video_versions"`
CarouselMedia any `json:"carousel_media"`
CarouselMediaCount any `json:"carousel_media_count"`
Pk string `json:"pk"`
HasAudio any `json:"has_audio"`
TextPostAppInfo struct {
LinkPreviewAttachment any `json:"link_preview_attachment"`
ShareInfo struct {
QuotedPost any `json:"quoted_post"`
RepostedPost struct {
Pk string `json:"pk"`
User struct {
ProfilePicURL string `json:"profile_pic_url"`
Username string `json:"username"`
ID any `json:"id"`
IsVerified bool `json:"is_verified"`
Pk string `json:"pk"`
} `json:"user"`
ImageVersions2 struct {
Candidates []any `json:"candidates"`
} `json:"image_versions2"`
OriginalWidth int `json:"original_width"`
OriginalHeight int `json:"original_height"`
VideoVersions []any `json:"video_versions"`
CarouselMedia any `json:"carousel_media"`
CarouselMediaCount any `json:"carousel_media_count"`
HasAudio any `json:"has_audio"`
TextPostAppInfo struct {
LinkPreviewAttachment any `json:"link_preview_attachment"`
ShareInfo struct {
QuotedPost struct {
TextPostAppInfo struct {
IsPostUnavailable bool `json:"is_post_unavailable"`
ShareInfo struct {
QuotedPost any `json:"quoted_post"`
} `json:"share_info"`
DirectReplyCount int `json:"direct_reply_count"`
LinkPreviewAttachment struct {
DisplayURL string `json:"display_url"`
FaviconURL any `json:"favicon_url"`
ImageURL string `json:"image_url"`
Title string `json:"title"`
URL string `json:"url"`
} `json:"link_preview_attachment"`
} `json:"text_post_app_info"`
User struct {
IsVerified bool `json:"is_verified"`
Username string `json:"username"`
ID any `json:"id"`
ProfilePicURL string `json:"profile_pic_url"`
} `json:"user"`
Pk string `json:"pk"`
MediaOverlayInfo any `json:"media_overlay_info"`
Code string `json:"code"`
Caption struct {
Text string `json:"text"`
} `json:"caption"`
ImageVersions2 struct {
Candidates []any `json:"candidates"`
} `json:"image_versions2"`
OriginalWidth int `json:"original_width"`
OriginalHeight int `json:"original_height"`
VideoVersions []any `json:"video_versions"`
CarouselMedia any `json:"carousel_media"`
CarouselMediaCount any `json:"carousel_media_count"`
HasAudio any `json:"has_audio"`
LikeCount int `json:"like_count"`
TakenAt int `json:"taken_at"`
ID string `json:"id"`
} `json:"quoted_post"`
} `json:"share_info"`
ReplyToAuthor struct {
Username string `json:"username"`
ID any `json:"id"`
} `json:"reply_to_author"`
IsPostUnavailable bool `json:"is_post_unavailable"`
} `json:"text_post_app_info"`
Caption struct {
Text string `json:"text"`
} `json:"caption"`
LikeCount int `json:"like_count"`
TakenAt int `json:"taken_at"`
Code string `json:"code"`
ID string `json:"id"`
} `json:"reposted_post"`
} `json:"share_info"`
ReplyToAuthor any `json:"reply_to_author"`
IsPostUnavailable bool `json:"is_post_unavailable"`
} `json:"text_post_app_info"`
Caption any `json:"caption"`
TakenAt int `json:"taken_at"`
LikeCount int `json:"like_count"`
Code string `json:"code"`
MediaOverlayInfo any `json:"media_overlay_info"`
ID string `json:"id"`
} `json:"post"`
LineType string `json:"line_type"`
ViewRepliesCtaString any `json:"view_replies_cta_string"`
ReplyFacepileUsers []any `json:"reply_facepile_users"`
ShouldShowRepliesCta bool `json:"should_show_replies_cta"`
Typename string `json:"__typename"`
} `json:"thread_items"`
ID string `json:"id"`
} `json:"threads"`
} `json:"mediaData"`
} `json:"data"`
Extensions struct {
IsFinal bool `json:"is_final"`
} `json:"extensions"`
}