@@ -46,7 +46,7 @@ type Tweet struct {
4646 Text string `json:"text"`
4747 Annotations interface {} `json:"annotations"`
4848 Contributors interface {} `json:"contributors"`
49- ID big.Int `json:"id"`
49+ ID * big.Int `json:"id"`
5050 IDStr string `json:"id_str"`
5151 Geo interface {} `json:"geo"`
5252 Place interface {} `json:"place"`
@@ -73,8 +73,8 @@ type Tweet struct {
7373 CurrentUserRetweet * CurrentUserRetweet `json:"current_user_retweet,omitempty"`
7474}
7575type CurrentUserRetweet struct {
76- ID big.Int `json:"id"`
77- IDStr string `json:"id_str"`
76+ ID * big.Int `json:"id"`
77+ IDStr string `json:"id_str"`
7878}
7979
8080type TwitterUser struct {
@@ -85,14 +85,14 @@ type TwitterUser struct {
8585 CreatedAt string `json:"created_at" xml:"created_at"`
8686 ProfileImageURL string `json:"profile_image_url" xml:"profile_image_url"`
8787 // ProfileImageURLHttps string `json:"profile_image_url_https" xml:"profile_image_url_https"`
88- Location string `json:"location" xml:"location"`
89- ProfileLinkColor string `json:"profile_link_color" xml:"profile_link_color"`
90- FollowRequestSent bool `json:"follow_request_sent" xml:"follow_request_sent"`
91- URL string `json:"url" xml:"url"`
92- FavouritesCount int `json:"favourites_count" xml:"favourites_count"`
93- ContributorsEnabled bool `json:"contributors_enabled" xml:"contributors_enabled"`
94- UtcOffset * int `json:"utc_offset" xml:"utc_offset"`
95- ID big.Int `json:"id" xml:"id"`
88+ Location string `json:"location" xml:"location"`
89+ ProfileLinkColor string `json:"profile_link_color" xml:"profile_link_color"`
90+ FollowRequestSent bool `json:"follow_request_sent" xml:"follow_request_sent"`
91+ URL string `json:"url" xml:"url"`
92+ FavouritesCount int `json:"favourites_count" xml:"favourites_count"`
93+ ContributorsEnabled bool `json:"contributors_enabled" xml:"contributors_enabled"`
94+ UtcOffset * int `json:"utc_offset" xml:"utc_offset"`
95+ ID * big.Int `json:"id" xml:"id"`
9696 // IDStr string `json:"id_str" xml:"id_str"`
9797 ProfileUseBackgroundImage bool `json:"profile_use_background_image" xml:"profile_use_background_image"`
9898 ProfileTextColor string `json:"profile_text_color" xml:"profile_text_color"`
@@ -135,7 +135,7 @@ type MediaSize struct {
135135}
136136
137137type Media struct {
138- ID big.Int `json:"id"`
138+ ID * big.Int `json:"id"`
139139 IDStr string `json:"id_str"`
140140 MediaURL string `json:"media_url"`
141141 MediaURLHttps string `json:"media_url_https"`
@@ -167,11 +167,11 @@ type Hashtag struct {
167167}
168168
169169type UserMention struct {
170- Name string `json:"name"`
171- ID big.Int `json:"id"`
172- IDStr string `json:"id_str"`
173- Indices []int `json:"indices"`
174- ScreenName string `json:"screen_name"`
170+ Name string `json:"name"`
171+ ID * big.Int `json:"id"`
172+ IDStr string `json:"id_str"`
173+ Indices []int `json:"indices"`
174+ ScreenName string `json:"screen_name"`
175175}
176176
177177type SleepTime struct {
@@ -214,7 +214,7 @@ type Config struct {
214214type UsersRelationship struct {
215215 Name string `json:"name" xml:"name"`
216216 IDStr string `json:"id_str" xml:"id_str"`
217- ID big.Int `json:"id" xml:"id"`
217+ ID * big.Int `json:"id" xml:"id"`
218218 Connections Connections `json:"connections" xml:"connections"`
219219 ScreenName string `json:"screen_name" xml:"screen_name"`
220220}
@@ -236,17 +236,17 @@ type UserRelationships struct {
236236// https://web.archive.org/web/20120516154953/https://dev.twitter.com/docs/api/1/get/friendships/show
237237// used in the /friendships/show endpoint
238238type UserFriendship struct {
239- ID big.Int `json:"id" xml:"id"`
240- IDStr string `json:"id_str" xml:"id_str"`
241- ScreenName string `json:"screen_name" xml:"screen_name"`
242- Following bool `json:"following" xml:"following"`
243- FollowedBy bool `json:"followed_by" xml:"followed_by"`
244- NotificationsEnabled * bool `json:"notifications_enabled" xml:"notifications_enabled"` // unknown
245- CanDM * bool `json:"can_dm,omitempty" xml:"can_dm,omitempty"`
246- Blocking * bool `json:"blocking" xml:"blocking"` // unknown
247- WantRetweets * bool `json:"want_retweets" xml:"want_retweets"` // unknown
248- MarkedSpam * bool `json:"marked_spam" xml:"marked_spam"` // unknown
249- AllReplies * bool `json:"all_replies" xml:"all_replies"` // unknown
239+ ID * big.Int `json:"id" xml:"id"`
240+ IDStr string `json:"id_str" xml:"id_str"`
241+ ScreenName string `json:"screen_name" xml:"screen_name"`
242+ Following bool `json:"following" xml:"following"`
243+ FollowedBy bool `json:"followed_by" xml:"followed_by"`
244+ NotificationsEnabled * bool `json:"notifications_enabled" xml:"notifications_enabled"` // unknown
245+ CanDM * bool `json:"can_dm,omitempty" xml:"can_dm,omitempty"`
246+ Blocking * bool `json:"blocking" xml:"blocking"` // unknown
247+ WantRetweets * bool `json:"want_retweets" xml:"want_retweets"` // unknown
248+ MarkedSpam * bool `json:"marked_spam" xml:"marked_spam"` // unknown
249+ AllReplies * bool `json:"all_replies" xml:"all_replies"` // unknown
250250}
251251
252252type SourceTargetFriendship struct {
0 commit comments