x-twitter-scraper 0.11.0 → 0.12.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 +31 -0
- data/README.md +1 -1
- data/lib/x_twitter_scraper/client.rb +4 -0
- data/lib/x_twitter_scraper/internal/stream.rb +34 -0
- data/lib/x_twitter_scraper/internal/type/base_model.rb +2 -0
- data/lib/x_twitter_scraper/internal/type/converter.rb +2 -0
- data/lib/x_twitter_scraper/internal/type/union.rb +6 -2
- data/lib/x_twitter_scraper/models/activity_export_params.rb +113 -0
- data/lib/x_twitter_scraper/models/activity_list_params.rb +107 -0
- data/lib/x_twitter_scraper/models/activity_list_response.rb +13 -0
- data/lib/x_twitter_scraper/models/activity_log_row.rb +123 -0
- data/lib/x_twitter_scraper/models/activity_record.rb +489 -0
- data/lib/x_twitter_scraper/models/activity_retrieve_params.rb +27 -0
- data/lib/x_twitter_scraper/models/audited_follower.rb +114 -0
- data/lib/x_twitter_scraper/models/batch_user_tweets.rb +84 -0
- data/lib/x_twitter_scraper/models/broadcast.rb +261 -0
- data/lib/x_twitter_scraper/models/community.rb +957 -0
- data/lib/x_twitter_scraper/models/community_analytics.rb +89 -0
- data/lib/x_twitter_scraper/models/community_analytics_metric.rb +30 -0
- data/lib/x_twitter_scraper/models/community_banner.rb +126 -0
- data/lib/x_twitter_scraper/models/community_member_preview.rb +38 -0
- data/lib/x_twitter_scraper/models/community_note.rb +257 -0
- data/lib/x_twitter_scraper/models/community_note_entity.rb +83 -0
- data/lib/x_twitter_scraper/models/community_notes_contributor.rb +64 -0
- data/lib/x_twitter_scraper/models/community_notes_note_counts.rb +46 -0
- data/lib/x_twitter_scraper/models/community_notes_rating_counts.rb +54 -0
- data/lib/x_twitter_scraper/models/community_notes_rating_outcome.rb +38 -0
- data/lib/x_twitter_scraper/models/community_page.rb +38 -0
- data/lib/x_twitter_scraper/models/community_topic.rb +57 -0
- data/lib/x_twitter_scraper/models/event_stream_params.rb +55 -0
- data/lib/x_twitter_scraper/models/extraction_cancel_params.rb +27 -0
- data/lib/x_twitter_scraper/models/extraction_cancel_response.rb +27 -0
- data/lib/x_twitter_scraper/models/follower_audit.rb +300 -0
- data/lib/x_twitter_scraper/models/follower_class.rb +23 -0
- data/lib/x_twitter_scraper/models/follower_value_count.rb +35 -0
- data/lib/x_twitter_scraper/models/football_box_score.rb +73 -0
- data/lib/x_twitter_scraper/models/football_drive.rb +122 -0
- data/lib/x_twitter_scraper/models/football_fumble_stats.rb +38 -0
- data/lib/x_twitter_scraper/models/football_odds.rb +38 -0
- data/lib/x_twitter_scraper/models/football_passing_stats.rb +94 -0
- data/lib/x_twitter_scraper/models/football_period.rb +54 -0
- data/lib/x_twitter_scraper/models/football_play.rb +279 -0
- data/lib/x_twitter_scraper/models/football_play_detail.rb +134 -0
- data/lib/x_twitter_scraper/models/football_player.rb +196 -0
- data/lib/x_twitter_scraper/models/football_player_prop.rb +66 -0
- data/lib/x_twitter_scraper/models/football_player_stats.rb +372 -0
- data/lib/x_twitter_scraper/models/football_plays.rb +81 -0
- data/lib/x_twitter_scraper/models/football_prop_category.rb +46 -0
- data/lib/x_twitter_scraper/models/football_props.rb +66 -0
- data/lib/x_twitter_scraper/models/football_quarter.rb +46 -0
- data/lib/x_twitter_scraper/models/football_return_stats.rb +54 -0
- data/lib/x_twitter_scraper/models/football_roster.rb +65 -0
- data/lib/x_twitter_scraper/models/football_roster_team.rb +30 -0
- data/lib/x_twitter_scraper/models/football_rushing_stats.rb +54 -0
- data/lib/x_twitter_scraper/models/football_schedule.rb +49 -0
- data/lib/x_twitter_scraper/models/football_schedule_game.rb +131 -0
- data/lib/x_twitter_scraper/models/football_schedule_period.rb +22 -0
- data/lib/x_twitter_scraper/models/football_scoreboard.rb +209 -0
- data/lib/x_twitter_scraper/models/football_side.rb +38 -0
- data/lib/x_twitter_scraper/models/football_team_box.rb +38 -0
- data/lib/x_twitter_scraper/models/football_team_score.rb +30 -0
- data/lib/x_twitter_scraper/models/football_team_totals.rb +128 -0
- data/lib/x_twitter_scraper/models/hashflag.rb +89 -0
- data/lib/x_twitter_scraper/models/job.rb +194 -0
- data/lib/x_twitter_scraper/models/job_account.rb +87 -0
- data/lib/x_twitter_scraper/models/job_company.rb +38 -0
- data/lib/x_twitter_scraper/models/job_location.rb +30 -0
- data/lib/x_twitter_scraper/models/job_locations.rb +30 -0
- data/lib/x_twitter_scraper/models/monitor_upsert_by_username_params.rb +44 -0
- data/lib/x_twitter_scraper/models/monitor_upsert_by_username_response.rb +116 -0
- data/lib/x_twitter_scraper/models/monitors/post_create_params.rb +55 -0
- data/lib/x_twitter_scraper/models/monitors/post_delete_params.rb +28 -0
- data/lib/x_twitter_scraper/models/monitors/post_delete_response.rb +37 -0
- data/lib/x_twitter_scraper/models/monitors/post_list_params.rb +38 -0
- data/lib/x_twitter_scraper/models/monitors/post_list_response.rb +44 -0
- data/lib/x_twitter_scraper/models/monitors/post_retrieve_metrics_params.rb +36 -0
- data/lib/x_twitter_scraper/models/monitors/post_retrieve_params.rb +28 -0
- data/lib/x_twitter_scraper/models/monitors/post_update_params.rb +52 -0
- data/lib/x_twitter_scraper/models/news_version.rb +46 -0
- data/lib/x_twitter_scraper/models/paginated_community_notes.rb +37 -0
- data/lib/x_twitter_scraper/models/paginated_jobs.rb +37 -0
- data/lib/x_twitter_scraper/models/paginated_lists.rb +37 -0
- data/lib/x_twitter_scraper/models/paginated_user_ids.rb +38 -0
- data/lib/x_twitter_scraper/models/place.rb +116 -0
- data/lib/x_twitter_scraper/models/place_search_result.rb +124 -0
- data/lib/x_twitter_scraper/models/post_engagement_metrics.rb +62 -0
- data/lib/x_twitter_scraper/models/post_event_type.rb +31 -0
- data/lib/x_twitter_scraper/models/post_metric_point.rb +29 -0
- data/lib/x_twitter_scraper/models/post_metric_reading.rb +29 -0
- data/lib/x_twitter_scraper/models/post_metrics.rb +68 -0
- data/lib/x_twitter_scraper/models/post_monitor.rb +322 -0
- data/lib/x_twitter_scraper/models/post_monitor_metrics.rb +103 -0
- data/lib/x_twitter_scraper/models/profile_translation.rb +64 -0
- data/lib/x_twitter_scraper/models/resolved_link.rb +31 -0
- data/lib/x_twitter_scraper/models/search_suggestion_cashtag.rb +102 -0
- data/lib/x_twitter_scraper/models/search_suggestion_hashtag.rb +46 -0
- data/lib/x_twitter_scraper/models/search_suggestion_topic.rb +46 -0
- data/lib/x_twitter_scraper/models/search_suggestion_user.rb +174 -0
- data/lib/x_twitter_scraper/models/search_suggestions.rb +63 -0
- data/lib/x_twitter_scraper/models/shadowban_report.rb +833 -0
- data/lib/x_twitter_scraper/models/shadowban_verdict.rb +22 -0
- data/lib/x_twitter_scraper/models/space.rb +254 -0
- data/lib/x_twitter_scraper/models/space_participant.rb +116 -0
- data/lib/x_twitter_scraper/models/space_sharing.rb +54 -0
- data/lib/x_twitter_scraper/models/sports_game_audience.rb +195 -0
- data/lib/x_twitter_scraper/models/sports_game_posts.rb +152 -0
- data/lib/x_twitter_scraper/models/sports_team.rb +192 -0
- data/lib/x_twitter_scraper/models/sports_team_game.rb +78 -0
- data/lib/x_twitter_scraper/models/subtitle_track.rb +106 -0
- data/lib/x_twitter_scraper/models/trend_location.rb +77 -0
- data/lib/x_twitter_scraper/models/tweet_embed.rb +71 -0
- data/lib/x_twitter_scraper/models/tweet_entities.rb +56 -0
- data/lib/x_twitter_scraper/models/tweet_hashtag.rb +36 -0
- data/lib/x_twitter_scraper/models/tweet_insights.rb +111 -0
- data/lib/x_twitter_scraper/models/tweet_smart_tag.rb +64 -0
- data/lib/x_twitter_scraper/models/tweet_subtitles.rb +30 -0
- data/lib/x_twitter_scraper/models/tweet_symbol.rb +43 -0
- data/lib/x_twitter_scraper/models/tweet_translation.rb +56 -0
- data/lib/x_twitter_scraper/models/tweet_url_entity.rb +42 -0
- data/lib/x_twitter_scraper/models/tweet_user_mention.rb +42 -0
- data/lib/x_twitter_scraper/models/user_affiliate_label.rb +75 -0
- data/lib/x_twitter_scraper/models/user_auxiliary_label.rb +49 -0
- data/lib/x_twitter_scraper/models/user_highlights_info.rb +28 -0
- data/lib/x_twitter_scraper/models/user_identity_verification.rb +45 -0
- data/lib/x_twitter_scraper/models/user_insights.rb +229 -0
- data/lib/x_twitter_scraper/models/user_live_status.rb +48 -0
- data/lib/x_twitter_scraper/models/webhook_create_telegram_link_params.rb +26 -0
- data/lib/x_twitter_scraper/models/webhook_create_telegram_link_response.rb +29 -0
- data/lib/x_twitter_scraper/models/x/broadcast_retrieve_params.rb +53 -0
- data/lib/x_twitter_scraper/models/x/broadcast_retrieve_response.rb +23 -0
- data/lib/x_twitter_scraper/models/x/communities/media_list_params.rb +414 -0
- data/lib/x_twitter_scraper/models/x/community_find_params.rb +72 -0
- data/lib/x_twitter_scraper/models/x/community_list_popular_params.rb +81 -0
- data/lib/x_twitter_scraper/models/x/community_list_suggested_params.rb +54 -0
- data/lib/x_twitter_scraper/models/x/community_list_suggested_response.rb +39 -0
- data/lib/x_twitter_scraper/models/x/community_list_topics_params.rb +54 -0
- data/lib/x_twitter_scraper/models/x/community_list_topics_response.rb +39 -0
- data/lib/x_twitter_scraper/models/x/community_note_list_contributor_deleted_notes_params.rb +72 -0
- data/lib/x_twitter_scraper/models/x/community_note_list_contributor_notes_params.rb +72 -0
- data/lib/x_twitter_scraper/models/x/community_note_retrieve_contributor_params.rb +53 -0
- data/lib/x_twitter_scraper/models/x/community_note_retrieve_contributor_response.rb +25 -0
- data/lib/x_twitter_scraper/models/x/community_retrieve_analytics_params.rb +54 -0
- data/lib/x_twitter_scraper/models/x/community_search_members_params.rb +209 -0
- data/lib/x_twitter_scraper/models/x/dm_delete_message_params.rb +71 -0
- data/lib/x_twitter_scraper/models/x/job_list_locations_params.rb +62 -0
- data/lib/x_twitter_scraper/models/x/job_retrieve_params.rb +53 -0
- data/lib/x_twitter_scraper/models/x/job_retrieve_response.rb +25 -0
- data/lib/x_twitter_scraper/models/x/job_search_params.rb +127 -0
- data/lib/x_twitter_scraper/models/x/list_retrieve_params.rb +52 -0
- data/lib/x_twitter_scraper/models/x/list_retrieve_response.rb +23 -0
- data/lib/x_twitter_scraper/models/x/list_retrieve_search_params.rb +72 -0
- data/lib/x_twitter_scraper/models/x/space_retrieve_params.rb +52 -0
- data/lib/x_twitter_scraper/models/x/space_retrieve_replay_params.rb +52 -0
- data/lib/x_twitter_scraper/models/x/space_retrieve_replay_response.rb +52 -0
- data/lib/x_twitter_scraper/models/x/space_retrieve_response.rb +23 -0
- data/lib/x_twitter_scraper/models/x/space_search_params.rb +96 -0
- data/lib/x_twitter_scraper/models/x/space_search_response.rb +39 -0
- data/lib/x_twitter_scraper/models/x/sport_list_games_params.rb +91 -0
- data/lib/x_twitter_scraper/models/x/sport_list_posts_params.rb +112 -0
- data/lib/x_twitter_scraper/models/x/sport_retrieve_audience_params.rb +72 -0
- data/lib/x_twitter_scraper/models/x/sport_retrieve_box_score_params.rb +72 -0
- data/lib/x_twitter_scraper/models/x/sport_retrieve_player_props_params.rb +72 -0
- data/lib/x_twitter_scraper/models/x/sport_retrieve_plays_params.rb +72 -0
- data/lib/x_twitter_scraper/models/x/sport_retrieve_roster_params.rb +72 -0
- data/lib/x_twitter_scraper/models/x/sport_retrieve_scoreboard_params.rb +72 -0
- data/lib/x_twitter_scraper/models/x/tweet_check_repost_params.rb +59 -0
- data/lib/x_twitter_scraper/models/x/tweet_check_repost_response.rb +69 -0
- data/lib/x_twitter_scraper/models/x/tweet_embed_params.rb +98 -0
- data/lib/x_twitter_scraper/models/x/tweet_embed_response.rb +23 -0
- data/lib/x_twitter_scraper/models/x/tweet_get_hidden_replies_params.rb +412 -0
- data/lib/x_twitter_scraper/models/x/tweet_get_insights_params.rb +55 -0
- data/lib/x_twitter_scraper/models/x/tweet_get_insights_response.rb +24 -0
- data/lib/x_twitter_scraper/models/x/tweet_get_retweeter_ids_params.rb +51 -0
- data/lib/x_twitter_scraper/models/x/tweet_get_subtitles_params.rb +55 -0
- data/lib/x_twitter_scraper/models/x/tweet_get_subtitles_response.rb +23 -0
- data/lib/x_twitter_scraper/models/x/tweet_list_top_params.rb +124 -0
- data/lib/x_twitter_scraper/models/x/tweet_resolve_links_params.rb +54 -0
- data/lib/x_twitter_scraper/models/x/tweet_resolve_links_response.rb +33 -0
- data/lib/x_twitter_scraper/models/x/tweet_translate_params.rb +64 -0
- data/lib/x_twitter_scraper/models/x/tweet_translate_response.rb +25 -0
- data/lib/x_twitter_scraper/models/x/tweets/bookmark_create_params.rb +66 -0
- data/lib/x_twitter_scraper/models/x/tweets/bookmark_delete_params.rb +66 -0
- data/lib/x_twitter_scraper/models/x/user_retrieve_affiliates_params.rb +217 -0
- data/lib/x_twitter_scraper/models/x/user_retrieve_articles_params.rb +412 -0
- data/lib/x_twitter_scraper/models/x/user_retrieve_batch_response.rb +18 -1
- data/lib/x_twitter_scraper/models/x/user_retrieve_batch_tweets_params.rb +74 -0
- data/lib/x_twitter_scraper/models/x/user_retrieve_follower_audit_params.rb +65 -0
- data/lib/x_twitter_scraper/models/x/user_retrieve_follower_audit_response.rb +24 -0
- data/lib/x_twitter_scraper/models/x/user_retrieve_follower_ids_params.rb +46 -0
- data/lib/x_twitter_scraper/models/x/user_retrieve_following_ids_params.rb +46 -0
- data/lib/x_twitter_scraper/models/x/user_retrieve_highlights_params.rb +412 -0
- data/lib/x_twitter_scraper/models/x/user_retrieve_insights_params.rb +66 -0
- data/lib/x_twitter_scraper/models/x/user_retrieve_insights_response.rb +33 -0
- data/lib/x_twitter_scraper/models/x/user_retrieve_list_memberships_params.rb +71 -0
- data/lib/x_twitter_scraper/models/x/user_retrieve_lists_params.rb +71 -0
- data/lib/x_twitter_scraper/models/x/user_retrieve_live_params.rb +54 -0
- data/lib/x_twitter_scraper/models/x/user_retrieve_shadowban_params.rb +65 -0
- data/lib/x_twitter_scraper/models/x/user_retrieve_similar_params.rb +217 -0
- data/lib/x_twitter_scraper/models/x/user_retrieve_subscriptions_params.rb +217 -0
- data/lib/x_twitter_scraper/models/x/user_translate_bio_params.rb +63 -0
- data/lib/x_twitter_scraper/models/x/user_translate_bio_response.rb +31 -0
- data/lib/x_twitter_scraper/models/x/users/block_create_params.rb +65 -0
- data/lib/x_twitter_scraper/models/x/users/block_delete_params.rb +65 -0
- data/lib/x_twitter_scraper/models/x/users/mute_create_params.rb +65 -0
- data/lib/x_twitter_scraper/models/x/users/mute_delete_params.rb +65 -0
- data/lib/x_twitter_scraper/models/x_autocomplete_search_params.rb +73 -0
- data/lib/x_twitter_scraper/models/x_get_hashflags_params.rb +69 -0
- data/lib/x_twitter_scraper/models/x_get_hashflags_response.rb +44 -0
- data/lib/x_twitter_scraper/models/x_get_news_story_versions_params.rb +51 -0
- data/lib/x_twitter_scraper/models/x_get_news_story_versions_response.rb +36 -0
- data/lib/x_twitter_scraper/models/x_get_trend_locations_params.rb +91 -0
- data/lib/x_twitter_scraper/models/x_get_trend_locations_response.rb +44 -0
- data/lib/x_twitter_scraper/models/x_get_trends_history_params.rb +129 -0
- data/lib/x_twitter_scraper/models/x_get_trends_history_response.rb +161 -0
- data/lib/x_twitter_scraper/models/x_list.rb +118 -0
- data/lib/x_twitter_scraper/models/x_list_banner.rb +152 -0
- data/lib/x_twitter_scraper/models/x_search_places_params.rb +61 -0
- data/lib/x_twitter_scraper/models/x_search_places_response.rb +44 -0
- data/lib/x_twitter_scraper/models.rb +234 -0
- data/lib/x_twitter_scraper/resources/activity.rb +122 -0
- data/lib/x_twitter_scraper/resources/events.rb +42 -0
- data/lib/x_twitter_scraper/resources/extractions.rb +20 -0
- data/lib/x_twitter_scraper/resources/monitors/posts.rb +175 -0
- data/lib/x_twitter_scraper/resources/monitors.rb +35 -0
- data/lib/x_twitter_scraper/resources/webhooks.rb +28 -0
- data/lib/x_twitter_scraper/resources/x/broadcasts.rb +49 -0
- data/lib/x_twitter_scraper/resources/x/communities/media.rb +126 -0
- data/lib/x_twitter_scraper/resources/x/communities.rb +226 -0
- data/lib/x_twitter_scraper/resources/x/community_notes.rb +115 -0
- data/lib/x_twitter_scraper/resources/x/dm.rb +38 -0
- data/lib/x_twitter_scraper/resources/x/jobs.rb +124 -0
- data/lib/x_twitter_scraper/resources/x/lists.rb +62 -0
- data/lib/x_twitter_scraper/resources/x/spaces.rb +114 -0
- data/lib/x_twitter_scraper/resources/x/sports.rb +296 -0
- data/lib/x_twitter_scraper/resources/x/tweets/bookmark.rb +83 -0
- data/lib/x_twitter_scraper/resources/x/tweets.rb +363 -0
- data/lib/x_twitter_scraper/resources/x/users/block.rb +83 -0
- data/lib/x_twitter_scraper/resources/x/users/mute.rb +83 -0
- data/lib/x_twitter_scraper/resources/x/users.rb +743 -0
- data/lib/x_twitter_scraper/resources/x.rb +234 -0
- data/lib/x_twitter_scraper/version.rb +1 -1
- data/lib/x_twitter_scraper.rb +222 -0
- data/rbi/x_twitter_scraper/client.rbi +3 -0
- data/rbi/x_twitter_scraper/internal/stream.rbi +38 -0
- data/rbi/x_twitter_scraper/models/activity_export_params.rbi +236 -0
- data/rbi/x_twitter_scraper/models/activity_list_params.rbi +206 -0
- data/rbi/x_twitter_scraper/models/activity_list_response.rbi +17 -0
- data/rbi/x_twitter_scraper/models/activity_log_row.rbi +150 -0
- data/rbi/x_twitter_scraper/models/activity_record.rbi +1008 -0
- data/rbi/x_twitter_scraper/models/activity_retrieve_params.rbi +49 -0
- data/rbi/x_twitter_scraper/models/audited_follower.rbi +138 -0
- data/rbi/x_twitter_scraper/models/batch_user_tweets.rbi +115 -0
- data/rbi/x_twitter_scraper/models/broadcast.rbi +398 -0
- data/rbi/x_twitter_scraper/models/community.rbi +1492 -0
- data/rbi/x_twitter_scraper/models/community_analytics.rbi +179 -0
- data/rbi/x_twitter_scraper/models/community_analytics_metric.rbi +42 -0
- data/rbi/x_twitter_scraper/models/community_banner.rbi +224 -0
- data/rbi/x_twitter_scraper/models/community_member_preview.rbi +66 -0
- data/rbi/x_twitter_scraper/models/community_note.rbi +407 -0
- data/rbi/x_twitter_scraper/models/community_note_entity.rbi +157 -0
- data/rbi/x_twitter_scraper/models/community_notes_contributor.rbi +114 -0
- data/rbi/x_twitter_scraper/models/community_notes_note_counts.rbi +80 -0
- data/rbi/x_twitter_scraper/models/community_notes_rating_counts.rbi +107 -0
- data/rbi/x_twitter_scraper/models/community_notes_rating_outcome.rbi +65 -0
- data/rbi/x_twitter_scraper/models/community_page.rbi +67 -0
- data/rbi/x_twitter_scraper/models/community_topic.rbi +103 -0
- data/rbi/x_twitter_scraper/models/event_stream_params.rbi +121 -0
- data/rbi/x_twitter_scraper/models/extraction_cancel_params.rbi +49 -0
- data/rbi/x_twitter_scraper/models/extraction_cancel_response.rbi +33 -0
- data/rbi/x_twitter_scraper/models/follower_audit.rbi +565 -0
- data/rbi/x_twitter_scraper/models/follower_class.rbi +37 -0
- data/rbi/x_twitter_scraper/models/follower_value_count.rbi +42 -0
- data/rbi/x_twitter_scraper/models/football_box_score.rbi +152 -0
- data/rbi/x_twitter_scraper/models/football_drive.rbi +155 -0
- data/rbi/x_twitter_scraper/models/football_fumble_stats.rbi +60 -0
- data/rbi/x_twitter_scraper/models/football_odds.rbi +60 -0
- data/rbi/x_twitter_scraper/models/football_passing_stats.rbi +116 -0
- data/rbi/x_twitter_scraper/models/football_period.rbi +76 -0
- data/rbi/x_twitter_scraper/models/football_play.rbi +420 -0
- data/rbi/x_twitter_scraper/models/football_play_detail.rbi +231 -0
- data/rbi/x_twitter_scraper/models/football_player.rbi +276 -0
- data/rbi/x_twitter_scraper/models/football_player_prop.rbi +86 -0
- data/rbi/x_twitter_scraper/models/football_player_stats.rbi +643 -0
- data/rbi/x_twitter_scraper/models/football_plays.rbi +157 -0
- data/rbi/x_twitter_scraper/models/football_prop_category.rbi +75 -0
- data/rbi/x_twitter_scraper/models/football_props.rbi +135 -0
- data/rbi/x_twitter_scraper/models/football_quarter.rbi +75 -0
- data/rbi/x_twitter_scraper/models/football_return_stats.rbi +76 -0
- data/rbi/x_twitter_scraper/models/football_roster.rbi +139 -0
- data/rbi/x_twitter_scraper/models/football_roster_team.rbi +46 -0
- data/rbi/x_twitter_scraper/models/football_rushing_stats.rbi +76 -0
- data/rbi/x_twitter_scraper/models/football_schedule.rbi +117 -0
- data/rbi/x_twitter_scraper/models/football_schedule_game.rbi +215 -0
- data/rbi/x_twitter_scraper/models/football_schedule_period.rbi +34 -0
- data/rbi/x_twitter_scraper/models/football_scoreboard.rbi +343 -0
- data/rbi/x_twitter_scraper/models/football_side.rbi +60 -0
- data/rbi/x_twitter_scraper/models/football_team_box.rbi +77 -0
- data/rbi/x_twitter_scraper/models/football_team_score.rbi +48 -0
- data/rbi/x_twitter_scraper/models/football_team_totals.rbi +252 -0
- data/rbi/x_twitter_scraper/models/hashflag.rbi +144 -0
- data/rbi/x_twitter_scraper/models/job.rbi +276 -0
- data/rbi/x_twitter_scraper/models/job_account.rbi +129 -0
- data/rbi/x_twitter_scraper/models/job_company.rbi +56 -0
- data/rbi/x_twitter_scraper/models/job_location.rbi +40 -0
- data/rbi/x_twitter_scraper/models/job_locations.rbi +59 -0
- data/rbi/x_twitter_scraper/models/monitor_upsert_by_username_params.rbi +83 -0
- data/rbi/x_twitter_scraper/models/monitor_upsert_by_username_response.rbi +195 -0
- data/rbi/x_twitter_scraper/models/monitors/post_create_params.rbi +104 -0
- data/rbi/x_twitter_scraper/models/monitors/post_delete_params.rbi +49 -0
- data/rbi/x_twitter_scraper/models/monitors/post_delete_response.rbi +54 -0
- data/rbi/x_twitter_scraper/models/monitors/post_list_params.rbi +70 -0
- data/rbi/x_twitter_scraper/models/monitors/post_list_response.rbi +74 -0
- data/rbi/x_twitter_scraper/models/monitors/post_retrieve_metrics_params.rbi +63 -0
- data/rbi/x_twitter_scraper/models/monitors/post_retrieve_params.rbi +49 -0
- data/rbi/x_twitter_scraper/models/monitors/post_update_params.rbi +98 -0
- data/rbi/x_twitter_scraper/models/news_version.rbi +63 -0
- data/rbi/x_twitter_scraper/models/paginated_community_notes.rbi +63 -0
- data/rbi/x_twitter_scraper/models/paginated_jobs.rbi +59 -0
- data/rbi/x_twitter_scraper/models/paginated_lists.rbi +61 -0
- data/rbi/x_twitter_scraper/models/paginated_user_ids.rbi +58 -0
- data/rbi/x_twitter_scraper/models/place.rbi +166 -0
- data/rbi/x_twitter_scraper/models/place_search_result.rbi +191 -0
- data/rbi/x_twitter_scraper/models/post_engagement_metrics.rbi +84 -0
- data/rbi/x_twitter_scraper/models/post_event_type.rbi +80 -0
- data/rbi/x_twitter_scraper/models/post_metric_point.rbi +41 -0
- data/rbi/x_twitter_scraper/models/post_metric_reading.rbi +41 -0
- data/rbi/x_twitter_scraper/models/post_metrics.rbi +130 -0
- data/rbi/x_twitter_scraper/models/post_monitor.rbi +573 -0
- data/rbi/x_twitter_scraper/models/post_monitor_metrics.rbi +239 -0
- data/rbi/x_twitter_scraper/models/profile_translation.rbi +92 -0
- data/rbi/x_twitter_scraper/models/resolved_link.rbi +47 -0
- data/rbi/x_twitter_scraper/models/search_suggestion_cashtag.rbi +154 -0
- data/rbi/x_twitter_scraper/models/search_suggestion_hashtag.rbi +77 -0
- data/rbi/x_twitter_scraper/models/search_suggestion_topic.rbi +77 -0
- data/rbi/x_twitter_scraper/models/search_suggestion_user.rbi +278 -0
- data/rbi/x_twitter_scraper/models/search_suggestions.rbi +125 -0
- data/rbi/x_twitter_scraper/models/shadowban_report.rbi +2216 -0
- data/rbi/x_twitter_scraper/models/shadowban_verdict.rbi +36 -0
- data/rbi/x_twitter_scraper/models/space.rbi +375 -0
- data/rbi/x_twitter_scraper/models/space_participant.rbi +173 -0
- data/rbi/x_twitter_scraper/models/space_sharing.rbi +93 -0
- data/rbi/x_twitter_scraper/models/sports_game_audience.rbi +428 -0
- data/rbi/x_twitter_scraper/models/sports_game_posts.rbi +284 -0
- data/rbi/x_twitter_scraper/models/sports_team.rbi +314 -0
- data/rbi/x_twitter_scraper/models/sports_team_game.rbi +110 -0
- data/rbi/x_twitter_scraper/models/subtitle_track.rbi +161 -0
- data/rbi/x_twitter_scraper/models/trend_location.rbi +98 -0
- data/rbi/x_twitter_scraper/models/tweet_embed.rbi +100 -0
- data/rbi/x_twitter_scraper/models/tweet_entities.rbi +122 -0
- data/rbi/x_twitter_scraper/models/tweet_hashtag.rbi +62 -0
- data/rbi/x_twitter_scraper/models/tweet_insights.rbi +139 -0
- data/rbi/x_twitter_scraper/models/tweet_smart_tag.rbi +143 -0
- data/rbi/x_twitter_scraper/models/tweet_subtitles.rbi +59 -0
- data/rbi/x_twitter_scraper/models/tweet_symbol.rbi +74 -0
- data/rbi/x_twitter_scraper/models/tweet_translation.rbi +84 -0
- data/rbi/x_twitter_scraper/models/tweet_url_entity.rbi +67 -0
- data/rbi/x_twitter_scraper/models/tweet_user_mention.rbi +64 -0
- data/rbi/x_twitter_scraper/models/user_affiliate_label.rbi +125 -0
- data/rbi/x_twitter_scraper/models/user_auxiliary_label.rbi +81 -0
- data/rbi/x_twitter_scraper/models/user_highlights_info.rbi +48 -0
- data/rbi/x_twitter_scraper/models/user_identity_verification.rbi +78 -0
- data/rbi/x_twitter_scraper/models/user_insights.rbi +315 -0
- data/rbi/x_twitter_scraper/models/user_live_status.rbi +77 -0
- data/rbi/x_twitter_scraper/models/webhook_create_telegram_link_params.rbi +62 -0
- data/rbi/x_twitter_scraper/models/webhook_create_telegram_link_response.rbi +40 -0
- data/rbi/x_twitter_scraper/models/x/broadcast_retrieve_params.rbi +92 -0
- data/rbi/x_twitter_scraper/models/x/broadcast_retrieve_response.rbi +47 -0
- data/rbi/x_twitter_scraper/models/x/communities/media_list_params.rbi +751 -0
- data/rbi/x_twitter_scraper/models/x/community_find_params.rbi +120 -0
- data/rbi/x_twitter_scraper/models/x/community_list_popular_params.rbi +136 -0
- data/rbi/x_twitter_scraper/models/x/community_list_suggested_params.rbi +97 -0
- data/rbi/x_twitter_scraper/models/x/community_list_suggested_response.rbi +72 -0
- data/rbi/x_twitter_scraper/models/x/community_list_topics_params.rbi +97 -0
- data/rbi/x_twitter_scraper/models/x/community_list_topics_response.rbi +72 -0
- data/rbi/x_twitter_scraper/models/x/community_note_list_contributor_deleted_notes_params.rbi +120 -0
- data/rbi/x_twitter_scraper/models/x/community_note_list_contributor_notes_params.rbi +120 -0
- data/rbi/x_twitter_scraper/models/x/community_note_retrieve_contributor_params.rbi +92 -0
- data/rbi/x_twitter_scraper/models/x/community_note_retrieve_contributor_response.rbi +57 -0
- data/rbi/x_twitter_scraper/models/x/community_retrieve_analytics_params.rbi +94 -0
- data/rbi/x_twitter_scraper/models/x/community_search_members_params.rbi +306 -0
- data/rbi/x_twitter_scraper/models/x/dm_delete_message_params.rbi +109 -0
- data/rbi/x_twitter_scraper/models/x/job_list_locations_params.rbi +105 -0
- data/rbi/x_twitter_scraper/models/x/job_retrieve_params.rbi +92 -0
- data/rbi/x_twitter_scraper/models/x/job_retrieve_response.rbi +47 -0
- data/rbi/x_twitter_scraper/models/x/job_search_params.rbi +200 -0
- data/rbi/x_twitter_scraper/models/x/list_retrieve_params.rbi +90 -0
- data/rbi/x_twitter_scraper/models/x/list_retrieve_response.rbi +43 -0
- data/rbi/x_twitter_scraper/models/x/list_retrieve_search_params.rbi +120 -0
- data/rbi/x_twitter_scraper/models/x/space_retrieve_params.rbi +90 -0
- data/rbi/x_twitter_scraper/models/x/space_retrieve_replay_params.rbi +90 -0
- data/rbi/x_twitter_scraper/models/x/space_retrieve_replay_response.rbi +111 -0
- data/rbi/x_twitter_scraper/models/x/space_retrieve_response.rbi +43 -0
- data/rbi/x_twitter_scraper/models/x/space_search_params.rbi +196 -0
- data/rbi/x_twitter_scraper/models/x/space_search_response.rbi +67 -0
- data/rbi/x_twitter_scraper/models/x/sport_list_games_params.rbi +181 -0
- data/rbi/x_twitter_scraper/models/x/sport_list_posts_params.rbi +242 -0
- data/rbi/x_twitter_scraper/models/x/sport_retrieve_audience_params.rbi +150 -0
- data/rbi/x_twitter_scraper/models/x/sport_retrieve_box_score_params.rbi +150 -0
- data/rbi/x_twitter_scraper/models/x/sport_retrieve_player_props_params.rbi +147 -0
- data/rbi/x_twitter_scraper/models/x/sport_retrieve_plays_params.rbi +150 -0
- data/rbi/x_twitter_scraper/models/x/sport_retrieve_roster_params.rbi +147 -0
- data/rbi/x_twitter_scraper/models/x/sport_retrieve_scoreboard_params.rbi +150 -0
- data/rbi/x_twitter_scraper/models/x/tweet_check_repost_params.rbi +96 -0
- data/rbi/x_twitter_scraper/models/x/tweet_check_repost_response.rbi +90 -0
- data/rbi/x_twitter_scraper/models/x/tweet_embed_params.rbi +185 -0
- data/rbi/x_twitter_scraper/models/x/tweet_embed_response.rbi +43 -0
- data/rbi/x_twitter_scraper/models/x/tweet_get_hidden_replies_params.rbi +749 -0
- data/rbi/x_twitter_scraper/models/x/tweet_get_insights_params.rbi +96 -0
- data/rbi/x_twitter_scraper/models/x/tweet_get_insights_response.rbi +49 -0
- data/rbi/x_twitter_scraper/models/x/tweet_get_retweeter_ids_params.rbi +88 -0
- data/rbi/x_twitter_scraper/models/x/tweet_get_subtitles_params.rbi +96 -0
- data/rbi/x_twitter_scraper/models/x/tweet_get_subtitles_response.rbi +51 -0
- data/rbi/x_twitter_scraper/models/x/tweet_list_top_params.rbi +281 -0
- data/rbi/x_twitter_scraper/models/x/tweet_resolve_links_params.rbi +94 -0
- data/rbi/x_twitter_scraper/models/x/tweet_resolve_links_response.rbi +61 -0
- data/rbi/x_twitter_scraper/models/x/tweet_translate_params.rbi +106 -0
- data/rbi/x_twitter_scraper/models/x/tweet_translate_response.rbi +55 -0
- data/rbi/x_twitter_scraper/models/x/tweets/bookmark_create_params.rbi +105 -0
- data/rbi/x_twitter_scraper/models/x/tweets/bookmark_delete_params.rbi +105 -0
- data/rbi/x_twitter_scraper/models/x/user_retrieve_affiliates_params.rbi +320 -0
- data/rbi/x_twitter_scraper/models/x/user_retrieve_articles_params.rbi +749 -0
- data/rbi/x_twitter_scraper/models/x/user_retrieve_batch_response.rbi +18 -0
- data/rbi/x_twitter_scraper/models/x/user_retrieve_batch_tweets_params.rbi +127 -0
- data/rbi/x_twitter_scraper/models/x/user_retrieve_follower_audit_params.rbi +111 -0
- data/rbi/x_twitter_scraper/models/x/user_retrieve_follower_audit_response.rbi +49 -0
- data/rbi/x_twitter_scraper/models/x/user_retrieve_follower_ids_params.rbi +78 -0
- data/rbi/x_twitter_scraper/models/x/user_retrieve_following_ids_params.rbi +78 -0
- data/rbi/x_twitter_scraper/models/x/user_retrieve_highlights_params.rbi +749 -0
- data/rbi/x_twitter_scraper/models/x/user_retrieve_insights_params.rbi +113 -0
- data/rbi/x_twitter_scraper/models/x/user_retrieve_insights_response.rbi +63 -0
- data/rbi/x_twitter_scraper/models/x/user_retrieve_list_memberships_params.rbi +118 -0
- data/rbi/x_twitter_scraper/models/x/user_retrieve_lists_params.rbi +118 -0
- data/rbi/x_twitter_scraper/models/x/user_retrieve_live_params.rbi +94 -0
- data/rbi/x_twitter_scraper/models/x/user_retrieve_shadowban_params.rbi +111 -0
- data/rbi/x_twitter_scraper/models/x/user_retrieve_similar_params.rbi +320 -0
- data/rbi/x_twitter_scraper/models/x/user_retrieve_subscriptions_params.rbi +320 -0
- data/rbi/x_twitter_scraper/models/x/user_translate_bio_params.rbi +104 -0
- data/rbi/x_twitter_scraper/models/x/user_translate_bio_response.rbi +67 -0
- data/rbi/x_twitter_scraper/models/x/users/block_create_params.rbi +103 -0
- data/rbi/x_twitter_scraper/models/x/users/block_delete_params.rbi +103 -0
- data/rbi/x_twitter_scraper/models/x/users/mute_create_params.rbi +103 -0
- data/rbi/x_twitter_scraper/models/x/users/mute_delete_params.rbi +103 -0
- data/rbi/x_twitter_scraper/models/x_autocomplete_search_params.rbi +124 -0
- data/rbi/x_twitter_scraper/models/x_get_hashflags_params.rbi +119 -0
- data/rbi/x_twitter_scraper/models/x_get_hashflags_response.rbi +76 -0
- data/rbi/x_twitter_scraper/models/x_get_news_story_versions_params.rbi +90 -0
- data/rbi/x_twitter_scraper/models/x_get_news_story_versions_response.rbi +65 -0
- data/rbi/x_twitter_scraper/models/x_get_trend_locations_params.rbi +191 -0
- data/rbi/x_twitter_scraper/models/x_get_trend_locations_response.rbi +76 -0
- data/rbi/x_twitter_scraper/models/x_get_trends_history_params.rbi +209 -0
- data/rbi/x_twitter_scraper/models/x_get_trends_history_response.rbi +295 -0
- data/rbi/x_twitter_scraper/models/x_list.rbi +179 -0
- data/rbi/x_twitter_scraper/models/x_list_banner.rbi +291 -0
- data/rbi/x_twitter_scraper/models/x_search_places_params.rbi +105 -0
- data/rbi/x_twitter_scraper/models/x_search_places_response.rbi +76 -0
- data/rbi/x_twitter_scraper/models.rbi +239 -0
- data/rbi/x_twitter_scraper/resources/activity.rbi +114 -0
- data/rbi/x_twitter_scraper/resources/events.rbi +36 -0
- data/rbi/x_twitter_scraper/resources/extractions.rbi +15 -0
- data/rbi/x_twitter_scraper/resources/monitors/posts.rbi +144 -0
- data/rbi/x_twitter_scraper/resources/monitors.rbi +30 -0
- data/rbi/x_twitter_scraper/resources/webhooks.rbi +20 -0
- data/rbi/x_twitter_scraper/resources/x/broadcasts.rbi +51 -0
- data/rbi/x_twitter_scraper/resources/x/communities/media.rbi +178 -0
- data/rbi/x_twitter_scraper/resources/x/communities.rbi +275 -0
- data/rbi/x_twitter_scraper/resources/x/community_notes.rbi +133 -0
- data/rbi/x_twitter_scraper/resources/x/dm.rbi +39 -0
- data/rbi/x_twitter_scraper/resources/x/jobs.rbi +150 -0
- data/rbi/x_twitter_scraper/resources/x/lists.rbi +70 -0
- data/rbi/x_twitter_scraper/resources/x/spaces.rbi +129 -0
- data/rbi/x_twitter_scraper/resources/x/sports.rbi +332 -0
- data/rbi/x_twitter_scraper/resources/x/tweets/bookmark.rbi +93 -0
- data/rbi/x_twitter_scraper/resources/x/tweets.rbi +457 -0
- data/rbi/x_twitter_scraper/resources/x/users/block.rbi +91 -0
- data/rbi/x_twitter_scraper/resources/x/users/mute.rbi +91 -0
- data/rbi/x_twitter_scraper/resources/x/users.rbi +966 -0
- data/rbi/x_twitter_scraper/resources/x.rbi +286 -0
- data/sig/x_twitter_scraper/client.rbs +2 -0
- data/sig/x_twitter_scraper/internal/stream.rbs +21 -0
- data/sig/x_twitter_scraper/models/activity_export_params.rbs +108 -0
- data/sig/x_twitter_scraper/models/activity_list_params.rbs +106 -0
- data/sig/x_twitter_scraper/models/activity_list_response.rbs +12 -0
- data/sig/x_twitter_scraper/models/activity_log_row.rbs +95 -0
- data/sig/x_twitter_scraper/models/activity_record.rbs +448 -0
- data/sig/x_twitter_scraper/models/activity_retrieve_params.rbs +27 -0
- data/sig/x_twitter_scraper/models/audited_follower.rbs +95 -0
- data/sig/x_twitter_scraper/models/batch_user_tweets.rbs +59 -0
- data/sig/x_twitter_scraper/models/broadcast.rbs +245 -0
- data/sig/x_twitter_scraper/models/community.rbs +868 -0
- data/sig/x_twitter_scraper/models/community_analytics.rbs +71 -0
- data/sig/x_twitter_scraper/models/community_analytics_metric.rbs +19 -0
- data/sig/x_twitter_scraper/models/community_banner.rbs +118 -0
- data/sig/x_twitter_scraper/models/community_member_preview.rbs +34 -0
- data/sig/x_twitter_scraper/models/community_note.rbs +231 -0
- data/sig/x_twitter_scraper/models/community_note_entity.rbs +89 -0
- data/sig/x_twitter_scraper/models/community_notes_contributor.rbs +63 -0
- data/sig/x_twitter_scraper/models/community_notes_note_counts.rbs +47 -0
- data/sig/x_twitter_scraper/models/community_notes_rating_counts.rbs +58 -0
- data/sig/x_twitter_scraper/models/community_notes_rating_outcome.rbs +36 -0
- data/sig/x_twitter_scraper/models/community_page.rbs +34 -0
- data/sig/x_twitter_scraper/models/community_topic.rbs +46 -0
- data/sig/x_twitter_scraper/models/event_stream_params.rbs +58 -0
- data/sig/x_twitter_scraper/models/extraction_cancel_params.rbs +27 -0
- data/sig/x_twitter_scraper/models/extraction_cancel_response.rbs +19 -0
- data/sig/x_twitter_scraper/models/follower_audit.rbs +264 -0
- data/sig/x_twitter_scraper/models/follower_class.rbs +22 -0
- data/sig/x_twitter_scraper/models/follower_value_count.rbs +22 -0
- data/sig/x_twitter_scraper/models/football_box_score.rbs +60 -0
- data/sig/x_twitter_scraper/models/football_drive.rbs +84 -0
- data/sig/x_twitter_scraper/models/football_fumble_stats.rbs +34 -0
- data/sig/x_twitter_scraper/models/football_odds.rbs +26 -0
- data/sig/x_twitter_scraper/models/football_passing_stats.rbs +69 -0
- data/sig/x_twitter_scraper/models/football_period.rbs +44 -0
- data/sig/x_twitter_scraper/models/football_play.rbs +203 -0
- data/sig/x_twitter_scraper/models/football_play_detail.rbs +103 -0
- data/sig/x_twitter_scraper/models/football_player.rbs +143 -0
- data/sig/x_twitter_scraper/models/football_player_prop.rbs +49 -0
- data/sig/x_twitter_scraper/models/football_player_stats.rbs +330 -0
- data/sig/x_twitter_scraper/models/football_plays.rbs +65 -0
- data/sig/x_twitter_scraper/models/football_prop_category.rbs +39 -0
- data/sig/x_twitter_scraper/models/football_props.rbs +54 -0
- data/sig/x_twitter_scraper/models/football_quarter.rbs +39 -0
- data/sig/x_twitter_scraper/models/football_return_stats.rbs +44 -0
- data/sig/x_twitter_scraper/models/football_roster.rbs +54 -0
- data/sig/x_twitter_scraper/models/football_roster_team.rbs +19 -0
- data/sig/x_twitter_scraper/models/football_rushing_stats.rbs +44 -0
- data/sig/x_twitter_scraper/models/football_schedule.rbs +45 -0
- data/sig/x_twitter_scraper/models/football_schedule_game.rbs +101 -0
- data/sig/x_twitter_scraper/models/football_schedule_period.rbs +17 -0
- data/sig/x_twitter_scraper/models/football_scoreboard.rbs +152 -0
- data/sig/x_twitter_scraper/models/football_side.rbs +30 -0
- data/sig/x_twitter_scraper/models/football_team_box.rbs +34 -0
- data/sig/x_twitter_scraper/models/football_team_score.rbs +19 -0
- data/sig/x_twitter_scraper/models/football_team_totals.rbs +88 -0
- data/sig/x_twitter_scraper/models/hashflag.rbs +71 -0
- data/sig/x_twitter_scraper/models/job.rbs +173 -0
- data/sig/x_twitter_scraper/models/job_account.rbs +78 -0
- data/sig/x_twitter_scraper/models/job_company.rbs +25 -0
- data/sig/x_twitter_scraper/models/job_location.rbs +19 -0
- data/sig/x_twitter_scraper/models/job_locations.rbs +29 -0
- data/sig/x_twitter_scraper/models/monitor_upsert_by_username_params.rbs +42 -0
- data/sig/x_twitter_scraper/models/monitor_upsert_by_username_response.rbs +95 -0
- data/sig/x_twitter_scraper/models/monitors/post_create_params.rbs +55 -0
- data/sig/x_twitter_scraper/models/monitors/post_delete_params.rbs +29 -0
- data/sig/x_twitter_scraper/models/monitors/post_delete_response.rbs +32 -0
- data/sig/x_twitter_scraper/models/monitors/post_list_params.rbs +38 -0
- data/sig/x_twitter_scraper/models/monitors/post_list_response.rbs +43 -0
- data/sig/x_twitter_scraper/models/monitors/post_retrieve_metrics_params.rbs +36 -0
- data/sig/x_twitter_scraper/models/monitors/post_retrieve_params.rbs +29 -0
- data/sig/x_twitter_scraper/models/monitors/post_update_params.rbs +55 -0
- data/sig/x_twitter_scraper/models/news_version.rbs +34 -0
- data/sig/x_twitter_scraper/models/paginated_community_notes.rbs +34 -0
- data/sig/x_twitter_scraper/models/paginated_jobs.rbs +34 -0
- data/sig/x_twitter_scraper/models/paginated_lists.rbs +34 -0
- data/sig/x_twitter_scraper/models/paginated_user_ids.rbs +30 -0
- data/sig/x_twitter_scraper/models/place.rbs +88 -0
- data/sig/x_twitter_scraper/models/place_search_result.rbs +93 -0
- data/sig/x_twitter_scraper/models/post_engagement_metrics.rbs +49 -0
- data/sig/x_twitter_scraper/models/post_event_type.rbs +36 -0
- data/sig/x_twitter_scraper/models/post_metric_point.rbs +19 -0
- data/sig/x_twitter_scraper/models/post_metric_reading.rbs +19 -0
- data/sig/x_twitter_scraper/models/post_metrics.rbs +49 -0
- data/sig/x_twitter_scraper/models/post_monitor.rbs +270 -0
- data/sig/x_twitter_scraper/models/post_monitor_metrics.rbs +93 -0
- data/sig/x_twitter_scraper/models/profile_translation.rbs +51 -0
- data/sig/x_twitter_scraper/models/resolved_link.rbs +21 -0
- data/sig/x_twitter_scraper/models/search_suggestion_cashtag.rbs +94 -0
- data/sig/x_twitter_scraper/models/search_suggestion_hashtag.rbs +40 -0
- data/sig/x_twitter_scraper/models/search_suggestion_topic.rbs +40 -0
- data/sig/x_twitter_scraper/models/search_suggestion_user.rbs +156 -0
- data/sig/x_twitter_scraper/models/search_suggestions.rbs +49 -0
- data/sig/x_twitter_scraper/models/shadowban_report.rbs +730 -0
- data/sig/x_twitter_scraper/models/shadowban_verdict.rbs +19 -0
- data/sig/x_twitter_scraper/models/space.rbs +220 -0
- data/sig/x_twitter_scraper/models/space_participant.rbs +106 -0
- data/sig/x_twitter_scraper/models/space_sharing.rbs +58 -0
- data/sig/x_twitter_scraper/models/sports_game_audience.rbs +151 -0
- data/sig/x_twitter_scraper/models/sports_game_posts.rbs +131 -0
- data/sig/x_twitter_scraper/models/sports_team.rbs +124 -0
- data/sig/x_twitter_scraper/models/sports_team_game.rbs +59 -0
- data/sig/x_twitter_scraper/models/subtitle_track.rbs +83 -0
- data/sig/x_twitter_scraper/models/support/attachment_download_params.rbs +4 -0
- data/sig/x_twitter_scraper/models/trend_location.rbs +59 -0
- data/sig/x_twitter_scraper/models/tweet_analysis_page.rbs +4 -0
- data/sig/x_twitter_scraper/models/tweet_embed.rbs +58 -0
- data/sig/x_twitter_scraper/models/tweet_entities.rbs +73 -0
- data/sig/x_twitter_scraper/models/tweet_hashtag.rbs +40 -0
- data/sig/x_twitter_scraper/models/tweet_insights.rbs +79 -0
- data/sig/x_twitter_scraper/models/tweet_smart_tag.rbs +74 -0
- data/sig/x_twitter_scraper/models/tweet_subtitles.rbs +29 -0
- data/sig/x_twitter_scraper/models/tweet_symbol.rbs +49 -0
- data/sig/x_twitter_scraper/models/tweet_translation.rbs +46 -0
- data/sig/x_twitter_scraper/models/tweet_url_entity.rbs +47 -0
- data/sig/x_twitter_scraper/models/tweet_user_mention.rbs +45 -0
- data/sig/x_twitter_scraper/models/user_affiliate_label.rbs +77 -0
- data/sig/x_twitter_scraper/models/user_auxiliary_label.rbs +54 -0
- data/sig/x_twitter_scraper/models/user_highlights_info.rbs +27 -0
- data/sig/x_twitter_scraper/models/user_identity_verification.rbs +47 -0
- data/sig/x_twitter_scraper/models/user_insights.rbs +163 -0
- data/sig/x_twitter_scraper/models/user_live_status.rbs +39 -0
- data/sig/x_twitter_scraper/models/webhook_create_telegram_link_params.rbs +32 -0
- data/sig/x_twitter_scraper/models/webhook_create_telegram_link_response.rbs +20 -0
- data/sig/x_twitter_scraper/models/x/account_connection_attempt_retrieve_params.rbs +4 -0
- data/sig/x_twitter_scraper/models/x/account_connection_attempt_retrieve_response.rbs +4 -0
- data/sig/x_twitter_scraper/models/x/broadcast_retrieve_params.rbs +42 -0
- data/sig/x_twitter_scraper/models/x/broadcast_retrieve_response.rbs +20 -0
- data/sig/x_twitter_scraper/models/x/communities/media_list_params.rbs +373 -0
- data/sig/x_twitter_scraper/models/x/community_find_params.rbs +60 -0
- data/sig/x_twitter_scraper/models/x/community_list_popular_params.rbs +69 -0
- data/sig/x_twitter_scraper/models/x/community_list_suggested_params.rbs +44 -0
- data/sig/x_twitter_scraper/models/x/community_list_suggested_response.rbs +38 -0
- data/sig/x_twitter_scraper/models/x/community_list_topics_params.rbs +44 -0
- data/sig/x_twitter_scraper/models/x/community_list_topics_response.rbs +38 -0
- data/sig/x_twitter_scraper/models/x/community_note_list_contributor_deleted_notes_params.rbs +60 -0
- data/sig/x_twitter_scraper/models/x/community_note_list_contributor_notes_params.rbs +60 -0
- data/sig/x_twitter_scraper/models/x/community_note_retrieve_contributor_params.rbs +42 -0
- data/sig/x_twitter_scraper/models/x/community_note_retrieve_contributor_response.rbs +24 -0
- data/sig/x_twitter_scraper/models/x/community_retrieve_analytics_params.rbs +42 -0
- data/sig/x_twitter_scraper/models/x/community_search_members_params.rbs +177 -0
- data/sig/x_twitter_scraper/models/x/dm_delete_message_params.rbs +54 -0
- data/sig/x_twitter_scraper/models/x/job_list_locations_params.rbs +48 -0
- data/sig/x_twitter_scraper/models/x/job_retrieve_params.rbs +42 -0
- data/sig/x_twitter_scraper/models/x/job_retrieve_response.rbs +19 -0
- data/sig/x_twitter_scraper/models/x/job_search_params.rbs +102 -0
- data/sig/x_twitter_scraper/models/x/list_retrieve_followers_response.rbs +4 -0
- data/sig/x_twitter_scraper/models/x/list_retrieve_members_response.rbs +4 -0
- data/sig/x_twitter_scraper/models/x/list_retrieve_params.rbs +42 -0
- data/sig/x_twitter_scraper/models/x/list_retrieve_response.rbs +19 -0
- data/sig/x_twitter_scraper/models/x/list_retrieve_search_params.rbs +60 -0
- data/sig/x_twitter_scraper/models/x/space_retrieve_params.rbs +42 -0
- data/sig/x_twitter_scraper/models/x/space_retrieve_replay_params.rbs +42 -0
- data/sig/x_twitter_scraper/models/x/space_retrieve_replay_response.rbs +48 -0
- data/sig/x_twitter_scraper/models/x/space_retrieve_response.rbs +19 -0
- data/sig/x_twitter_scraper/models/x/space_search_params.rbs +82 -0
- data/sig/x_twitter_scraper/models/x/space_search_response.rbs +36 -0
- data/sig/x_twitter_scraper/models/x/sport_list_games_params.rbs +78 -0
- data/sig/x_twitter_scraper/models/x/sport_list_posts_params.rbs +96 -0
- data/sig/x_twitter_scraper/models/x/sport_retrieve_audience_params.rbs +62 -0
- data/sig/x_twitter_scraper/models/x/sport_retrieve_box_score_params.rbs +62 -0
- data/sig/x_twitter_scraper/models/x/sport_retrieve_player_props_params.rbs +61 -0
- data/sig/x_twitter_scraper/models/x/sport_retrieve_plays_params.rbs +62 -0
- data/sig/x_twitter_scraper/models/x/sport_retrieve_roster_params.rbs +61 -0
- data/sig/x_twitter_scraper/models/x/sport_retrieve_scoreboard_params.rbs +62 -0
- data/sig/x_twitter_scraper/models/x/tweet_analysis_params.rbs +4 -0
- data/sig/x_twitter_scraper/models/x/tweet_check_repost_params.rbs +46 -0
- data/sig/x_twitter_scraper/models/x/tweet_check_repost_response.rbs +56 -0
- data/sig/x_twitter_scraper/models/x/tweet_embed_params.rbs +87 -0
- data/sig/x_twitter_scraper/models/x/tweet_embed_response.rbs +19 -0
- data/sig/x_twitter_scraper/models/x/tweet_get_hidden_replies_params.rbs +371 -0
- data/sig/x_twitter_scraper/models/x/tweet_get_insights_params.rbs +42 -0
- data/sig/x_twitter_scraper/models/x/tweet_get_insights_response.rbs +22 -0
- data/sig/x_twitter_scraper/models/x/tweet_get_replies_response.rbs +4 -0
- data/sig/x_twitter_scraper/models/x/tweet_get_retweeter_ids_params.rbs +42 -0
- data/sig/x_twitter_scraper/models/x/tweet_get_subtitles_params.rbs +42 -0
- data/sig/x_twitter_scraper/models/x/tweet_get_subtitles_response.rbs +22 -0
- data/sig/x_twitter_scraper/models/x/tweet_list_top_params.rbs +115 -0
- data/sig/x_twitter_scraper/models/x/tweet_resolve_links_params.rbs +42 -0
- data/sig/x_twitter_scraper/models/x/tweet_resolve_links_response.rbs +31 -0
- data/sig/x_twitter_scraper/models/x/tweet_search_response.rbs +4 -0
- data/sig/x_twitter_scraper/models/x/tweet_translate_params.rbs +46 -0
- data/sig/x_twitter_scraper/models/x/tweet_translate_response.rbs +24 -0
- data/sig/x_twitter_scraper/models/x/tweets/bookmark_create_params.rbs +51 -0
- data/sig/x_twitter_scraper/models/x/tweets/bookmark_delete_params.rbs +51 -0
- data/sig/x_twitter_scraper/models/x/user_retrieve_affiliates_params.rbs +186 -0
- data/sig/x_twitter_scraper/models/x/user_retrieve_articles_params.rbs +371 -0
- data/sig/x_twitter_scraper/models/x/user_retrieve_batch_response.rbs +10 -0
- data/sig/x_twitter_scraper/models/x/user_retrieve_batch_tweets_params.rbs +62 -0
- data/sig/x_twitter_scraper/models/x/user_retrieve_follower_audit_params.rbs +48 -0
- data/sig/x_twitter_scraper/models/x/user_retrieve_follower_audit_response.rbs +20 -0
- data/sig/x_twitter_scraper/models/x/user_retrieve_follower_ids_params.rbs +42 -0
- data/sig/x_twitter_scraper/models/x/user_retrieve_followers_response.rbs +4 -0
- data/sig/x_twitter_scraper/models/x/user_retrieve_following_ids_params.rbs +42 -0
- data/sig/x_twitter_scraper/models/x/user_retrieve_following_response.rbs +4 -0
- data/sig/x_twitter_scraper/models/x/user_retrieve_highlights_params.rbs +371 -0
- data/sig/x_twitter_scraper/models/x/user_retrieve_insights_params.rbs +48 -0
- data/sig/x_twitter_scraper/models/x/user_retrieve_insights_response.rbs +30 -0
- data/sig/x_twitter_scraper/models/x/user_retrieve_list_memberships_params.rbs +60 -0
- data/sig/x_twitter_scraper/models/x/user_retrieve_lists_params.rbs +60 -0
- data/sig/x_twitter_scraper/models/x/user_retrieve_live_params.rbs +42 -0
- data/sig/x_twitter_scraper/models/x/user_retrieve_shadowban_params.rbs +48 -0
- data/sig/x_twitter_scraper/models/x/user_retrieve_similar_params.rbs +186 -0
- data/sig/x_twitter_scraper/models/x/user_retrieve_subscriptions_params.rbs +186 -0
- data/sig/x_twitter_scraper/models/x/user_retrieve_verified_followers_response.rbs +4 -0
- data/sig/x_twitter_scraper/models/x/user_translate_bio_params.rbs +46 -0
- data/sig/x_twitter_scraper/models/x/user_translate_bio_response.rbs +33 -0
- data/sig/x_twitter_scraper/models/x/users/block_create_params.rbs +51 -0
- data/sig/x_twitter_scraper/models/x/users/block_delete_params.rbs +51 -0
- data/sig/x_twitter_scraper/models/x/users/mute_create_params.rbs +51 -0
- data/sig/x_twitter_scraper/models/x/users/mute_delete_params.rbs +51 -0
- data/sig/x_twitter_scraper/models/x_autocomplete_search_params.rbs +52 -0
- data/sig/x_twitter_scraper/models/x_get_hashflags_params.rbs +60 -0
- data/sig/x_twitter_scraper/models/x_get_hashflags_response.rbs +41 -0
- data/sig/x_twitter_scraper/models/x_get_news_story_versions_params.rbs +40 -0
- data/sig/x_twitter_scraper/models/x_get_news_story_versions_response.rbs +34 -0
- data/sig/x_twitter_scraper/models/x_get_trend_locations_params.rbs +82 -0
- data/sig/x_twitter_scraper/models/x_get_trend_locations_response.rbs +41 -0
- data/sig/x_twitter_scraper/models/x_get_trends_history_params.rbs +102 -0
- data/sig/x_twitter_scraper/models/x_get_trends_history_response.rbs +149 -0
- data/sig/x_twitter_scraper/models/x_list.rbs +112 -0
- data/sig/x_twitter_scraper/models/x_list_banner.rbs +157 -0
- data/sig/x_twitter_scraper/models/x_search_places_params.rbs +46 -0
- data/sig/x_twitter_scraper/models/x_search_places_response.rbs +41 -0
- data/sig/x_twitter_scraper/models.rbs +234 -0
- data/sig/x_twitter_scraper/resources/activity.rbs +38 -0
- data/sig/x_twitter_scraper/resources/events.rbs +7 -0
- data/sig/x_twitter_scraper/resources/extractions.rbs +5 -0
- data/sig/x_twitter_scraper/resources/monitors/posts.rbs +51 -0
- data/sig/x_twitter_scraper/resources/monitors.rbs +9 -0
- data/sig/x_twitter_scraper/resources/support/attachments.rbs +4 -0
- data/sig/x_twitter_scraper/resources/webhooks.rbs +5 -0
- data/sig/x_twitter_scraper/resources/x/account_connection_attempts.rbs +4 -0
- data/sig/x_twitter_scraper/resources/x/analysis.rbs +4 -0
- data/sig/x_twitter_scraper/resources/x/broadcasts.rbs +20 -0
- data/sig/x_twitter_scraper/resources/x/communities/media.rbs +60 -0
- data/sig/x_twitter_scraper/resources/x/communities.rbs +68 -0
- data/sig/x_twitter_scraper/resources/x/community_notes.rbs +38 -0
- data/sig/x_twitter_scraper/resources/x/dm.rbs +9 -0
- data/sig/x_twitter_scraper/resources/x/jobs.rbs +43 -0
- data/sig/x_twitter_scraper/resources/x/lists.rbs +16 -0
- data/sig/x_twitter_scraper/resources/x/spaces.rbs +37 -0
- data/sig/x_twitter_scraper/resources/x/sports.rbs +82 -0
- data/sig/x_twitter_scraper/resources/x/tweets/bookmark.rbs +31 -0
- data/sig/x_twitter_scraper/resources/x/tweets.rbs +114 -0
- data/sig/x_twitter_scraper/resources/x/users/block.rbs +31 -0
- data/sig/x_twitter_scraper/resources/x/users/mute.rbs +31 -0
- data/sig/x_twitter_scraper/resources/x/users.rbs +255 -0
- data/sig/x_twitter_scraper/resources/x.rbs +68 -0
- metadata +668 -2
|
@@ -16,6 +16,9 @@ module XTwitterScraper
|
|
|
16
16
|
sig { returns(XTwitterScraper::Resources::X::Tweets::Retweet) }
|
|
17
17
|
attr_reader :retweet
|
|
18
18
|
|
|
19
|
+
sig { returns(XTwitterScraper::Resources::X::Tweets::Bookmark) }
|
|
20
|
+
attr_reader :bookmark
|
|
21
|
+
|
|
19
22
|
# Create tweet
|
|
20
23
|
sig do
|
|
21
24
|
params(
|
|
@@ -1127,6 +1130,460 @@ module XTwitterScraper
|
|
|
1127
1130
|
)
|
|
1128
1131
|
end
|
|
1129
1132
|
|
|
1133
|
+
# Returns where each t.co link leads, as X's own redirect says. Xquik reads the
|
|
1134
|
+
# redirect and never visits the target site. A link t.co does not have comes back
|
|
1135
|
+
# without `resolvedUrl` and costs nothing. A link X does not answer for in time
|
|
1136
|
+
# comes back in `unprocessedUrls`, free. Each resolved link costs 1 credit.
|
|
1137
|
+
sig do
|
|
1138
|
+
params(
|
|
1139
|
+
urls: String,
|
|
1140
|
+
fields: String,
|
|
1141
|
+
omit: String,
|
|
1142
|
+
request_options: XTwitterScraper::RequestOptions::OrHash
|
|
1143
|
+
).returns(XTwitterScraper::Models::X::TweetResolveLinksResponse)
|
|
1144
|
+
end
|
|
1145
|
+
def resolve_links(
|
|
1146
|
+
# Links of the form `https://t.co/Xe1nm2pkSX`, separated by commas, as many as the
|
|
1147
|
+
# URL holds. Any other link is refused. A link sent twice counts once. A longer
|
|
1148
|
+
# URL fails at the edge before Xquik reads it.
|
|
1149
|
+
urls:,
|
|
1150
|
+
# Fields to keep in each row, comma-separated. Use dots for nested fields, such as
|
|
1151
|
+
# author.username. A list keeps the field in each item. Case & underscores do not
|
|
1152
|
+
# matter. A row that lacks a field leaves it out. Cursors, counts & diagnostics
|
|
1153
|
+
# always stay. An unknown name answers 400 unknown_field with the valid names,
|
|
1154
|
+
# before any read. The price stays the same. SDK row types then hold only the
|
|
1155
|
+
# named fields. A longer URL fails at the edge before Xquik reads it. Pick only
|
|
1156
|
+
# the fields you need with `fields` & `omit`.
|
|
1157
|
+
fields: nil,
|
|
1158
|
+
# Fields to drop from each row, comma-separated. It takes the same names as
|
|
1159
|
+
# fields. With fields, it drops from the kept fields. A longer URL fails at the
|
|
1160
|
+
# edge before Xquik reads it.
|
|
1161
|
+
omit: nil,
|
|
1162
|
+
request_options: {}
|
|
1163
|
+
)
|
|
1164
|
+
end
|
|
1165
|
+
|
|
1166
|
+
# Returns the tweets X ranks highest by 1 metric over the last day, week or month.
|
|
1167
|
+
# Covers all of X unless you pick a country or a language. Pages hold up to 20
|
|
1168
|
+
# tweets, and the list ends at 100. Each tweet costs 1 credit. Top tweet lists
|
|
1169
|
+
# come back reliably.
|
|
1170
|
+
sig do
|
|
1171
|
+
params(
|
|
1172
|
+
metric:
|
|
1173
|
+
XTwitterScraper::Models::X::TweetListTopParams::Metric::OrSymbol,
|
|
1174
|
+
window:
|
|
1175
|
+
XTwitterScraper::Models::X::TweetListTopParams::Window::OrSymbol,
|
|
1176
|
+
country: String,
|
|
1177
|
+
language: String,
|
|
1178
|
+
cursor: String,
|
|
1179
|
+
page_size: Integer,
|
|
1180
|
+
fields: String,
|
|
1181
|
+
omit: String,
|
|
1182
|
+
request_options: XTwitterScraper::RequestOptions::OrHash
|
|
1183
|
+
).returns(XTwitterScraper::Models::PaginatedTweets)
|
|
1184
|
+
end
|
|
1185
|
+
def list_top(
|
|
1186
|
+
# What to rank tweets by. Defaults to likes. Singular names work too, such as
|
|
1187
|
+
# like.
|
|
1188
|
+
metric: nil,
|
|
1189
|
+
# How far back to look. Defaults to day. Also takes 24h, 7d, 30d, daily, weekly
|
|
1190
|
+
# and monthly.
|
|
1191
|
+
window: nil,
|
|
1192
|
+
# Only tweets from 1 country, as a 2- or 3-letter ISO 3166 code, such as US or
|
|
1193
|
+
# USA. Send country or language, not both.
|
|
1194
|
+
country: nil,
|
|
1195
|
+
# Only tweets in 1 language, as a 2-letter code, such as en. Send country or
|
|
1196
|
+
# language, not both.
|
|
1197
|
+
language: nil,
|
|
1198
|
+
# Pagination cursor for collection results. Also read as next_cursor, next_token,
|
|
1199
|
+
# pagination_token or continuation_token.
|
|
1200
|
+
cursor: nil,
|
|
1201
|
+
# Items per page (1-100, default 20). Source, filters or credits can return fewer.
|
|
1202
|
+
# Follow next_cursor for more pages. Its aliases are limit, count, max_results,
|
|
1203
|
+
# maxItems, max_items & per_page.
|
|
1204
|
+
page_size: nil,
|
|
1205
|
+
# Fields to keep in each row, comma-separated. Use dots for nested fields, such as
|
|
1206
|
+
# author.username. A list keeps the field in each item. Case & underscores do not
|
|
1207
|
+
# matter. A row that lacks a field leaves it out. Cursors, counts & diagnostics
|
|
1208
|
+
# always stay. An unknown name answers 400 unknown_field with the valid names,
|
|
1209
|
+
# before any read. The price stays the same. SDK row types then hold only the
|
|
1210
|
+
# named fields. A longer URL fails at the edge before Xquik reads it. Pick only
|
|
1211
|
+
# the fields you need with `fields` & `omit`.
|
|
1212
|
+
fields: nil,
|
|
1213
|
+
# Fields to drop from each row, comma-separated. It takes the same names as
|
|
1214
|
+
# fields. With fields, it drops from the kept fields. A longer URL fails at the
|
|
1215
|
+
# edge before Xquik reads it.
|
|
1216
|
+
omit: nil,
|
|
1217
|
+
request_options: {}
|
|
1218
|
+
)
|
|
1219
|
+
end
|
|
1220
|
+
|
|
1221
|
+
# Returns the HTML that X gives websites to embed 1 public tweet, with the tweet's
|
|
1222
|
+
# link and author.
|
|
1223
|
+
sig do
|
|
1224
|
+
params(
|
|
1225
|
+
id: String,
|
|
1226
|
+
theme:
|
|
1227
|
+
XTwitterScraper::Models::X::TweetEmbedParams::Theme::OrSymbol,
|
|
1228
|
+
hide_media: T::Boolean,
|
|
1229
|
+
hide_thread: T::Boolean,
|
|
1230
|
+
omit_script: T::Boolean,
|
|
1231
|
+
fields: String,
|
|
1232
|
+
omit: String,
|
|
1233
|
+
request_options: XTwitterScraper::RequestOptions::OrHash
|
|
1234
|
+
).returns(XTwitterScraper::Models::X::TweetEmbedResponse)
|
|
1235
|
+
end
|
|
1236
|
+
def embed(
|
|
1237
|
+
# Tweet ID or URL-encoded tweet URL, such as x.com/nasa/status/20. Takes x.com &
|
|
1238
|
+
# twitter.com links with or without https://, www., mobile., a query or a
|
|
1239
|
+
# fragment, & /i/status or /i/web/status links. Anything else gets 400
|
|
1240
|
+
# `invalid_tweet_id`.
|
|
1241
|
+
id,
|
|
1242
|
+
# Color theme of the embed. X uses light when left out.
|
|
1243
|
+
theme: nil,
|
|
1244
|
+
# Set `true` to leave photos, videos, and link cards out.
|
|
1245
|
+
hide_media: nil,
|
|
1246
|
+
# Set `true` to leave the tweet this one replies to out.
|
|
1247
|
+
hide_thread: nil,
|
|
1248
|
+
# Set `true` to leave the widget script tag out, for pages that load it once
|
|
1249
|
+
# themselves.
|
|
1250
|
+
omit_script: nil,
|
|
1251
|
+
# Fields to keep in each row, comma-separated. Use dots for nested fields, such as
|
|
1252
|
+
# author.username. A list keeps the field in each item. Case & underscores do not
|
|
1253
|
+
# matter. A row that lacks a field leaves it out. Cursors, counts & diagnostics
|
|
1254
|
+
# always stay. An unknown name answers 400 unknown_field with the valid names,
|
|
1255
|
+
# before any read. The price stays the same. SDK row types then hold only the
|
|
1256
|
+
# named fields. A longer URL fails at the edge before Xquik reads it. Pick only
|
|
1257
|
+
# the fields you need with `fields` & `omit`.
|
|
1258
|
+
fields: nil,
|
|
1259
|
+
# Fields to drop from each row, comma-separated. It takes the same names as
|
|
1260
|
+
# fields. With fields, it drops from the kept fields. A longer URL fails at the
|
|
1261
|
+
# edge before Xquik reads it.
|
|
1262
|
+
omit: nil,
|
|
1263
|
+
request_options: {}
|
|
1264
|
+
)
|
|
1265
|
+
end
|
|
1266
|
+
|
|
1267
|
+
# Returns the replies the post's author hid, oldest first, with the replies to
|
|
1268
|
+
# them. A post without hidden replies returns an empty list.
|
|
1269
|
+
sig do
|
|
1270
|
+
params(
|
|
1271
|
+
id: String,
|
|
1272
|
+
cursor: String,
|
|
1273
|
+
page_size: Integer,
|
|
1274
|
+
from_user: String,
|
|
1275
|
+
to_user: String,
|
|
1276
|
+
mentioning: String,
|
|
1277
|
+
language: String,
|
|
1278
|
+
since_date: Date,
|
|
1279
|
+
until_date: Date,
|
|
1280
|
+
media_type:
|
|
1281
|
+
XTwitterScraper::Models::X::TweetGetHiddenRepliesParams::MediaType::OrSymbol,
|
|
1282
|
+
min_likes: Integer,
|
|
1283
|
+
min_retweets: Integer,
|
|
1284
|
+
min_replies: Integer,
|
|
1285
|
+
min_quotes: Integer,
|
|
1286
|
+
min_views: Integer,
|
|
1287
|
+
min_bookmarks: Integer,
|
|
1288
|
+
max_faves: Integer,
|
|
1289
|
+
max_retweets: Integer,
|
|
1290
|
+
max_replies: Integer,
|
|
1291
|
+
max_quotes: Integer,
|
|
1292
|
+
blue_verified_only: T::Boolean,
|
|
1293
|
+
since_id: String,
|
|
1294
|
+
max_id: String,
|
|
1295
|
+
within_time: String,
|
|
1296
|
+
native_retweets: T::Boolean,
|
|
1297
|
+
verified_only: T::Boolean,
|
|
1298
|
+
replies:
|
|
1299
|
+
XTwitterScraper::Models::X::TweetGetHiddenRepliesParams::Replies::OrSymbol,
|
|
1300
|
+
retweets:
|
|
1301
|
+
XTwitterScraper::Models::X::TweetGetHiddenRepliesParams::Retweets::OrSymbol,
|
|
1302
|
+
quotes:
|
|
1303
|
+
XTwitterScraper::Models::X::TweetGetHiddenRepliesParams::Quotes::OrSymbol,
|
|
1304
|
+
exact_phrase: String,
|
|
1305
|
+
exclude_words: String,
|
|
1306
|
+
any_words: String,
|
|
1307
|
+
hashtags: String,
|
|
1308
|
+
cashtags: String,
|
|
1309
|
+
url: String,
|
|
1310
|
+
conversation_id: String,
|
|
1311
|
+
in_reply_to_tweet_id: String,
|
|
1312
|
+
quotes_of_tweet_id: String,
|
|
1313
|
+
retweets_of_tweet_id: String,
|
|
1314
|
+
fields: String,
|
|
1315
|
+
omit: String,
|
|
1316
|
+
request_options: XTwitterScraper::RequestOptions::OrHash
|
|
1317
|
+
).returns(XTwitterScraper::Models::PaginatedTweets)
|
|
1318
|
+
end
|
|
1319
|
+
def get_hidden_replies(
|
|
1320
|
+
id,
|
|
1321
|
+
# Pagination cursor for collection results. Also read as next_cursor, next_token,
|
|
1322
|
+
# pagination_token or continuation_token.
|
|
1323
|
+
cursor: nil,
|
|
1324
|
+
# Items per page. A page holds up to 10,000, so a larger pageSize gets the largest
|
|
1325
|
+
# page. Default 20. Source, filters or credits can return fewer. Follow
|
|
1326
|
+
# next_cursor for more pages. Its aliases are limit, count, max_results, maxItems,
|
|
1327
|
+
# max_items & per_page.
|
|
1328
|
+
page_size: nil,
|
|
1329
|
+
# Filter by author username. Account searches include all of the account's posts &
|
|
1330
|
+
# reposts.
|
|
1331
|
+
from_user: nil,
|
|
1332
|
+
# Filter replies sent to a username.
|
|
1333
|
+
to_user: nil,
|
|
1334
|
+
# Filter tweets mentioning a username.
|
|
1335
|
+
mentioning: nil,
|
|
1336
|
+
# Filter by language. Its alias is `lang`. Language filters work for every
|
|
1337
|
+
# language X tags.
|
|
1338
|
+
language: nil,
|
|
1339
|
+
# Start date in YYYY-MM-DD format, as a UTC day. A date means one thing in any
|
|
1340
|
+
# common form.
|
|
1341
|
+
since_date: nil,
|
|
1342
|
+
# End date in YYYY-MM-DD format, as a UTC day, inclusive, so its own posts count.
|
|
1343
|
+
until_date: nil,
|
|
1344
|
+
# Filter media. Its aliases are has_video & has_media.
|
|
1345
|
+
media_type: nil,
|
|
1346
|
+
# Minimum likes. Its aliases are minFaves, min_likes & min_faves.
|
|
1347
|
+
min_likes: nil,
|
|
1348
|
+
# Minimum retweets threshold.
|
|
1349
|
+
min_retweets: nil,
|
|
1350
|
+
# Minimum replies threshold.
|
|
1351
|
+
min_replies: nil,
|
|
1352
|
+
# Minimum quote count threshold.
|
|
1353
|
+
min_quotes: nil,
|
|
1354
|
+
# Minimum view count threshold.
|
|
1355
|
+
min_views: nil,
|
|
1356
|
+
# Minimum bookmark count threshold.
|
|
1357
|
+
min_bookmarks: nil,
|
|
1358
|
+
# Maximum likes threshold. maxLikes & max_likes also work.
|
|
1359
|
+
max_faves: nil,
|
|
1360
|
+
# Maximum retweets threshold.
|
|
1361
|
+
max_retweets: nil,
|
|
1362
|
+
# Maximum replies threshold.
|
|
1363
|
+
max_replies: nil,
|
|
1364
|
+
# Maximum quotes threshold.
|
|
1365
|
+
max_quotes: nil,
|
|
1366
|
+
# Only return tweets from Blue-verified authors.
|
|
1367
|
+
blue_verified_only: nil,
|
|
1368
|
+
# Return Tweets whose IDs exceed this ID. Searches accept `since_id` & `max_id`
|
|
1369
|
+
# bounds.
|
|
1370
|
+
since_id: nil,
|
|
1371
|
+
# Return Tweets at or below this ID.
|
|
1372
|
+
max_id: nil,
|
|
1373
|
+
# Keeps Tweets from a recent window, such as 90m or 7d. Use a whole number & s, m,
|
|
1374
|
+
# h or d.
|
|
1375
|
+
within_time: nil,
|
|
1376
|
+
# Only return native reposts.
|
|
1377
|
+
native_retweets: nil,
|
|
1378
|
+
# Only return tweets from verified authors.
|
|
1379
|
+
verified_only: nil,
|
|
1380
|
+
# Reply mode. Exclude keeps own-thread replies.
|
|
1381
|
+
replies: nil,
|
|
1382
|
+
# Only when the caller requests a repost mode.
|
|
1383
|
+
retweets: nil,
|
|
1384
|
+
# Only when the caller requests a quote mode.
|
|
1385
|
+
quotes: nil,
|
|
1386
|
+
# Match this exact phrase, word for word.
|
|
1387
|
+
exact_phrase: nil,
|
|
1388
|
+
# Words or quoted phrases to exclude. Separate with spaces, commas, or lines.
|
|
1389
|
+
exclude_words: nil,
|
|
1390
|
+
# Words or quoted phrases where any one can match. Separate with spaces, commas,
|
|
1391
|
+
# or lines.
|
|
1392
|
+
any_words: nil,
|
|
1393
|
+
# Hashtags separated by spaces, commas, or lines.
|
|
1394
|
+
hashtags: nil,
|
|
1395
|
+
# Cashtags separated by spaces, commas, or lines.
|
|
1396
|
+
cashtags: nil,
|
|
1397
|
+
# URL substring or domain filter.
|
|
1398
|
+
url: nil,
|
|
1399
|
+
# Conversation ID filter.
|
|
1400
|
+
conversation_id: nil,
|
|
1401
|
+
# Only replies to this tweet ID.
|
|
1402
|
+
in_reply_to_tweet_id: nil,
|
|
1403
|
+
# Only quotes of this tweet ID.
|
|
1404
|
+
quotes_of_tweet_id: nil,
|
|
1405
|
+
# Only retweets of this tweet ID.
|
|
1406
|
+
retweets_of_tweet_id: nil,
|
|
1407
|
+
# Fields to keep in each row, comma-separated. Use dots for nested fields, such as
|
|
1408
|
+
# author.username. A list keeps the field in each item. Case & underscores do not
|
|
1409
|
+
# matter. A row that lacks a field leaves it out. Cursors, counts & diagnostics
|
|
1410
|
+
# always stay. An unknown name answers 400 unknown_field with the valid names,
|
|
1411
|
+
# before any read. The price stays the same. SDK row types then hold only the
|
|
1412
|
+
# named fields. A longer URL fails at the edge before Xquik reads it. Pick only
|
|
1413
|
+
# the fields you need with `fields` & `omit`.
|
|
1414
|
+
fields: nil,
|
|
1415
|
+
# Fields to drop from each row, comma-separated. It takes the same names as
|
|
1416
|
+
# fields. With fields, it drops from the kept fields. A longer URL fails at the
|
|
1417
|
+
# edge before Xquik reads it.
|
|
1418
|
+
omit: nil,
|
|
1419
|
+
request_options: {}
|
|
1420
|
+
)
|
|
1421
|
+
end
|
|
1422
|
+
|
|
1423
|
+
# Returns engagement insights for 1 tweet. They are engagements per hour since it
|
|
1424
|
+
# went up, per view and per follower of its author, and how far it spread. Each
|
|
1425
|
+
# report costs 1 credit, whatever it reads.
|
|
1426
|
+
sig do
|
|
1427
|
+
params(
|
|
1428
|
+
id: String,
|
|
1429
|
+
fields: String,
|
|
1430
|
+
omit: String,
|
|
1431
|
+
request_options: XTwitterScraper::RequestOptions::OrHash
|
|
1432
|
+
).returns(XTwitterScraper::Models::X::TweetGetInsightsResponse)
|
|
1433
|
+
end
|
|
1434
|
+
def get_insights(
|
|
1435
|
+
# Tweet ID or URL-encoded tweet URL, such as x.com/nasa/status/20. Takes x.com &
|
|
1436
|
+
# twitter.com links with or without https://, www., mobile., a query or a
|
|
1437
|
+
# fragment, & /i/status or /i/web/status links. Anything else gets 400
|
|
1438
|
+
# `invalid_tweet_id`.
|
|
1439
|
+
id,
|
|
1440
|
+
# Fields to keep in each row, comma-separated. Use dots for nested fields, such as
|
|
1441
|
+
# author.username. A list keeps the field in each item. Case & underscores do not
|
|
1442
|
+
# matter. A row that lacks a field leaves it out. Cursors, counts & diagnostics
|
|
1443
|
+
# always stay. An unknown name answers 400 unknown_field with the valid names,
|
|
1444
|
+
# before any read. The price stays the same. SDK row types then hold only the
|
|
1445
|
+
# named fields. A longer URL fails at the edge before Xquik reads it. Pick only
|
|
1446
|
+
# the fields you need with `fields` & `omit`.
|
|
1447
|
+
fields: nil,
|
|
1448
|
+
# Fields to drop from each row, comma-separated. It takes the same names as
|
|
1449
|
+
# fields. With fields, it drops from the kept fields. A longer URL fails at the
|
|
1450
|
+
# edge before Xquik reads it.
|
|
1451
|
+
omit: nil,
|
|
1452
|
+
request_options: {}
|
|
1453
|
+
)
|
|
1454
|
+
end
|
|
1455
|
+
|
|
1456
|
+
# Returns the user IDs of a post's reposters, in the order & pages of
|
|
1457
|
+
# /x/tweets/{id}/retweeters. Use it when you need IDs only. Each ID costs 1
|
|
1458
|
+
# credit. A post nobody reposted returns an empty list for free.
|
|
1459
|
+
sig do
|
|
1460
|
+
params(
|
|
1461
|
+
id: String,
|
|
1462
|
+
cursor: String,
|
|
1463
|
+
page_size: Integer,
|
|
1464
|
+
request_options: XTwitterScraper::RequestOptions::OrHash
|
|
1465
|
+
).returns(XTwitterScraper::Models::PaginatedUserIds)
|
|
1466
|
+
end
|
|
1467
|
+
def get_retweeter_ids(
|
|
1468
|
+
# Tweet ID or URL-encoded tweet URL, such as x.com/nasa/status/20. Takes x.com &
|
|
1469
|
+
# twitter.com links with or without https://, www., mobile., a query or a
|
|
1470
|
+
# fragment, & /i/status or /i/web/status links. Anything else gets 400
|
|
1471
|
+
# `invalid_tweet_id`.
|
|
1472
|
+
id,
|
|
1473
|
+
# Pagination cursor for collection results. Also read as next_cursor, next_token,
|
|
1474
|
+
# pagination_token or continuation_token.
|
|
1475
|
+
cursor: nil,
|
|
1476
|
+
# Profiles to request from this page. A page holds up to 10,000, so a larger
|
|
1477
|
+
# pageSize gets the largest page. Default 200. Source, filters or credits can
|
|
1478
|
+
# return fewer. Follow next_cursor for more pages. Its aliases are limit, count,
|
|
1479
|
+
# max_results, maxItems, max_items & per_page.
|
|
1480
|
+
page_size: nil,
|
|
1481
|
+
request_options: {}
|
|
1482
|
+
)
|
|
1483
|
+
end
|
|
1484
|
+
|
|
1485
|
+
# Returns whether 1 account reposted the post. It finds recent reposts. An older
|
|
1486
|
+
# repost can return false, with complete false. Each check costs 1 credit.
|
|
1487
|
+
sig do
|
|
1488
|
+
params(
|
|
1489
|
+
id: String,
|
|
1490
|
+
user: String,
|
|
1491
|
+
fields: String,
|
|
1492
|
+
omit: String,
|
|
1493
|
+
request_options: XTwitterScraper::RequestOptions::OrHash
|
|
1494
|
+
).returns(XTwitterScraper::Models::X::TweetCheckRepostResponse)
|
|
1495
|
+
end
|
|
1496
|
+
def check_repost(
|
|
1497
|
+
id,
|
|
1498
|
+
# User ID, username with or without @, or profile URL.
|
|
1499
|
+
user:,
|
|
1500
|
+
# Fields to keep in each row, comma-separated. Use dots for nested fields, such as
|
|
1501
|
+
# author.username. A list keeps the field in each item. Case & underscores do not
|
|
1502
|
+
# matter. A row that lacks a field leaves it out. Cursors, counts & diagnostics
|
|
1503
|
+
# always stay. An unknown name answers 400 unknown_field with the valid names,
|
|
1504
|
+
# before any read. The price stays the same. SDK row types then hold only the
|
|
1505
|
+
# named fields. A longer URL fails at the edge before Xquik reads it. Pick only
|
|
1506
|
+
# the fields you need with `fields` & `omit`.
|
|
1507
|
+
fields: nil,
|
|
1508
|
+
# Fields to drop from each row, comma-separated. It takes the same names as
|
|
1509
|
+
# fields. With fields, it drops from the kept fields. A longer URL fails at the
|
|
1510
|
+
# edge before Xquik reads it.
|
|
1511
|
+
omit: nil,
|
|
1512
|
+
request_options: {}
|
|
1513
|
+
)
|
|
1514
|
+
end
|
|
1515
|
+
|
|
1516
|
+
# Returns the caption tracks of 1 public tweet's videos. Each track has its
|
|
1517
|
+
# language, name, timed cues, and full text. A tweet without video, or a video
|
|
1518
|
+
# without captions, returns no track and costs nothing. Video subtitles come with
|
|
1519
|
+
# timed cues.
|
|
1520
|
+
sig do
|
|
1521
|
+
params(
|
|
1522
|
+
id: String,
|
|
1523
|
+
fields: String,
|
|
1524
|
+
omit: String,
|
|
1525
|
+
request_options: XTwitterScraper::RequestOptions::OrHash
|
|
1526
|
+
).returns(XTwitterScraper::Models::X::TweetGetSubtitlesResponse)
|
|
1527
|
+
end
|
|
1528
|
+
def get_subtitles(
|
|
1529
|
+
# Tweet ID or URL-encoded tweet URL, such as x.com/nasa/status/20. Takes x.com &
|
|
1530
|
+
# twitter.com links with or without https://, www., mobile., a query or a
|
|
1531
|
+
# fragment, & /i/status or /i/web/status links. Anything else gets 400
|
|
1532
|
+
# `invalid_tweet_id`.
|
|
1533
|
+
id,
|
|
1534
|
+
# Fields to keep in each row, comma-separated. Use dots for nested fields, such as
|
|
1535
|
+
# author.username. A list keeps the field in each item. Case & underscores do not
|
|
1536
|
+
# matter. A row that lacks a field leaves it out. Cursors, counts & diagnostics
|
|
1537
|
+
# always stay. An unknown name answers 400 unknown_field with the valid names,
|
|
1538
|
+
# before any read. The price stays the same. SDK row types then hold only the
|
|
1539
|
+
# named fields. A longer URL fails at the edge before Xquik reads it. Pick only
|
|
1540
|
+
# the fields you need with `fields` & `omit`.
|
|
1541
|
+
fields: nil,
|
|
1542
|
+
# Fields to drop from each row, comma-separated. It takes the same names as
|
|
1543
|
+
# fields. With fields, it drops from the kept fields. A longer URL fails at the
|
|
1544
|
+
# edge before Xquik reads it.
|
|
1545
|
+
omit: nil,
|
|
1546
|
+
request_options: {}
|
|
1547
|
+
)
|
|
1548
|
+
end
|
|
1549
|
+
|
|
1550
|
+
# Returns X's own translation of 1 public tweet into the language you pick, with
|
|
1551
|
+
# the links, mentions, and tags X places in the translated text. Posts & bios can
|
|
1552
|
+
# be translated into your language.
|
|
1553
|
+
sig do
|
|
1554
|
+
params(
|
|
1555
|
+
id: String,
|
|
1556
|
+
language: String,
|
|
1557
|
+
fields: String,
|
|
1558
|
+
omit: String,
|
|
1559
|
+
request_options: XTwitterScraper::RequestOptions::OrHash
|
|
1560
|
+
).returns(XTwitterScraper::Models::X::TweetTranslateResponse)
|
|
1561
|
+
end
|
|
1562
|
+
def translate(
|
|
1563
|
+
# Tweet ID or URL-encoded tweet URL, such as x.com/nasa/status/20. Takes x.com &
|
|
1564
|
+
# twitter.com links with or without https://, www., mobile., a query or a
|
|
1565
|
+
# fragment, & /i/status or /i/web/status links. Anything else gets 400
|
|
1566
|
+
# `invalid_tweet_id`.
|
|
1567
|
+
id,
|
|
1568
|
+
# Language code to translate into, such as `en`, `tr`, `pt-br`, or `zh-tw`. Upper
|
|
1569
|
+
# and lower case both work.
|
|
1570
|
+
language:,
|
|
1571
|
+
# Fields to keep in each row, comma-separated. Use dots for nested fields, such as
|
|
1572
|
+
# author.username. A list keeps the field in each item. Case & underscores do not
|
|
1573
|
+
# matter. A row that lacks a field leaves it out. Cursors, counts & diagnostics
|
|
1574
|
+
# always stay. An unknown name answers 400 unknown_field with the valid names,
|
|
1575
|
+
# before any read. The price stays the same. SDK row types then hold only the
|
|
1576
|
+
# named fields. A longer URL fails at the edge before Xquik reads it. Pick only
|
|
1577
|
+
# the fields you need with `fields` & `omit`.
|
|
1578
|
+
fields: nil,
|
|
1579
|
+
# Fields to drop from each row, comma-separated. It takes the same names as
|
|
1580
|
+
# fields. With fields, it drops from the kept fields. A longer URL fails at the
|
|
1581
|
+
# edge before Xquik reads it.
|
|
1582
|
+
omit: nil,
|
|
1583
|
+
request_options: {}
|
|
1584
|
+
)
|
|
1585
|
+
end
|
|
1586
|
+
|
|
1130
1587
|
# @api private
|
|
1131
1588
|
sig do
|
|
1132
1589
|
params(client: XTwitterScraper::Client).returns(T.attached_class)
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
# SPDX-FileCopyrightText: 2026 Xquik contributors
|
|
2
|
+
#
|
|
3
|
+
# SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
|
|
5
|
+
# typed: strong
|
|
6
|
+
|
|
7
|
+
module XTwitterScraper
|
|
8
|
+
module Resources
|
|
9
|
+
class X
|
|
10
|
+
class Users
|
|
11
|
+
class Block
|
|
12
|
+
# Unblocks a user through a connected X account.
|
|
13
|
+
sig do
|
|
14
|
+
params(
|
|
15
|
+
id: String,
|
|
16
|
+
account: String,
|
|
17
|
+
idempotency_key: String,
|
|
18
|
+
prefer: String,
|
|
19
|
+
request_options: XTwitterScraper::RequestOptions::OrHash
|
|
20
|
+
).returns(XTwitterScraper::Models::X::WriteActionRetrieveResponse)
|
|
21
|
+
end
|
|
22
|
+
def delete(
|
|
23
|
+
# User ID, username with or without @, or URL-encoded profile URL, such as
|
|
24
|
+
# x.com/nasa or x.com/i/user/11348282. A number is a user ID. Writes look up a
|
|
25
|
+
# username's ID before sending. Anything else gets 400 `invalid_user_id`.
|
|
26
|
+
id,
|
|
27
|
+
# X account identifier (@username or account ID)
|
|
28
|
+
account:,
|
|
29
|
+
# Use 1 unique value per intended write. Reuse it only for an identical retry. A
|
|
30
|
+
# matching retry returns the first answer again, with `idempotent: true` added. It
|
|
31
|
+
# keeps the first status, body & Retry-After. It sends nothing to X & charges
|
|
32
|
+
# nothing. While the first request runs, a retry returns 202 & the action.
|
|
33
|
+
# Different input returns 409. Protection lasts at least 90 days. Retrying a write
|
|
34
|
+
# is safe with an idempotency key. A retry with an API key at its monthly budget
|
|
35
|
+
# gets 403 `api_key_budget_reached`.
|
|
36
|
+
idempotency_key:,
|
|
37
|
+
# A long write answers 202 with a status link, then lands on X. `wait=<seconds>`
|
|
38
|
+
# asks for the answer within that many seconds, up to 85. If the write is still
|
|
39
|
+
# running then, the API answers 202 with Location. Poll Location until `terminal`
|
|
40
|
+
# is true, and don't send the write again.
|
|
41
|
+
prefer: nil,
|
|
42
|
+
request_options: {}
|
|
43
|
+
)
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
# Blocks a user through a connected X account. X removes follows both ways, and
|
|
47
|
+
# unblocking doesn't restore them.
|
|
48
|
+
sig do
|
|
49
|
+
params(
|
|
50
|
+
id: String,
|
|
51
|
+
account: String,
|
|
52
|
+
idempotency_key: String,
|
|
53
|
+
prefer: String,
|
|
54
|
+
request_options: XTwitterScraper::RequestOptions::OrHash
|
|
55
|
+
).returns(XTwitterScraper::Models::X::WriteActionRetrieveResponse)
|
|
56
|
+
end
|
|
57
|
+
def create(
|
|
58
|
+
# User ID, username with or without @, or URL-encoded profile URL, such as
|
|
59
|
+
# x.com/nasa or x.com/i/user/11348282. A number is a user ID. Writes look up a
|
|
60
|
+
# username's ID before sending. Anything else gets 400 `invalid_user_id`.
|
|
61
|
+
id,
|
|
62
|
+
# X account identifier (@username or account ID)
|
|
63
|
+
account:,
|
|
64
|
+
# Use 1 unique value per intended write. Reuse it only for an identical retry. A
|
|
65
|
+
# matching retry returns the first answer again, with `idempotent: true` added. It
|
|
66
|
+
# keeps the first status, body & Retry-After. It sends nothing to X & charges
|
|
67
|
+
# nothing. While the first request runs, a retry returns 202 & the action.
|
|
68
|
+
# Different input returns 409. Protection lasts at least 90 days. Retrying a write
|
|
69
|
+
# is safe with an idempotency key. A retry with an API key at its monthly budget
|
|
70
|
+
# gets 403 `api_key_budget_reached`.
|
|
71
|
+
idempotency_key:,
|
|
72
|
+
# A long write answers 202 with a status link, then lands on X. `wait=<seconds>`
|
|
73
|
+
# asks for the answer within that many seconds, up to 85. If the write is still
|
|
74
|
+
# running then, the API answers 202 with Location. Poll Location until `terminal`
|
|
75
|
+
# is true, and don't send the write again.
|
|
76
|
+
prefer: nil,
|
|
77
|
+
request_options: {}
|
|
78
|
+
)
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
# @api private
|
|
82
|
+
sig do
|
|
83
|
+
params(client: XTwitterScraper::Client).returns(T.attached_class)
|
|
84
|
+
end
|
|
85
|
+
def self.new(client:)
|
|
86
|
+
end
|
|
87
|
+
end
|
|
88
|
+
end
|
|
89
|
+
end
|
|
90
|
+
end
|
|
91
|
+
end
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
# SPDX-FileCopyrightText: 2026 Xquik contributors
|
|
2
|
+
#
|
|
3
|
+
# SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
|
|
5
|
+
# typed: strong
|
|
6
|
+
|
|
7
|
+
module XTwitterScraper
|
|
8
|
+
module Resources
|
|
9
|
+
class X
|
|
10
|
+
class Users
|
|
11
|
+
class Mute
|
|
12
|
+
# Unmutes a user through a connected X account.
|
|
13
|
+
sig do
|
|
14
|
+
params(
|
|
15
|
+
id: String,
|
|
16
|
+
account: String,
|
|
17
|
+
idempotency_key: String,
|
|
18
|
+
prefer: String,
|
|
19
|
+
request_options: XTwitterScraper::RequestOptions::OrHash
|
|
20
|
+
).returns(XTwitterScraper::Models::X::WriteActionRetrieveResponse)
|
|
21
|
+
end
|
|
22
|
+
def delete(
|
|
23
|
+
# User ID, username with or without @, or URL-encoded profile URL, such as
|
|
24
|
+
# x.com/nasa or x.com/i/user/11348282. A number is a user ID. Writes look up a
|
|
25
|
+
# username's ID before sending. Anything else gets 400 `invalid_user_id`.
|
|
26
|
+
id,
|
|
27
|
+
# X account identifier (@username or account ID)
|
|
28
|
+
account:,
|
|
29
|
+
# Use 1 unique value per intended write. Reuse it only for an identical retry. A
|
|
30
|
+
# matching retry returns the first answer again, with `idempotent: true` added. It
|
|
31
|
+
# keeps the first status, body & Retry-After. It sends nothing to X & charges
|
|
32
|
+
# nothing. While the first request runs, a retry returns 202 & the action.
|
|
33
|
+
# Different input returns 409. Protection lasts at least 90 days. Retrying a write
|
|
34
|
+
# is safe with an idempotency key. A retry with an API key at its monthly budget
|
|
35
|
+
# gets 403 `api_key_budget_reached`.
|
|
36
|
+
idempotency_key:,
|
|
37
|
+
# A long write answers 202 with a status link, then lands on X. `wait=<seconds>`
|
|
38
|
+
# asks for the answer within that many seconds, up to 85. If the write is still
|
|
39
|
+
# running then, the API answers 202 with Location. Poll Location until `terminal`
|
|
40
|
+
# is true, and don't send the write again.
|
|
41
|
+
prefer: nil,
|
|
42
|
+
request_options: {}
|
|
43
|
+
)
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
# Mutes a user through a connected X account. The user's posts leave that
|
|
47
|
+
# account's timelines, and X doesn't tell the user.
|
|
48
|
+
sig do
|
|
49
|
+
params(
|
|
50
|
+
id: String,
|
|
51
|
+
account: String,
|
|
52
|
+
idempotency_key: String,
|
|
53
|
+
prefer: String,
|
|
54
|
+
request_options: XTwitterScraper::RequestOptions::OrHash
|
|
55
|
+
).returns(XTwitterScraper::Models::X::WriteActionRetrieveResponse)
|
|
56
|
+
end
|
|
57
|
+
def create(
|
|
58
|
+
# User ID, username with or without @, or URL-encoded profile URL, such as
|
|
59
|
+
# x.com/nasa or x.com/i/user/11348282. A number is a user ID. Writes look up a
|
|
60
|
+
# username's ID before sending. Anything else gets 400 `invalid_user_id`.
|
|
61
|
+
id,
|
|
62
|
+
# X account identifier (@username or account ID)
|
|
63
|
+
account:,
|
|
64
|
+
# Use 1 unique value per intended write. Reuse it only for an identical retry. A
|
|
65
|
+
# matching retry returns the first answer again, with `idempotent: true` added. It
|
|
66
|
+
# keeps the first status, body & Retry-After. It sends nothing to X & charges
|
|
67
|
+
# nothing. While the first request runs, a retry returns 202 & the action.
|
|
68
|
+
# Different input returns 409. Protection lasts at least 90 days. Retrying a write
|
|
69
|
+
# is safe with an idempotency key. A retry with an API key at its monthly budget
|
|
70
|
+
# gets 403 `api_key_budget_reached`.
|
|
71
|
+
idempotency_key:,
|
|
72
|
+
# A long write answers 202 with a status link, then lands on X. `wait=<seconds>`
|
|
73
|
+
# asks for the answer within that many seconds, up to 85. If the write is still
|
|
74
|
+
# running then, the API answers 202 with Location. Poll Location until `terminal`
|
|
75
|
+
# is true, and don't send the write again.
|
|
76
|
+
prefer: nil,
|
|
77
|
+
request_options: {}
|
|
78
|
+
)
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
# @api private
|
|
82
|
+
sig do
|
|
83
|
+
params(client: XTwitterScraper::Client).returns(T.attached_class)
|
|
84
|
+
end
|
|
85
|
+
def self.new(client:)
|
|
86
|
+
end
|
|
87
|
+
end
|
|
88
|
+
end
|
|
89
|
+
end
|
|
90
|
+
end
|
|
91
|
+
end
|