x-twitter-scraper 0.3.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +25 -0
- data/README.md +5 -5
- data/lib/x_twitter_scraper/models/api_key.rb +2 -0
- data/lib/x_twitter_scraper/models/api_key_list_response.rb +3 -44
- data/lib/x_twitter_scraper/models/delivery.rb +2 -0
- data/lib/x_twitter_scraper/models/draft.rb +2 -0
- data/lib/x_twitter_scraper/models/draft_detail.rb +3 -0
- data/lib/x_twitter_scraper/models/draft_list_params.rb +2 -1
- data/lib/x_twitter_scraper/models/draft_list_response.rb +3 -38
- data/lib/x_twitter_scraper/models/draw_detail.rb +2 -0
- data/lib/x_twitter_scraper/models/draw_export_params.rb +3 -1
- data/lib/x_twitter_scraper/models/draw_list_item.rb +2 -0
- data/lib/x_twitter_scraper/models/draw_list_params.rb +4 -3
- data/lib/x_twitter_scraper/models/draw_list_response.rb +3 -50
- data/lib/x_twitter_scraper/models/draw_retrieve_response.rb +8 -124
- data/lib/x_twitter_scraper/models/draw_run_response.rb +3 -32
- data/lib/x_twitter_scraper/models/error.rb +2 -0
- data/lib/x_twitter_scraper/models/event.rb +11 -18
- data/lib/x_twitter_scraper/models/event_detail.rb +7 -18
- data/lib/x_twitter_scraper/models/event_list_params.rb +10 -21
- data/lib/x_twitter_scraper/models/event_list_response.rb +3 -59
- data/lib/x_twitter_scraper/models/event_type.rb +1 -0
- data/lib/x_twitter_scraper/models/extraction_estimate_cost_params.rb +9 -7
- data/lib/x_twitter_scraper/models/extraction_export_results_params.rb +5 -1
- data/lib/x_twitter_scraper/models/extraction_job.rb +11 -1
- data/lib/x_twitter_scraper/models/extraction_list_params.rb +10 -5
- data/lib/x_twitter_scraper/models/extraction_list_response.rb +3 -87
- data/lib/x_twitter_scraper/models/extraction_retrieve_params.rb +4 -3
- data/lib/x_twitter_scraper/models/extraction_run_params.rb +3 -1
- data/lib/x_twitter_scraper/models/extraction_run_response.rb +10 -15
- data/lib/x_twitter_scraper/models/integration.rb +12 -32
- data/lib/x_twitter_scraper/models/integration_create_params.rb +8 -32
- data/lib/x_twitter_scraper/models/integration_delivery.rb +2 -0
- data/lib/x_twitter_scraper/models/integration_list_deliveries_params.rb +4 -1
- data/lib/x_twitter_scraper/models/integration_list_deliveries_response.rb +3 -67
- data/lib/x_twitter_scraper/models/integration_list_response.rb +3 -112
- data/lib/x_twitter_scraper/models/integration_update_params.rb +4 -19
- data/lib/x_twitter_scraper/models/monitor.rb +12 -17
- data/lib/x_twitter_scraper/models/monitor_create_params.rb +4 -19
- data/lib/x_twitter_scraper/models/monitor_create_response.rb +8 -17
- data/lib/x_twitter_scraper/models/monitor_list_response.rb +3 -60
- data/lib/x_twitter_scraper/models/monitor_update_params.rb +7 -19
- data/lib/x_twitter_scraper/models/paginated_tweets.rb +5 -96
- data/lib/x_twitter_scraper/models/paginated_users.rb +5 -73
- data/lib/x_twitter_scraper/models/radar_item.rb +2 -0
- data/lib/x_twitter_scraper/models/radar_retrieve_trending_topics_params.rb +20 -3
- data/lib/x_twitter_scraper/models/radar_retrieve_trending_topics_response.rb +3 -62
- data/lib/x_twitter_scraper/models/style_compare_response.rb +9 -134
- data/lib/x_twitter_scraper/models/style_delete_params.rb +4 -4
- data/lib/x_twitter_scraper/models/style_get_performance_params.rb +4 -4
- data/lib/x_twitter_scraper/models/style_list_response.rb +3 -32
- data/lib/x_twitter_scraper/models/style_profile.rb +3 -0
- data/lib/x_twitter_scraper/models/style_profile_summary.rb +2 -0
- data/lib/x_twitter_scraper/models/style_retrieve_params.rb +4 -4
- data/lib/x_twitter_scraper/models/style_update_params.rb +4 -4
- data/lib/x_twitter_scraper/models/trend_list_params.rb +2 -1
- data/lib/x_twitter_scraper/models/webhook.rb +11 -17
- data/lib/x_twitter_scraper/models/webhook_create_params.rb +4 -19
- data/lib/x_twitter_scraper/models/webhook_create_response.rb +8 -17
- data/lib/x_twitter_scraper/models/webhook_list_deliveries_response.rb +3 -56
- data/lib/x_twitter_scraper/models/webhook_list_response.rb +3 -54
- data/lib/x_twitter_scraper/models/webhook_update_params.rb +8 -19
- data/lib/x_twitter_scraper/models/winner.rb +2 -0
- data/lib/x_twitter_scraper/models/x/account_bulk_retry_params.rb +16 -0
- data/lib/x_twitter_scraper/models/x/account_bulk_retry_response.rb +19 -0
- data/lib/x_twitter_scraper/models/x/account_list_response.rb +3 -38
- data/lib/x_twitter_scraper/models/x/account_reauth_params.rb +4 -4
- data/lib/x_twitter_scraper/models/x/bookmark_list_params.rb +2 -2
- data/lib/x_twitter_scraper/models/x/communities/join_create_params.rb +2 -2
- data/lib/x_twitter_scraper/models/x/communities/join_delete_all_params.rb +2 -2
- data/lib/x_twitter_scraper/models/x/communities/tweet_list_by_community_params.rb +33 -0
- data/lib/x_twitter_scraper/models/x/communities/tweet_list_params.rb +6 -6
- data/lib/x_twitter_scraper/models/x/community_action_result.rb +2 -0
- data/lib/x_twitter_scraper/models/x/community_create_params.rb +2 -2
- data/lib/x_twitter_scraper/models/x/community_delete_params.rb +2 -2
- data/lib/x_twitter_scraper/models/x/community_retrieve_info_response.rb +6 -6
- data/lib/x_twitter_scraper/models/x/community_retrieve_moderators_params.rb +2 -2
- data/lib/x_twitter_scraper/models/x/community_retrieve_search_params.rb +2 -2
- data/lib/x_twitter_scraper/models/x/dm_retrieve_history_params.rb +2 -2
- data/lib/x_twitter_scraper/models/x/dm_send_params.rb +2 -2
- data/lib/x_twitter_scraper/models/x/list_retrieve_followers_params.rb +2 -2
- data/lib/x_twitter_scraper/models/x/list_retrieve_members_params.rb +2 -2
- data/lib/x_twitter_scraper/models/x/list_retrieve_tweets_params.rb +2 -2
- data/lib/x_twitter_scraper/models/x/media_upload_params.rb +2 -2
- data/lib/x_twitter_scraper/models/x/profile_update_avatar_params.rb +2 -2
- data/lib/x_twitter_scraper/models/x/profile_update_banner_params.rb +2 -2
- data/lib/x_twitter_scraper/models/x/profile_update_params.rb +2 -2
- data/lib/x_twitter_scraper/models/x/search_tweet.rb +20 -1
- data/lib/x_twitter_scraper/models/x/tweet_author.rb +2 -0
- data/lib/x_twitter_scraper/models/x/tweet_delete_params.rb +6 -6
- data/lib/x_twitter_scraper/models/x/tweet_detail.rb +109 -1
- data/lib/x_twitter_scraper/models/x/tweet_get_favoriters_params.rb +2 -2
- data/lib/x_twitter_scraper/models/x/tweet_get_quotes_params.rb +8 -8
- data/lib/x_twitter_scraper/models/x/tweet_get_replies_params.rb +6 -6
- data/lib/x_twitter_scraper/models/x/tweet_get_retweeters_params.rb +2 -2
- data/lib/x_twitter_scraper/models/x/tweet_get_thread_params.rb +2 -2
- data/lib/x_twitter_scraper/models/x/tweet_retrieve_params.rb +4 -4
- data/lib/x_twitter_scraper/models/x/tweet_retrieve_response.rb +9 -100
- data/lib/x_twitter_scraper/models/x/tweet_search_params.rb +2 -2
- data/lib/x_twitter_scraper/models/x/tweets/like_create_params.rb +6 -6
- data/lib/x_twitter_scraper/models/x/tweets/like_delete_params.rb +6 -6
- data/lib/x_twitter_scraper/models/x/tweets/retweet_create_params.rb +6 -6
- data/lib/x_twitter_scraper/models/x/tweets/retweet_delete_params.rb +6 -6
- data/lib/x_twitter_scraper/models/x/user_profile.rb +3 -0
- data/lib/x_twitter_scraper/models/x/user_retrieve_followers_params.rb +2 -2
- data/lib/x_twitter_scraper/models/x/user_retrieve_followers_you_know_params.rb +2 -2
- data/lib/x_twitter_scraper/models/x/user_retrieve_following_params.rb +4 -4
- data/lib/x_twitter_scraper/models/x/user_retrieve_likes_params.rb +2 -2
- data/lib/x_twitter_scraper/models/x/user_retrieve_media_params.rb +2 -2
- data/lib/x_twitter_scraper/models/x/user_retrieve_mentions_params.rb +6 -6
- data/lib/x_twitter_scraper/models/x/user_retrieve_params.rb +4 -4
- data/lib/x_twitter_scraper/models/x/user_retrieve_search_params.rb +4 -4
- data/lib/x_twitter_scraper/models/x/user_retrieve_tweets_params.rb +2 -2
- data/lib/x_twitter_scraper/models/x/user_retrieve_verified_followers_params.rb +2 -2
- data/lib/x_twitter_scraper/models/x/users/follow_create_params.rb +6 -6
- data/lib/x_twitter_scraper/models/x/users/follow_delete_all_params.rb +6 -6
- data/lib/x_twitter_scraper/models/x/x_account.rb +2 -0
- data/lib/x_twitter_scraper/models/x/x_account_detail.rb +3 -0
- data/lib/x_twitter_scraper/models/x_get_article_response.rb +5 -38
- data/lib/x_twitter_scraper/models/x_get_home_timeline_params.rb +2 -2
- data/lib/x_twitter_scraper/models/x_get_notifications_params.rb +2 -2
- data/lib/x_twitter_scraper/models/x_get_trends_response.rb +57 -0
- data/lib/x_twitter_scraper/resources/drafts.rb +5 -5
- data/lib/x_twitter_scraper/resources/draws.rb +3 -3
- data/lib/x_twitter_scraper/resources/events.rb +6 -6
- data/lib/x_twitter_scraper/resources/extractions.rb +12 -12
- data/lib/x_twitter_scraper/resources/integrations.rb +11 -11
- data/lib/x_twitter_scraper/resources/monitors.rb +6 -6
- data/lib/x_twitter_scraper/resources/radar.rb +1 -1
- data/lib/x_twitter_scraper/resources/styles.rb +22 -22
- data/lib/x_twitter_scraper/resources/support/tickets.rb +8 -3
- data/lib/x_twitter_scraper/resources/trends.rb +2 -2
- data/lib/x_twitter_scraper/resources/webhooks.rb +4 -4
- data/lib/x_twitter_scraper/resources/x/accounts.rb +24 -4
- data/lib/x_twitter_scraper/resources/x/bookmarks.rb +3 -3
- data/lib/x_twitter_scraper/resources/x/communities/join.rb +6 -6
- data/lib/x_twitter_scraper/resources/x/communities/tweets.rb +30 -5
- data/lib/x_twitter_scraper/resources/x/communities.rb +12 -12
- data/lib/x_twitter_scraper/resources/x/dm.rb +2 -2
- data/lib/x_twitter_scraper/resources/x/lists.rb +11 -11
- data/lib/x_twitter_scraper/resources/x/media.rb +1 -1
- data/lib/x_twitter_scraper/resources/x/profile.rb +3 -3
- data/lib/x_twitter_scraper/resources/x/tweets/like.rb +10 -10
- data/lib/x_twitter_scraper/resources/x/tweets/retweet.rb +10 -10
- data/lib/x_twitter_scraper/resources/x/tweets.rb +46 -39
- data/lib/x_twitter_scraper/resources/x/users/follow.rb +10 -10
- data/lib/x_twitter_scraper/resources/x/users.rb +45 -45
- data/lib/x_twitter_scraper/resources/x.rb +13 -7
- data/lib/x_twitter_scraper/version.rb +1 -1
- data/lib/x_twitter_scraper.rb +4 -28
- data/rbi/x_twitter_scraper/models/api_key.rbi +1 -0
- data/rbi/x_twitter_scraper/models/api_key_list_response.rbi +5 -78
- data/rbi/x_twitter_scraper/models/delivery.rbi +1 -0
- data/rbi/x_twitter_scraper/models/draft.rbi +1 -0
- data/rbi/x_twitter_scraper/models/draft_detail.rbi +1 -0
- data/rbi/x_twitter_scraper/models/draft_list_params.rbi +2 -0
- data/rbi/x_twitter_scraper/models/draft_list_response.rbi +3 -63
- data/rbi/x_twitter_scraper/models/draw_detail.rbi +1 -0
- data/rbi/x_twitter_scraper/models/draw_export_params.rbi +3 -0
- data/rbi/x_twitter_scraper/models/draw_list_item.rbi +1 -0
- data/rbi/x_twitter_scraper/models/draw_list_params.rbi +4 -2
- data/rbi/x_twitter_scraper/models/draw_list_response.rbi +3 -76
- data/rbi/x_twitter_scraper/models/draw_retrieve_response.rbi +13 -178
- data/rbi/x_twitter_scraper/models/draw_run_response.rbi +3 -52
- data/rbi/x_twitter_scraper/models/error.rbi +1 -0
- data/rbi/x_twitter_scraper/models/event.rbi +14 -31
- data/rbi/x_twitter_scraper/models/event_detail.rbi +6 -47
- data/rbi/x_twitter_scraper/models/event_list_params.rbi +12 -63
- data/rbi/x_twitter_scraper/models/event_list_response.rbi +3 -122
- data/rbi/x_twitter_scraper/models/event_type.rbi +1 -0
- data/rbi/x_twitter_scraper/models/extraction_estimate_cost_params.rbi +9 -6
- data/rbi/x_twitter_scraper/models/extraction_export_results_params.rbi +8 -1
- data/rbi/x_twitter_scraper/models/extraction_job.rbi +8 -4
- data/rbi/x_twitter_scraper/models/extraction_list_params.rbi +10 -2
- data/rbi/x_twitter_scraper/models/extraction_list_response.rbi +3 -254
- data/rbi/x_twitter_scraper/models/extraction_retrieve_params.rbi +4 -2
- data/rbi/x_twitter_scraper/models/extraction_run_params.rbi +3 -0
- data/rbi/x_twitter_scraper/models/extraction_run_response.rbi +12 -40
- data/rbi/x_twitter_scraper/models/integration.rbi +12 -81
- data/rbi/x_twitter_scraper/models/integration_create_params.rbi +9 -96
- data/rbi/x_twitter_scraper/models/integration_delivery.rbi +1 -0
- data/rbi/x_twitter_scraper/models/integration_list_deliveries_params.rbi +7 -1
- data/rbi/x_twitter_scraper/models/integration_list_deliveries_response.rbi +3 -119
- data/rbi/x_twitter_scraper/models/integration_list_response.rbi +3 -227
- data/rbi/x_twitter_scraper/models/integration_update_params.rbi +6 -74
- data/rbi/x_twitter_scraper/models/monitor.rbi +6 -48
- data/rbi/x_twitter_scraper/models/monitor_create_params.rbi +5 -62
- data/rbi/x_twitter_scraper/models/monitor_create_response.rbi +12 -70
- data/rbi/x_twitter_scraper/models/monitor_list_response.rbi +3 -141
- data/rbi/x_twitter_scraper/models/monitor_update_params.rbi +12 -69
- data/rbi/x_twitter_scraper/models/paginated_tweets.rbi +4 -169
- data/rbi/x_twitter_scraper/models/paginated_users.rbi +4 -120
- data/rbi/x_twitter_scraper/models/radar_item.rbi +1 -0
- data/rbi/x_twitter_scraper/models/radar_retrieve_trending_topics_params.rbi +78 -4
- data/rbi/x_twitter_scraper/models/radar_retrieve_trending_topics_response.rbi +3 -108
- data/rbi/x_twitter_scraper/models/style_compare_response.rbi +16 -259
- data/rbi/x_twitter_scraper/models/style_delete_params.rbi +4 -4
- data/rbi/x_twitter_scraper/models/style_get_performance_params.rbi +4 -4
- data/rbi/x_twitter_scraper/models/style_list_response.rbi +3 -54
- data/rbi/x_twitter_scraper/models/style_profile.rbi +1 -0
- data/rbi/x_twitter_scraper/models/style_profile_summary.rbi +1 -0
- data/rbi/x_twitter_scraper/models/style_retrieve_params.rbi +4 -4
- data/rbi/x_twitter_scraper/models/style_update_params.rbi +4 -4
- data/rbi/x_twitter_scraper/models/trend_list_params.rbi +2 -0
- data/rbi/x_twitter_scraper/models/webhook.rbi +13 -49
- data/rbi/x_twitter_scraper/models/webhook_create_params.rbi +5 -62
- data/rbi/x_twitter_scraper/models/webhook_create_response.rbi +12 -70
- data/rbi/x_twitter_scraper/models/webhook_list_deliveries_response.rbi +5 -105
- data/rbi/x_twitter_scraper/models/webhook_list_response.rbi +5 -134
- data/rbi/x_twitter_scraper/models/webhook_update_params.rbi +6 -68
- data/rbi/x_twitter_scraper/models/winner.rbi +1 -0
- data/rbi/x_twitter_scraper/models/x/account_bulk_retry_params.rbi +34 -0
- data/rbi/x_twitter_scraper/models/x/account_bulk_retry_response.rbi +32 -0
- data/rbi/x_twitter_scraper/models/x/account_list_response.rbi +3 -68
- data/rbi/x_twitter_scraper/models/x/account_reauth_params.rbi +4 -4
- data/rbi/x_twitter_scraper/models/x/bookmark_list_params.rbi +2 -2
- data/rbi/x_twitter_scraper/models/x/communities/join_create_params.rbi +2 -2
- data/rbi/x_twitter_scraper/models/x/communities/join_delete_all_params.rbi +2 -2
- data/rbi/x_twitter_scraper/models/x/communities/tweet_list_by_community_params.rbi +59 -0
- data/rbi/x_twitter_scraper/models/x/communities/tweet_list_params.rbi +6 -6
- data/rbi/x_twitter_scraper/models/x/community_action_result.rbi +1 -0
- data/rbi/x_twitter_scraper/models/x/community_create_params.rbi +2 -2
- data/rbi/x_twitter_scraper/models/x/community_delete_params.rbi +2 -2
- data/rbi/x_twitter_scraper/models/x/community_retrieve_info_response.rbi +6 -6
- data/rbi/x_twitter_scraper/models/x/community_retrieve_moderators_params.rbi +2 -2
- data/rbi/x_twitter_scraper/models/x/community_retrieve_search_params.rbi +2 -2
- data/rbi/x_twitter_scraper/models/x/dm_retrieve_history_params.rbi +2 -2
- data/rbi/x_twitter_scraper/models/x/dm_send_params.rbi +2 -2
- data/rbi/x_twitter_scraper/models/x/list_retrieve_followers_params.rbi +2 -2
- data/rbi/x_twitter_scraper/models/x/list_retrieve_members_params.rbi +2 -2
- data/rbi/x_twitter_scraper/models/x/list_retrieve_tweets_params.rbi +2 -2
- data/rbi/x_twitter_scraper/models/x/media_upload_params.rbi +2 -2
- data/rbi/x_twitter_scraper/models/x/profile_update_avatar_params.rbi +2 -2
- data/rbi/x_twitter_scraper/models/x/profile_update_banner_params.rbi +2 -2
- data/rbi/x_twitter_scraper/models/x/profile_update_params.rbi +2 -2
- data/rbi/x_twitter_scraper/models/x/search_tweet.rbi +12 -0
- data/rbi/x_twitter_scraper/models/x/tweet_author.rbi +1 -0
- data/rbi/x_twitter_scraper/models/x/tweet_delete_params.rbi +6 -6
- data/rbi/x_twitter_scraper/models/x/tweet_detail.rbi +195 -3
- data/rbi/x_twitter_scraper/models/x/tweet_get_favoriters_params.rbi +2 -2
- data/rbi/x_twitter_scraper/models/x/tweet_get_quotes_params.rbi +8 -8
- data/rbi/x_twitter_scraper/models/x/tweet_get_replies_params.rbi +6 -6
- data/rbi/x_twitter_scraper/models/x/tweet_get_retweeters_params.rbi +2 -2
- data/rbi/x_twitter_scraper/models/x/tweet_get_thread_params.rbi +2 -2
- data/rbi/x_twitter_scraper/models/x/tweet_retrieve_params.rbi +4 -7
- data/rbi/x_twitter_scraper/models/x/tweet_retrieve_response.rbi +16 -171
- data/rbi/x_twitter_scraper/models/x/tweet_search_params.rbi +2 -2
- data/rbi/x_twitter_scraper/models/x/tweets/like_create_params.rbi +6 -6
- data/rbi/x_twitter_scraper/models/x/tweets/like_delete_params.rbi +6 -6
- data/rbi/x_twitter_scraper/models/x/tweets/retweet_create_params.rbi +6 -6
- data/rbi/x_twitter_scraper/models/x/tweets/retweet_delete_params.rbi +6 -6
- data/rbi/x_twitter_scraper/models/x/user_profile.rbi +1 -0
- data/rbi/x_twitter_scraper/models/x/user_retrieve_followers_params.rbi +2 -2
- data/rbi/x_twitter_scraper/models/x/user_retrieve_followers_you_know_params.rbi +2 -2
- data/rbi/x_twitter_scraper/models/x/user_retrieve_following_params.rbi +4 -4
- data/rbi/x_twitter_scraper/models/x/user_retrieve_likes_params.rbi +2 -2
- data/rbi/x_twitter_scraper/models/x/user_retrieve_media_params.rbi +2 -2
- data/rbi/x_twitter_scraper/models/x/user_retrieve_mentions_params.rbi +6 -6
- data/rbi/x_twitter_scraper/models/x/user_retrieve_params.rbi +4 -7
- data/rbi/x_twitter_scraper/models/x/user_retrieve_search_params.rbi +4 -4
- data/rbi/x_twitter_scraper/models/x/user_retrieve_tweets_params.rbi +2 -2
- data/rbi/x_twitter_scraper/models/x/user_retrieve_verified_followers_params.rbi +2 -2
- data/rbi/x_twitter_scraper/models/x/users/follow_create_params.rbi +6 -6
- data/rbi/x_twitter_scraper/models/x/users/follow_delete_all_params.rbi +6 -6
- data/rbi/x_twitter_scraper/models/x/x_account.rbi +1 -0
- data/rbi/x_twitter_scraper/models/x/x_account_detail.rbi +1 -0
- data/rbi/x_twitter_scraper/models/x_get_article_response.rbi +10 -71
- data/rbi/x_twitter_scraper/models/x_get_home_timeline_params.rbi +2 -2
- data/rbi/x_twitter_scraper/models/x_get_notifications_params.rbi +2 -2
- data/rbi/x_twitter_scraper/models/x_get_trends_response.rbi +102 -0
- data/rbi/x_twitter_scraper/resources/drafts.rbi +3 -2
- data/rbi/x_twitter_scraper/resources/draws.rbi +3 -1
- data/rbi/x_twitter_scraper/resources/events.rbi +6 -3
- data/rbi/x_twitter_scraper/resources/extractions.rbi +12 -5
- data/rbi/x_twitter_scraper/resources/integrations.rbi +10 -13
- data/rbi/x_twitter_scraper/resources/monitors.rbi +6 -6
- data/rbi/x_twitter_scraper/resources/radar.rbi +2 -1
- data/rbi/x_twitter_scraper/resources/styles.rbi +15 -15
- data/rbi/x_twitter_scraper/resources/support/tickets.rbi +17 -3
- data/rbi/x_twitter_scraper/resources/trends.rbi +2 -1
- data/rbi/x_twitter_scraper/resources/webhooks.rbi +5 -5
- data/rbi/x_twitter_scraper/resources/x/accounts.rbi +13 -3
- data/rbi/x_twitter_scraper/resources/x/bookmarks.rbi +2 -2
- data/rbi/x_twitter_scraper/resources/x/communities/join.rbi +4 -8
- data/rbi/x_twitter_scraper/resources/x/communities/tweets.rbi +21 -4
- data/rbi/x_twitter_scraper/resources/x/communities.rbi +9 -9
- data/rbi/x_twitter_scraper/resources/x/dm.rbi +2 -2
- data/rbi/x_twitter_scraper/resources/x/lists.rbi +8 -8
- data/rbi/x_twitter_scraper/resources/x/media.rbi +1 -1
- data/rbi/x_twitter_scraper/resources/x/profile.rbi +3 -3
- data/rbi/x_twitter_scraper/resources/x/tweets/like.rbi +8 -6
- data/rbi/x_twitter_scraper/resources/x/tweets/retweet.rbi +8 -6
- data/rbi/x_twitter_scraper/resources/x/tweets.rbi +33 -28
- data/rbi/x_twitter_scraper/resources/x/users/follow.rbi +6 -6
- data/rbi/x_twitter_scraper/resources/x/users.rbi +33 -34
- data/rbi/x_twitter_scraper/resources/x.rbi +11 -5
- data/sig/x_twitter_scraper/models/api_key_list_response.rbs +4 -53
- data/sig/x_twitter_scraper/models/draft_list_response.rbs +4 -45
- data/sig/x_twitter_scraper/models/draw_list_response.rbs +4 -53
- data/sig/x_twitter_scraper/models/draw_retrieve_response.rbs +8 -124
- data/sig/x_twitter_scraper/models/draw_run_response.rbs +4 -36
- data/sig/x_twitter_scraper/models/event.rbs +4 -25
- data/sig/x_twitter_scraper/models/event_detail.rbs +4 -25
- data/sig/x_twitter_scraper/models/event_list_params.rbs +6 -27
- data/sig/x_twitter_scraper/models/event_list_response.rbs +4 -67
- data/sig/x_twitter_scraper/models/extraction_list_response.rbs +4 -109
- data/sig/x_twitter_scraper/models/extraction_run_response.rbs +5 -15
- data/sig/x_twitter_scraper/models/integration.rbs +9 -40
- data/sig/x_twitter_scraper/models/integration_create_params.rbs +8 -39
- data/sig/x_twitter_scraper/models/integration_list_deliveries_response.rbs +4 -78
- data/sig/x_twitter_scraper/models/integration_list_response.rbs +4 -114
- data/sig/x_twitter_scraper/models/integration_update_params.rbs +6 -27
- data/sig/x_twitter_scraper/models/monitor.rbs +4 -25
- data/sig/x_twitter_scraper/models/monitor_create_params.rbs +4 -25
- data/sig/x_twitter_scraper/models/monitor_create_response.rbs +4 -25
- data/sig/x_twitter_scraper/models/monitor_list_response.rbs +4 -70
- data/sig/x_twitter_scraper/models/monitor_update_params.rbs +6 -27
- data/sig/x_twitter_scraper/models/paginated_tweets.rbs +4 -113
- data/sig/x_twitter_scraper/models/paginated_users.rbs +4 -87
- data/sig/x_twitter_scraper/models/radar_retrieve_trending_topics_params.rbs +30 -5
- data/sig/x_twitter_scraper/models/radar_retrieve_trending_topics_response.rbs +4 -70
- data/sig/x_twitter_scraper/models/style_compare_response.rbs +8 -154
- data/sig/x_twitter_scraper/models/style_delete_params.rbs +4 -4
- data/sig/x_twitter_scraper/models/style_get_performance_params.rbs +4 -4
- data/sig/x_twitter_scraper/models/style_list_response.rbs +4 -38
- data/sig/x_twitter_scraper/models/style_retrieve_params.rbs +4 -4
- data/sig/x_twitter_scraper/models/style_update_params.rbs +4 -4
- data/sig/x_twitter_scraper/models/webhook.rbs +4 -25
- data/sig/x_twitter_scraper/models/webhook_create_params.rbs +4 -28
- data/sig/x_twitter_scraper/models/webhook_create_response.rbs +4 -25
- data/sig/x_twitter_scraper/models/webhook_list_deliveries_response.rbs +4 -68
- data/sig/x_twitter_scraper/models/webhook_list_response.rbs +4 -69
- data/sig/x_twitter_scraper/models/webhook_update_params.rbs +6 -27
- data/sig/x_twitter_scraper/models/x/account_bulk_retry_params.rbs +19 -0
- data/sig/x_twitter_scraper/models/x/account_bulk_retry_response.rbs +15 -0
- data/sig/x_twitter_scraper/models/x/account_list_response.rbs +4 -45
- data/sig/x_twitter_scraper/models/x/communities/tweet_list_by_community_params.rbs +34 -0
- data/sig/x_twitter_scraper/models/x/search_tweet.rbs +7 -0
- data/sig/x_twitter_scraper/models/x/tweet_delete_params.rbs +4 -4
- data/sig/x_twitter_scraper/models/x/tweet_detail.rbs +108 -3
- data/sig/x_twitter_scraper/models/x/tweet_retrieve_params.rbs +4 -5
- data/sig/x_twitter_scraper/models/x/tweet_retrieve_response.rbs +10 -108
- data/sig/x_twitter_scraper/models/x/tweets/like_create_params.rbs +4 -4
- data/sig/x_twitter_scraper/models/x/tweets/like_delete_params.rbs +4 -4
- data/sig/x_twitter_scraper/models/x/tweets/retweet_create_params.rbs +4 -4
- data/sig/x_twitter_scraper/models/x/tweets/retweet_delete_params.rbs +4 -4
- data/sig/x_twitter_scraper/models/x/user_retrieve_params.rbs +4 -5
- data/sig/x_twitter_scraper/models/x/users/follow_create_params.rbs +4 -4
- data/sig/x_twitter_scraper/models/x/users/follow_delete_all_params.rbs +4 -4
- data/sig/x_twitter_scraper/models/x_get_article_response.rbs +6 -45
- data/sig/x_twitter_scraper/models/x_get_trends_response.rbs +63 -0
- data/sig/x_twitter_scraper/resources/drafts.rbs +2 -2
- data/sig/x_twitter_scraper/resources/events.rbs +2 -2
- data/sig/x_twitter_scraper/resources/integrations.rbs +6 -6
- data/sig/x_twitter_scraper/resources/monitors.rbs +4 -4
- data/sig/x_twitter_scraper/resources/radar.rbs +1 -1
- data/sig/x_twitter_scraper/resources/styles.rbs +7 -7
- data/sig/x_twitter_scraper/resources/webhooks.rbs +3 -3
- data/sig/x_twitter_scraper/resources/x/accounts.rbs +5 -1
- data/sig/x_twitter_scraper/resources/x/bookmarks.rbs +1 -1
- data/sig/x_twitter_scraper/resources/x/communities/join.rbs +2 -2
- data/sig/x_twitter_scraper/resources/x/communities/tweets.rbs +7 -1
- data/sig/x_twitter_scraper/resources/x/communities.rbs +3 -3
- data/sig/x_twitter_scraper/resources/x/lists.rbs +3 -3
- data/sig/x_twitter_scraper/resources/x/tweets/like.rbs +2 -2
- data/sig/x_twitter_scraper/resources/x/tweets/retweet.rbs +2 -2
- data/sig/x_twitter_scraper/resources/x/tweets.rbs +9 -9
- data/sig/x_twitter_scraper/resources/x/users/follow.rbs +2 -2
- data/sig/x_twitter_scraper/resources/x/users.rbs +12 -12
- data/sig/x_twitter_scraper/resources/x.rbs +4 -2
- metadata +17 -88
- data/lib/x_twitter_scraper/models/draft_create_response.rb +0 -46
- data/lib/x_twitter_scraper/models/draft_retrieve_response.rb +0 -46
- data/lib/x_twitter_scraper/models/event_retrieve_response.rb +0 -74
- data/lib/x_twitter_scraper/models/integration_create_response.rb +0 -114
- data/lib/x_twitter_scraper/models/integration_retrieve_response.rb +0 -114
- data/lib/x_twitter_scraper/models/integration_update_response.rb +0 -114
- data/lib/x_twitter_scraper/models/monitor_retrieve_response.rb +0 -62
- data/lib/x_twitter_scraper/models/monitor_update_response.rb +0 -62
- data/lib/x_twitter_scraper/models/style_analyze_response.rb +0 -69
- data/lib/x_twitter_scraper/models/style_retrieve_response.rb +0 -69
- data/lib/x_twitter_scraper/models/style_update_response.rb +0 -69
- data/lib/x_twitter_scraper/models/webhook_update_response.rb +0 -56
- data/lib/x_twitter_scraper/models/x/account_retrieve_response.rb +0 -60
- data/lib/x_twitter_scraper/models/x/bookmark_list_response.rb +0 -124
- data/lib/x_twitter_scraper/models/x/communities/join_create_response.rb +0 -32
- data/lib/x_twitter_scraper/models/x/communities/join_delete_all_response.rb +0 -32
- data/lib/x_twitter_scraper/models/x/tweet_get_favoriters_response.rb +0 -101
- data/lib/x_twitter_scraper/models/x/tweet_get_quotes_response.rb +0 -124
- data/lib/x_twitter_scraper/models/x/tweet_get_replies_response.rb +0 -124
- data/lib/x_twitter_scraper/models/x/tweet_get_retweeters_response.rb +0 -101
- data/lib/x_twitter_scraper/models/x/tweet_get_thread_response.rb +0 -124
- data/lib/x_twitter_scraper/models/x/tweet_search_response.rb +0 -124
- data/lib/x_twitter_scraper/models/x/user_retrieve_followers_you_know_response.rb +0 -101
- data/lib/x_twitter_scraper/models/x/user_retrieve_likes_response.rb +0 -124
- data/lib/x_twitter_scraper/models/x/user_retrieve_media_response.rb +0 -124
- data/lib/x_twitter_scraper/models/x/user_retrieve_response.rb +0 -78
- data/lib/x_twitter_scraper/models/x/user_retrieve_tweets_response.rb +0 -124
- data/lib/x_twitter_scraper/models/x_get_home_timeline_response.rb +0 -122
- data/rbi/x_twitter_scraper/models/draft_create_response.rbi +0 -67
- data/rbi/x_twitter_scraper/models/draft_retrieve_response.rbi +0 -67
- data/rbi/x_twitter_scraper/models/event_retrieve_response.rbi +0 -135
- data/rbi/x_twitter_scraper/models/integration_create_response.rbi +0 -215
- data/rbi/x_twitter_scraper/models/integration_retrieve_response.rbi +0 -215
- data/rbi/x_twitter_scraper/models/integration_update_response.rbi +0 -215
- data/rbi/x_twitter_scraper/models/monitor_retrieve_response.rbi +0 -134
- data/rbi/x_twitter_scraper/models/monitor_update_response.rbi +0 -134
- data/rbi/x_twitter_scraper/models/style_analyze_response.rbi +0 -120
- data/rbi/x_twitter_scraper/models/style_retrieve_response.rbi +0 -120
- data/rbi/x_twitter_scraper/models/style_update_response.rbi +0 -120
- data/rbi/x_twitter_scraper/models/webhook_update_response.rbi +0 -122
- data/rbi/x_twitter_scraper/models/x/account_retrieve_response.rbi +0 -91
- data/rbi/x_twitter_scraper/models/x/bookmark_list_response.rbi +0 -231
- data/rbi/x_twitter_scraper/models/x/communities/join_create_response.rbi +0 -50
- data/rbi/x_twitter_scraper/models/x/communities/join_delete_all_response.rbi +0 -50
- data/rbi/x_twitter_scraper/models/x/tweet_get_favoriters_response.rbi +0 -177
- data/rbi/x_twitter_scraper/models/x/tweet_get_quotes_response.rbi +0 -231
- data/rbi/x_twitter_scraper/models/x/tweet_get_replies_response.rbi +0 -231
- data/rbi/x_twitter_scraper/models/x/tweet_get_retweeters_response.rbi +0 -177
- data/rbi/x_twitter_scraper/models/x/tweet_get_thread_response.rbi +0 -231
- data/rbi/x_twitter_scraper/models/x/tweet_search_response.rbi +0 -229
- data/rbi/x_twitter_scraper/models/x/user_retrieve_followers_you_know_response.rbi +0 -177
- data/rbi/x_twitter_scraper/models/x/user_retrieve_likes_response.rbi +0 -233
- data/rbi/x_twitter_scraper/models/x/user_retrieve_media_response.rbi +0 -233
- data/rbi/x_twitter_scraper/models/x/user_retrieve_response.rbi +0 -124
- data/rbi/x_twitter_scraper/models/x/user_retrieve_tweets_response.rbi +0 -233
- data/rbi/x_twitter_scraper/models/x_get_home_timeline_response.rbi +0 -227
- data/sig/x_twitter_scraper/models/draft_create_response.rbs +0 -49
- data/sig/x_twitter_scraper/models/draft_retrieve_response.rbs +0 -49
- data/sig/x_twitter_scraper/models/event_retrieve_response.rbs +0 -73
- data/sig/x_twitter_scraper/models/integration_create_response.rbs +0 -109
- data/sig/x_twitter_scraper/models/integration_retrieve_response.rbs +0 -109
- data/sig/x_twitter_scraper/models/integration_update_response.rbs +0 -109
- data/sig/x_twitter_scraper/models/monitor_retrieve_response.rbs +0 -66
- data/sig/x_twitter_scraper/models/monitor_update_response.rbs +0 -66
- data/sig/x_twitter_scraper/models/style_analyze_response.rbs +0 -76
- data/sig/x_twitter_scraper/models/style_retrieve_response.rbs +0 -76
- data/sig/x_twitter_scraper/models/style_update_response.rbs +0 -76
- data/sig/x_twitter_scraper/models/webhook_update_response.rbs +0 -61
- data/sig/x_twitter_scraper/models/x/account_retrieve_response.rbs +0 -63
- data/sig/x_twitter_scraper/models/x/bookmark_list_response.rbs +0 -141
- data/sig/x_twitter_scraper/models/x/communities/join_create_response.rbs +0 -30
- data/sig/x_twitter_scraper/models/x/communities/join_delete_all_response.rbs +0 -30
- data/sig/x_twitter_scraper/models/x/tweet_get_favoriters_response.rbs +0 -115
- data/sig/x_twitter_scraper/models/x/tweet_get_quotes_response.rbs +0 -141
- data/sig/x_twitter_scraper/models/x/tweet_get_replies_response.rbs +0 -141
- data/sig/x_twitter_scraper/models/x/tweet_get_retweeters_response.rbs +0 -115
- data/sig/x_twitter_scraper/models/x/tweet_get_thread_response.rbs +0 -141
- data/sig/x_twitter_scraper/models/x/tweet_search_response.rbs +0 -141
- data/sig/x_twitter_scraper/models/x/user_retrieve_followers_you_know_response.rbs +0 -115
- data/sig/x_twitter_scraper/models/x/user_retrieve_likes_response.rbs +0 -141
- data/sig/x_twitter_scraper/models/x/user_retrieve_media_response.rbs +0 -141
- data/sig/x_twitter_scraper/models/x/user_retrieve_response.rbs +0 -88
- data/sig/x_twitter_scraper/models/x/user_retrieve_tweets_response.rbs +0 -141
- data/sig/x_twitter_scraper/models/x_get_home_timeline_response.rbs +0 -139
|
@@ -9,13 +9,13 @@ module XTwitterScraper
|
|
|
9
9
|
#
|
|
10
10
|
# @overload list(cursor: nil, folder_id: nil, request_options: {})
|
|
11
11
|
#
|
|
12
|
-
# @param cursor [String] Pagination cursor
|
|
12
|
+
# @param cursor [String] Pagination cursor for bookmarks
|
|
13
13
|
#
|
|
14
14
|
# @param folder_id [String] Optional bookmark folder ID
|
|
15
15
|
#
|
|
16
16
|
# @param request_options [XTwitterScraper::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
17
17
|
#
|
|
18
|
-
# @return [XTwitterScraper::Models::
|
|
18
|
+
# @return [XTwitterScraper::Models::PaginatedTweets]
|
|
19
19
|
#
|
|
20
20
|
# @see XTwitterScraper::Models::X::BookmarkListParams
|
|
21
21
|
def list(params = {})
|
|
@@ -25,7 +25,7 @@ module XTwitterScraper
|
|
|
25
25
|
method: :get,
|
|
26
26
|
path: "x/bookmarks",
|
|
27
27
|
query: query.transform_keys(folder_id: "folderId"),
|
|
28
|
-
model: XTwitterScraper::
|
|
28
|
+
model: XTwitterScraper::PaginatedTweets,
|
|
29
29
|
options: options
|
|
30
30
|
)
|
|
31
31
|
end
|
|
@@ -12,11 +12,11 @@ module XTwitterScraper
|
|
|
12
12
|
#
|
|
13
13
|
# @param id [String] Resource ID (stringified bigint)
|
|
14
14
|
#
|
|
15
|
-
# @param account [String] X account (@username or account ID)
|
|
15
|
+
# @param account [String] X account identifier (@username or account ID)
|
|
16
16
|
#
|
|
17
17
|
# @param request_options [XTwitterScraper::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
18
18
|
#
|
|
19
|
-
# @return [XTwitterScraper::Models::X::
|
|
19
|
+
# @return [XTwitterScraper::Models::X::CommunityActionResult]
|
|
20
20
|
#
|
|
21
21
|
# @see XTwitterScraper::Models::X::Communities::JoinCreateParams
|
|
22
22
|
def create(id, params)
|
|
@@ -25,7 +25,7 @@ module XTwitterScraper
|
|
|
25
25
|
method: :post,
|
|
26
26
|
path: ["x/communities/%1$s/join", id],
|
|
27
27
|
body: parsed,
|
|
28
|
-
model: XTwitterScraper::
|
|
28
|
+
model: XTwitterScraper::X::CommunityActionResult,
|
|
29
29
|
options: options
|
|
30
30
|
)
|
|
31
31
|
end
|
|
@@ -36,11 +36,11 @@ module XTwitterScraper
|
|
|
36
36
|
#
|
|
37
37
|
# @param id [String] Resource ID (stringified bigint)
|
|
38
38
|
#
|
|
39
|
-
# @param account [String] X account (@username or account ID)
|
|
39
|
+
# @param account [String] X account identifier (@username or account ID)
|
|
40
40
|
#
|
|
41
41
|
# @param request_options [XTwitterScraper::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
42
42
|
#
|
|
43
|
-
# @return [XTwitterScraper::Models::X::
|
|
43
|
+
# @return [XTwitterScraper::Models::X::CommunityActionResult]
|
|
44
44
|
#
|
|
45
45
|
# @see XTwitterScraper::Models::X::Communities::JoinDeleteAllParams
|
|
46
46
|
def delete_all(id, params)
|
|
@@ -49,7 +49,7 @@ module XTwitterScraper
|
|
|
49
49
|
method: :delete,
|
|
50
50
|
path: ["x/communities/%1$s/join", id],
|
|
51
51
|
body: parsed,
|
|
52
|
-
model: XTwitterScraper::
|
|
52
|
+
model: XTwitterScraper::X::CommunityActionResult,
|
|
53
53
|
options: options
|
|
54
54
|
)
|
|
55
55
|
end
|
|
@@ -10,15 +10,15 @@ module XTwitterScraper
|
|
|
10
10
|
#
|
|
11
11
|
# @overload list(q:, cursor: nil, query_type: nil, request_options: {})
|
|
12
12
|
#
|
|
13
|
-
# @param q [String] Search query
|
|
13
|
+
# @param q [String] Search query for cross-community tweets
|
|
14
14
|
#
|
|
15
|
-
# @param cursor [String] Pagination cursor
|
|
15
|
+
# @param cursor [String] Pagination cursor for cross-community results
|
|
16
16
|
#
|
|
17
|
-
# @param query_type [String] Sort order (Latest or Top)
|
|
17
|
+
# @param query_type [String] Sort order for cross-community results (Latest or Top)
|
|
18
18
|
#
|
|
19
19
|
# @param request_options [XTwitterScraper::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
20
20
|
#
|
|
21
|
-
# @return [
|
|
21
|
+
# @return [XTwitterScraper::Models::PaginatedTweets]
|
|
22
22
|
#
|
|
23
23
|
# @see XTwitterScraper::Models::X::Communities::TweetListParams
|
|
24
24
|
def list(params)
|
|
@@ -28,7 +28,32 @@ module XTwitterScraper
|
|
|
28
28
|
method: :get,
|
|
29
29
|
path: "x/communities/tweets",
|
|
30
30
|
query: query.transform_keys(query_type: "queryType"),
|
|
31
|
-
model:
|
|
31
|
+
model: XTwitterScraper::PaginatedTweets,
|
|
32
|
+
options: options
|
|
33
|
+
)
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
# Get community tweets
|
|
37
|
+
#
|
|
38
|
+
# @overload list_by_community(id, cursor: nil, request_options: {})
|
|
39
|
+
#
|
|
40
|
+
# @param id [String] Community ID for tweet lookup
|
|
41
|
+
#
|
|
42
|
+
# @param cursor [String] Pagination cursor for community tweets
|
|
43
|
+
#
|
|
44
|
+
# @param request_options [XTwitterScraper::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
45
|
+
#
|
|
46
|
+
# @return [XTwitterScraper::Models::PaginatedTweets]
|
|
47
|
+
#
|
|
48
|
+
# @see XTwitterScraper::Models::X::Communities::TweetListByCommunityParams
|
|
49
|
+
def list_by_community(id, params = {})
|
|
50
|
+
parsed, options = XTwitterScraper::X::Communities::TweetListByCommunityParams.dump_request(params)
|
|
51
|
+
query = XTwitterScraper::Internal::Util.encode_query_params(parsed)
|
|
52
|
+
@client.request(
|
|
53
|
+
method: :get,
|
|
54
|
+
path: ["x/communities/%1$s/tweets", id],
|
|
55
|
+
query: query,
|
|
56
|
+
model: XTwitterScraper::PaginatedTweets,
|
|
32
57
|
options: options
|
|
33
58
|
)
|
|
34
59
|
end
|
|
@@ -16,7 +16,7 @@ module XTwitterScraper
|
|
|
16
16
|
#
|
|
17
17
|
# @overload create(account:, name:, description: nil, request_options: {})
|
|
18
18
|
#
|
|
19
|
-
# @param account [String] X account (@username or
|
|
19
|
+
# @param account [String] X account (@username or ID) creating the community
|
|
20
20
|
#
|
|
21
21
|
# @param name [String] Community name
|
|
22
22
|
#
|
|
@@ -44,7 +44,7 @@ module XTwitterScraper
|
|
|
44
44
|
#
|
|
45
45
|
# @param id [String] Resource ID (stringified bigint)
|
|
46
46
|
#
|
|
47
|
-
# @param account [String] X account (@username or
|
|
47
|
+
# @param account [String] X account (@username or ID) deleting the community
|
|
48
48
|
#
|
|
49
49
|
# @param community_name [String] Community name for confirmation
|
|
50
50
|
#
|
|
@@ -88,13 +88,13 @@ module XTwitterScraper
|
|
|
88
88
|
#
|
|
89
89
|
# @overload retrieve_members(id, cursor: nil, request_options: {})
|
|
90
90
|
#
|
|
91
|
-
# @param id [String] Community ID
|
|
91
|
+
# @param id [String] Community ID for member lookup
|
|
92
92
|
#
|
|
93
93
|
# @param cursor [String] Pagination cursor
|
|
94
94
|
#
|
|
95
95
|
# @param request_options [XTwitterScraper::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
96
96
|
#
|
|
97
|
-
# @return [
|
|
97
|
+
# @return [XTwitterScraper::Models::PaginatedUsers]
|
|
98
98
|
#
|
|
99
99
|
# @see XTwitterScraper::Models::X::CommunityRetrieveMembersParams
|
|
100
100
|
def retrieve_members(id, params = {})
|
|
@@ -104,7 +104,7 @@ module XTwitterScraper
|
|
|
104
104
|
method: :get,
|
|
105
105
|
path: ["x/communities/%1$s/members", id],
|
|
106
106
|
query: query,
|
|
107
|
-
model:
|
|
107
|
+
model: XTwitterScraper::PaginatedUsers,
|
|
108
108
|
options: options
|
|
109
109
|
)
|
|
110
110
|
end
|
|
@@ -113,13 +113,13 @@ module XTwitterScraper
|
|
|
113
113
|
#
|
|
114
114
|
# @overload retrieve_moderators(id, cursor: nil, request_options: {})
|
|
115
115
|
#
|
|
116
|
-
# @param id [String] Community ID
|
|
116
|
+
# @param id [String] Community ID for moderator lookup
|
|
117
117
|
#
|
|
118
|
-
# @param cursor [String] Pagination cursor
|
|
118
|
+
# @param cursor [String] Pagination cursor for community moderators
|
|
119
119
|
#
|
|
120
120
|
# @param request_options [XTwitterScraper::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
121
121
|
#
|
|
122
|
-
# @return [
|
|
122
|
+
# @return [XTwitterScraper::Models::PaginatedUsers]
|
|
123
123
|
#
|
|
124
124
|
# @see XTwitterScraper::Models::X::CommunityRetrieveModeratorsParams
|
|
125
125
|
def retrieve_moderators(id, params = {})
|
|
@@ -129,7 +129,7 @@ module XTwitterScraper
|
|
|
129
129
|
method: :get,
|
|
130
130
|
path: ["x/communities/%1$s/moderators", id],
|
|
131
131
|
query: query,
|
|
132
|
-
model:
|
|
132
|
+
model: XTwitterScraper::PaginatedUsers,
|
|
133
133
|
options: options
|
|
134
134
|
)
|
|
135
135
|
end
|
|
@@ -140,13 +140,13 @@ module XTwitterScraper
|
|
|
140
140
|
#
|
|
141
141
|
# @param q [String] Search query
|
|
142
142
|
#
|
|
143
|
-
# @param cursor [String] Pagination cursor
|
|
143
|
+
# @param cursor [String] Pagination cursor for community search
|
|
144
144
|
#
|
|
145
145
|
# @param query_type [String] Sort order (Latest or Top)
|
|
146
146
|
#
|
|
147
147
|
# @param request_options [XTwitterScraper::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
148
148
|
#
|
|
149
|
-
# @return [
|
|
149
|
+
# @return [XTwitterScraper::Models::PaginatedTweets]
|
|
150
150
|
#
|
|
151
151
|
# @see XTwitterScraper::Models::X::CommunityRetrieveSearchParams
|
|
152
152
|
def retrieve_search(params)
|
|
@@ -156,7 +156,7 @@ module XTwitterScraper
|
|
|
156
156
|
method: :get,
|
|
157
157
|
path: "x/communities/search",
|
|
158
158
|
query: query.transform_keys(query_type: "queryType"),
|
|
159
|
-
model:
|
|
159
|
+
model: XTwitterScraper::PaginatedTweets,
|
|
160
160
|
options: options
|
|
161
161
|
)
|
|
162
162
|
end
|
|
@@ -10,7 +10,7 @@ module XTwitterScraper
|
|
|
10
10
|
#
|
|
11
11
|
# @param user_id [String] Target user ID
|
|
12
12
|
#
|
|
13
|
-
# @param cursor [String] Pagination cursor
|
|
13
|
+
# @param cursor [String] Pagination cursor for DM history
|
|
14
14
|
#
|
|
15
15
|
# @param max_id [String] Legacy pagination cursor (backward compat)
|
|
16
16
|
#
|
|
@@ -37,7 +37,7 @@ module XTwitterScraper
|
|
|
37
37
|
#
|
|
38
38
|
# @param user_id [String] Recipient user ID
|
|
39
39
|
#
|
|
40
|
-
# @param account [String] X account (@username or
|
|
40
|
+
# @param account [String] X account (@username or ID) sending the DM
|
|
41
41
|
#
|
|
42
42
|
# @param text [String]
|
|
43
43
|
#
|
|
@@ -11,11 +11,11 @@ module XTwitterScraper
|
|
|
11
11
|
#
|
|
12
12
|
# @param id [String] List ID
|
|
13
13
|
#
|
|
14
|
-
# @param cursor [String] Pagination cursor
|
|
14
|
+
# @param cursor [String] Pagination cursor for list followers
|
|
15
15
|
#
|
|
16
16
|
# @param request_options [XTwitterScraper::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
17
17
|
#
|
|
18
|
-
# @return [
|
|
18
|
+
# @return [XTwitterScraper::Models::PaginatedUsers]
|
|
19
19
|
#
|
|
20
20
|
# @see XTwitterScraper::Models::X::ListRetrieveFollowersParams
|
|
21
21
|
def retrieve_followers(id, params = {})
|
|
@@ -25,7 +25,7 @@ module XTwitterScraper
|
|
|
25
25
|
method: :get,
|
|
26
26
|
path: ["x/lists/%1$s/followers", id],
|
|
27
27
|
query: query,
|
|
28
|
-
model:
|
|
28
|
+
model: XTwitterScraper::PaginatedUsers,
|
|
29
29
|
options: options
|
|
30
30
|
)
|
|
31
31
|
end
|
|
@@ -34,13 +34,13 @@ module XTwitterScraper
|
|
|
34
34
|
#
|
|
35
35
|
# @overload retrieve_members(id, cursor: nil, request_options: {})
|
|
36
36
|
#
|
|
37
|
-
# @param id [String] List ID
|
|
37
|
+
# @param id [String] List ID for member lookup
|
|
38
38
|
#
|
|
39
|
-
# @param cursor [String] Pagination cursor
|
|
39
|
+
# @param cursor [String] Pagination cursor for list members
|
|
40
40
|
#
|
|
41
41
|
# @param request_options [XTwitterScraper::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
42
42
|
#
|
|
43
|
-
# @return [
|
|
43
|
+
# @return [XTwitterScraper::Models::PaginatedUsers]
|
|
44
44
|
#
|
|
45
45
|
# @see XTwitterScraper::Models::X::ListRetrieveMembersParams
|
|
46
46
|
def retrieve_members(id, params = {})
|
|
@@ -50,7 +50,7 @@ module XTwitterScraper
|
|
|
50
50
|
method: :get,
|
|
51
51
|
path: ["x/lists/%1$s/members", id],
|
|
52
52
|
query: query,
|
|
53
|
-
model:
|
|
53
|
+
model: XTwitterScraper::PaginatedUsers,
|
|
54
54
|
options: options
|
|
55
55
|
)
|
|
56
56
|
end
|
|
@@ -59,9 +59,9 @@ module XTwitterScraper
|
|
|
59
59
|
#
|
|
60
60
|
# @overload retrieve_tweets(id, cursor: nil, include_replies: nil, since_time: nil, until_time: nil, request_options: {})
|
|
61
61
|
#
|
|
62
|
-
# @param id [String] List ID
|
|
62
|
+
# @param id [String] List ID for tweet lookup
|
|
63
63
|
#
|
|
64
|
-
# @param cursor [String] Pagination cursor
|
|
64
|
+
# @param cursor [String] Pagination cursor for list tweets
|
|
65
65
|
#
|
|
66
66
|
# @param include_replies [Boolean] Include replies (default false)
|
|
67
67
|
#
|
|
@@ -71,7 +71,7 @@ module XTwitterScraper
|
|
|
71
71
|
#
|
|
72
72
|
# @param request_options [XTwitterScraper::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
73
73
|
#
|
|
74
|
-
# @return [
|
|
74
|
+
# @return [XTwitterScraper::Models::PaginatedTweets]
|
|
75
75
|
#
|
|
76
76
|
# @see XTwitterScraper::Models::X::ListRetrieveTweetsParams
|
|
77
77
|
def retrieve_tweets(id, params = {})
|
|
@@ -85,7 +85,7 @@ module XTwitterScraper
|
|
|
85
85
|
since_time: "sinceTime",
|
|
86
86
|
until_time: "untilTime"
|
|
87
87
|
),
|
|
88
|
-
model:
|
|
88
|
+
model: XTwitterScraper::PaginatedTweets,
|
|
89
89
|
options: options
|
|
90
90
|
)
|
|
91
91
|
end
|
|
@@ -33,7 +33,7 @@ module XTwitterScraper
|
|
|
33
33
|
#
|
|
34
34
|
# @overload upload(account:, file:, is_long_video: nil, request_options: {})
|
|
35
35
|
#
|
|
36
|
-
# @param account [String] X account (@username or
|
|
36
|
+
# @param account [String] X account (@username or ID) uploading media
|
|
37
37
|
#
|
|
38
38
|
# @param file [Pathname, StringIO, IO, String, XTwitterScraper::FilePart] Media file to upload
|
|
39
39
|
#
|
|
@@ -9,7 +9,7 @@ module XTwitterScraper
|
|
|
9
9
|
#
|
|
10
10
|
# @overload update(account:, description: nil, location: nil, name: nil, url: nil, request_options: {})
|
|
11
11
|
#
|
|
12
|
-
# @param account [String] X account (@username or
|
|
12
|
+
# @param account [String] X account (@username or ID) to update profile
|
|
13
13
|
#
|
|
14
14
|
# @param description [String] Bio description
|
|
15
15
|
#
|
|
@@ -39,7 +39,7 @@ module XTwitterScraper
|
|
|
39
39
|
#
|
|
40
40
|
# @overload update_avatar(account:, file:, request_options: {})
|
|
41
41
|
#
|
|
42
|
-
# @param account [String] X account (@username or
|
|
42
|
+
# @param account [String] X account (@username or ID) for avatar update
|
|
43
43
|
#
|
|
44
44
|
# @param file [Pathname, StringIO, IO, String, XTwitterScraper::FilePart] Avatar image (max 716KB)
|
|
45
45
|
#
|
|
@@ -64,7 +64,7 @@ module XTwitterScraper
|
|
|
64
64
|
#
|
|
65
65
|
# @overload update_banner(account:, file:, request_options: {})
|
|
66
66
|
#
|
|
67
|
-
# @param account [String] X account (@username or
|
|
67
|
+
# @param account [String] X account (@username or ID) for banner update
|
|
68
68
|
#
|
|
69
69
|
# @param file [Pathname, StringIO, IO, String, XTwitterScraper::FilePart] Banner image (max 2MB)
|
|
70
70
|
#
|
|
@@ -8,22 +8,22 @@ module XTwitterScraper
|
|
|
8
8
|
class Like
|
|
9
9
|
# Like tweet
|
|
10
10
|
#
|
|
11
|
-
# @overload create(
|
|
11
|
+
# @overload create(id, account:, request_options: {})
|
|
12
12
|
#
|
|
13
|
-
# @param
|
|
13
|
+
# @param id [String] Tweet ID to like
|
|
14
14
|
#
|
|
15
|
-
# @param account [String] X account (@username or account ID)
|
|
15
|
+
# @param account [String] X account identifier (@username or account ID)
|
|
16
16
|
#
|
|
17
17
|
# @param request_options [XTwitterScraper::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
18
18
|
#
|
|
19
19
|
# @return [XTwitterScraper::Models::X::Tweets::LikeCreateResponse]
|
|
20
20
|
#
|
|
21
21
|
# @see XTwitterScraper::Models::X::Tweets::LikeCreateParams
|
|
22
|
-
def create(
|
|
22
|
+
def create(id, params)
|
|
23
23
|
parsed, options = XTwitterScraper::X::Tweets::LikeCreateParams.dump_request(params)
|
|
24
24
|
@client.request(
|
|
25
25
|
method: :post,
|
|
26
|
-
path: ["x/tweets/%1$s/like",
|
|
26
|
+
path: ["x/tweets/%1$s/like", id],
|
|
27
27
|
body: parsed,
|
|
28
28
|
model: XTwitterScraper::Models::X::Tweets::LikeCreateResponse,
|
|
29
29
|
options: options
|
|
@@ -32,22 +32,22 @@ module XTwitterScraper
|
|
|
32
32
|
|
|
33
33
|
# Unlike tweet
|
|
34
34
|
#
|
|
35
|
-
# @overload delete(
|
|
35
|
+
# @overload delete(id, account:, request_options: {})
|
|
36
36
|
#
|
|
37
|
-
# @param
|
|
37
|
+
# @param id [String] Tweet ID to unlike
|
|
38
38
|
#
|
|
39
|
-
# @param account [String] X account (@username or account ID)
|
|
39
|
+
# @param account [String] X account identifier (@username or account ID)
|
|
40
40
|
#
|
|
41
41
|
# @param request_options [XTwitterScraper::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
42
42
|
#
|
|
43
43
|
# @return [XTwitterScraper::Models::X::Tweets::LikeDeleteResponse]
|
|
44
44
|
#
|
|
45
45
|
# @see XTwitterScraper::Models::X::Tweets::LikeDeleteParams
|
|
46
|
-
def delete(
|
|
46
|
+
def delete(id, params)
|
|
47
47
|
parsed, options = XTwitterScraper::X::Tweets::LikeDeleteParams.dump_request(params)
|
|
48
48
|
@client.request(
|
|
49
49
|
method: :delete,
|
|
50
|
-
path: ["x/tweets/%1$s/like",
|
|
50
|
+
path: ["x/tweets/%1$s/like", id],
|
|
51
51
|
body: parsed,
|
|
52
52
|
model: XTwitterScraper::Models::X::Tweets::LikeDeleteResponse,
|
|
53
53
|
options: options
|
|
@@ -8,22 +8,22 @@ module XTwitterScraper
|
|
|
8
8
|
class Retweet
|
|
9
9
|
# Retweet
|
|
10
10
|
#
|
|
11
|
-
# @overload create(
|
|
11
|
+
# @overload create(id, account:, request_options: {})
|
|
12
12
|
#
|
|
13
|
-
# @param
|
|
13
|
+
# @param id [String] Tweet ID to retweet
|
|
14
14
|
#
|
|
15
|
-
# @param account [String] X account (@username or account ID)
|
|
15
|
+
# @param account [String] X account identifier (@username or account ID)
|
|
16
16
|
#
|
|
17
17
|
# @param request_options [XTwitterScraper::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
18
18
|
#
|
|
19
19
|
# @return [XTwitterScraper::Models::X::Tweets::RetweetCreateResponse]
|
|
20
20
|
#
|
|
21
21
|
# @see XTwitterScraper::Models::X::Tweets::RetweetCreateParams
|
|
22
|
-
def create(
|
|
22
|
+
def create(id, params)
|
|
23
23
|
parsed, options = XTwitterScraper::X::Tweets::RetweetCreateParams.dump_request(params)
|
|
24
24
|
@client.request(
|
|
25
25
|
method: :post,
|
|
26
|
-
path: ["x/tweets/%1$s/retweet",
|
|
26
|
+
path: ["x/tweets/%1$s/retweet", id],
|
|
27
27
|
body: parsed,
|
|
28
28
|
model: XTwitterScraper::Models::X::Tweets::RetweetCreateResponse,
|
|
29
29
|
options: options
|
|
@@ -32,22 +32,22 @@ module XTwitterScraper
|
|
|
32
32
|
|
|
33
33
|
# Unretweet
|
|
34
34
|
#
|
|
35
|
-
# @overload delete(
|
|
35
|
+
# @overload delete(id, account:, request_options: {})
|
|
36
36
|
#
|
|
37
|
-
# @param
|
|
37
|
+
# @param id [String] Tweet ID to unretweet
|
|
38
38
|
#
|
|
39
|
-
# @param account [String] X account (@username or account ID)
|
|
39
|
+
# @param account [String] X account identifier (@username or account ID)
|
|
40
40
|
#
|
|
41
41
|
# @param request_options [XTwitterScraper::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
42
42
|
#
|
|
43
43
|
# @return [XTwitterScraper::Models::X::Tweets::RetweetDeleteResponse]
|
|
44
44
|
#
|
|
45
45
|
# @see XTwitterScraper::Models::X::Tweets::RetweetDeleteParams
|
|
46
|
-
def delete(
|
|
46
|
+
def delete(id, params)
|
|
47
47
|
parsed, options = XTwitterScraper::X::Tweets::RetweetDeleteParams.dump_request(params)
|
|
48
48
|
@client.request(
|
|
49
49
|
method: :delete,
|
|
50
|
-
path: ["x/tweets/%1$s/retweet",
|
|
50
|
+
path: ["x/tweets/%1$s/retweet", id],
|
|
51
51
|
body: parsed,
|
|
52
52
|
model: XTwitterScraper::Models::X::Tweets::RetweetDeleteResponse,
|
|
53
53
|
options: options
|