x-twitter-scraper 0.4.2 → 0.4.4
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 +23 -0
- data/LICENSE +201 -0
- data/README.md +10 -12
- data/lib/x_twitter_scraper/client.rb +30 -26
- data/lib/x_twitter_scraper/internal/transport/base_client.rb +5 -0
- data/lib/x_twitter_scraper/internal/type/base_model.rb +4 -3
- data/lib/x_twitter_scraper/internal/util.rb +3 -1
- data/lib/x_twitter_scraper/models/account_retrieve_response.rb +138 -23
- data/lib/x_twitter_scraper/models/content_disclosure.rb +66 -0
- data/lib/x_twitter_scraper/models/credit_redirect_topup_checkout_params.rb +22 -0
- data/lib/x_twitter_scraper/models/credit_retrieve_balance_response.rb +37 -10
- data/lib/x_twitter_scraper/models/credit_retrieve_topup_status_params.rb +22 -0
- data/lib/x_twitter_scraper/models/credit_retrieve_topup_status_response.rb +45 -0
- data/lib/x_twitter_scraper/models/credit_topup_balance_params.rb +13 -5
- data/lib/x_twitter_scraper/models/credit_topup_balance_response.rb +18 -5
- data/lib/x_twitter_scraper/models/draft_list_params.rb +8 -2
- data/lib/x_twitter_scraper/models/draw_detail.rb +15 -1
- data/lib/x_twitter_scraper/models/draw_export_params.rb +3 -3
- data/lib/x_twitter_scraper/models/draw_list_item.rb +8 -1
- data/lib/x_twitter_scraper/models/draw_list_params.rb +13 -7
- data/lib/x_twitter_scraper/models/draw_run_response.rb +13 -2
- data/lib/x_twitter_scraper/models/embedded_tweet.rb +202 -0
- data/lib/x_twitter_scraper/models/error.rb +203 -34
- data/lib/x_twitter_scraper/models/event.rb +48 -6
- data/lib/x_twitter_scraper/models/event_detail.rb +46 -7
- data/lib/x_twitter_scraper/models/event_list_params.rb +13 -7
- data/lib/x_twitter_scraper/models/event_type.rb +17 -2
- data/lib/x_twitter_scraper/models/extraction_estimate_cost_params.rb +308 -7
- data/lib/x_twitter_scraper/models/extraction_estimate_cost_response.rb +38 -14
- data/lib/x_twitter_scraper/models/extraction_export_results_params.rb +3 -3
- data/lib/x_twitter_scraper/models/extraction_job.rb +3 -0
- data/lib/x_twitter_scraper/models/extraction_list_params.rb +16 -7
- data/lib/x_twitter_scraper/models/extraction_retrieve_params.rb +5 -5
- data/lib/x_twitter_scraper/models/extraction_retrieve_response.rb +2 -2
- data/lib/x_twitter_scraper/models/extraction_run_params.rb +304 -7
- data/lib/x_twitter_scraper/models/extraction_run_response.rb +3 -0
- data/lib/x_twitter_scraper/models/guest_wallet_amount.rb +25 -0
- data/lib/x_twitter_scraper/models/guest_wallet_create_params.rb +36 -0
- data/lib/x_twitter_scraper/models/guest_wallet_create_response.rb +161 -0
- data/lib/x_twitter_scraper/models/{integration_list_params.rb → guest_wallet_retrieve_status_params.rb} +2 -2
- data/lib/x_twitter_scraper/models/guest_wallet_retrieve_status_response.rb +196 -0
- data/lib/x_twitter_scraper/models/guest_wallet_topup_params.rb +36 -0
- data/lib/x_twitter_scraper/models/guest_wallet_topup_response.rb +172 -0
- data/lib/x_twitter_scraper/models/monitor.rb +9 -1
- data/lib/x_twitter_scraper/models/monitor_create_response.rb +16 -1
- data/lib/x_twitter_scraper/models/monitors/keyword_create_params.rb +34 -0
- data/lib/x_twitter_scraper/models/monitors/keyword_create_response.rb +59 -0
- data/lib/x_twitter_scraper/models/monitors/keyword_deactivate_params.rb +22 -0
- data/lib/x_twitter_scraper/models/monitors/keyword_deactivate_response.rb +18 -0
- data/lib/x_twitter_scraper/models/monitors/keyword_list_params.rb +16 -0
- data/lib/x_twitter_scraper/models/monitors/keyword_list_response.rb +76 -0
- data/lib/x_twitter_scraper/models/monitors/keyword_retrieve_params.rb +22 -0
- data/lib/x_twitter_scraper/models/monitors/keyword_retrieve_response.rb +59 -0
- data/lib/x_twitter_scraper/models/monitors/keyword_update_params.rb +40 -0
- data/lib/x_twitter_scraper/models/monitors/keyword_update_response.rb +59 -0
- data/lib/x_twitter_scraper/models/paginated_tweets.rb +8 -4
- data/lib/x_twitter_scraper/models/paginated_users.rb +8 -4
- data/lib/x_twitter_scraper/models/radar_item.rb +99 -6
- data/lib/x_twitter_scraper/models/radar_retrieve_trending_topics_params.rb +39 -14
- data/lib/x_twitter_scraper/models/radar_retrieve_trending_topics_response.rb +14 -5
- data/lib/x_twitter_scraper/models/search_tweet.rb +236 -0
- data/lib/x_twitter_scraper/models/subscribe_create_params.rb +21 -1
- data/lib/x_twitter_scraper/models/subscribe_create_response.rb +10 -10
- data/lib/x_twitter_scraper/models/trend_list_params.rb +7 -4
- data/lib/x_twitter_scraper/models/tweet_media.rb +77 -0
- data/lib/x_twitter_scraper/models/user_profile.rb +258 -0
- data/lib/x_twitter_scraper/models/webhook.rb +46 -1
- data/lib/x_twitter_scraper/models/webhook_create_response.rb +2 -1
- data/lib/x_twitter_scraper/models/{api_key_revoke_params.rb → webhook_resume_params.rb} +2 -2
- data/lib/x_twitter_scraper/models/webhook_resume_response.rb +31 -0
- data/lib/x_twitter_scraper/models/x/account_connection_challenge_submit_params.rb +31 -0
- data/lib/x_twitter_scraper/models/x/account_connection_challenge_submit_response.rb +66 -0
- data/lib/x_twitter_scraper/models/x/account_create_params.rb +1 -9
- data/lib/x_twitter_scraper/models/x/account_create_response.rb +30 -1
- data/lib/x_twitter_scraper/models/x/account_reauth_params.rb +9 -1
- data/lib/x_twitter_scraper/models/x/account_reauth_response.rb +36 -1
- data/lib/x_twitter_scraper/models/x/bookmark_retrieve_folders_response.rb +6 -2
- data/lib/x_twitter_scraper/models/x/communities/join_create_response.rb +20 -0
- data/lib/x_twitter_scraper/models/x/communities/join_delete_all_response.rb +20 -0
- data/lib/x_twitter_scraper/models/x/communities/tweet_list_by_community_params.rb +17 -1
- data/lib/x_twitter_scraper/models/x/communities/tweet_list_params.rb +43 -9
- data/lib/x_twitter_scraper/models/x/community_retrieve_info_response.rb +69 -1
- data/lib/x_twitter_scraper/models/x/community_retrieve_members_params.rb +14 -1
- data/lib/x_twitter_scraper/models/x/community_retrieve_search_params.rb +38 -4
- data/lib/x_twitter_scraper/models/x/dm_retrieve_history_params.rb +13 -1
- data/lib/x_twitter_scraper/models/x/dm_retrieve_history_response.rb +26 -9
- data/lib/x_twitter_scraper/models/x/dm_send_params.rb +3 -9
- data/lib/x_twitter_scraper/models/x/follower_check_params.rb +4 -4
- data/lib/x_twitter_scraper/models/x/list_retrieve_followers_params.rb +15 -1
- data/lib/x_twitter_scraper/models/x/list_retrieve_members_params.rb +9 -1
- data/lib/x_twitter_scraper/models/x/list_retrieve_tweets_params.rb +16 -1
- data/lib/x_twitter_scraper/models/x/media_download_params.rb +19 -3
- data/lib/x_twitter_scraper/models/x/media_upload_params.rb +8 -15
- data/lib/x_twitter_scraper/models/x/media_upload_response.rb +10 -1
- data/lib/x_twitter_scraper/models/x/profile_update_avatar_params.rb +8 -8
- data/lib/x_twitter_scraper/models/x/profile_update_banner_params.rb +8 -8
- data/lib/x_twitter_scraper/models/x/tweet_author.rb +4 -21
- data/lib/x_twitter_scraper/models/x/tweet_create_params.rb +18 -11
- data/lib/x_twitter_scraper/models/x/tweet_create_response.rb +28 -1
- data/lib/x_twitter_scraper/models/x/tweet_detail.rb +109 -43
- data/lib/x_twitter_scraper/models/x/tweet_get_favoriters_params.rb +15 -1
- data/lib/x_twitter_scraper/models/x/tweet_get_quotes_params.rb +268 -1
- data/lib/x_twitter_scraper/models/x/tweet_get_replies_params.rb +268 -1
- data/lib/x_twitter_scraper/models/x/tweet_get_retweeters_params.rb +15 -1
- data/lib/x_twitter_scraper/models/x/tweet_get_thread_params.rb +16 -1
- data/lib/x_twitter_scraper/models/x/tweet_retrieve_response.rb +9 -4
- data/lib/x_twitter_scraper/models/x/tweet_search_params.rb +314 -8
- data/lib/x_twitter_scraper/models/x/user_remove_follower_params.rb +31 -0
- data/lib/x_twitter_scraper/models/x/user_remove_follower_response.rb +18 -0
- data/lib/x_twitter_scraper/models/x/user_retrieve_batch_params.rb +6 -2
- data/lib/x_twitter_scraper/models/x/user_retrieve_batch_response.rb +83 -0
- data/lib/x_twitter_scraper/models/x/user_retrieve_followers_params.rb +25 -3
- data/lib/x_twitter_scraper/models/x/user_retrieve_followers_you_know_params.rb +16 -1
- data/lib/x_twitter_scraper/models/x/user_retrieve_following_params.rb +25 -3
- data/lib/x_twitter_scraper/models/x/user_retrieve_likes_params.rb +268 -1
- data/lib/x_twitter_scraper/models/x/user_retrieve_media_params.rb +268 -1
- data/lib/x_twitter_scraper/models/x/user_retrieve_mentions_params.rb +268 -1
- data/lib/x_twitter_scraper/models/x/user_retrieve_replies_params.rb +306 -0
- data/lib/x_twitter_scraper/models/x/user_retrieve_tweets_params.rb +268 -1
- data/lib/x_twitter_scraper/models/x/user_retrieve_verified_followers_params.rb +16 -1
- data/lib/x_twitter_scraper/models/x/write_action_retrieve_params.rb +22 -0
- data/lib/x_twitter_scraper/models/x/write_action_retrieve_response.rb +173 -0
- data/lib/x_twitter_scraper/models/x/x_account.rb +56 -2
- data/lib/x_twitter_scraper/models/x/x_account_detail.rb +23 -8
- data/lib/x_twitter_scraper/models/x_get_article_response.rb +189 -11
- 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 +3 -3
- data/lib/x_twitter_scraper/models/x_get_trends_params.rb +17 -1
- data/lib/x_twitter_scraper/models.rb +21 -21
- data/lib/x_twitter_scraper/resources/account.rb +1 -3
- data/lib/x_twitter_scraper/resources/compose.rb +1 -1
- data/lib/x_twitter_scraper/resources/credits.rb +54 -4
- data/lib/x_twitter_scraper/resources/drafts.rb +7 -4
- data/lib/x_twitter_scraper/resources/draws.rb +14 -8
- data/lib/x_twitter_scraper/resources/events.rb +7 -5
- data/lib/x_twitter_scraper/resources/extractions.rb +145 -20
- data/lib/x_twitter_scraper/resources/guest_wallets.rb +108 -0
- data/lib/x_twitter_scraper/resources/monitors/keywords.rb +128 -0
- data/lib/x_twitter_scraper/resources/monitors.rb +13 -5
- data/lib/x_twitter_scraper/resources/radar.rb +8 -6
- data/lib/x_twitter_scraper/resources/styles.rb +1 -1
- data/lib/x_twitter_scraper/resources/subscribe.rb +9 -4
- data/lib/x_twitter_scraper/resources/support/tickets.rb +3 -3
- data/lib/x_twitter_scraper/resources/trends.rb +7 -4
- data/lib/x_twitter_scraper/resources/webhooks.rb +25 -5
- data/lib/x_twitter_scraper/resources/x/account_connection_challenges.rb +41 -0
- data/lib/x_twitter_scraper/resources/x/accounts.rb +7 -13
- data/lib/x_twitter_scraper/resources/x/bookmarks.rb +1 -1
- data/lib/x_twitter_scraper/resources/x/communities/join.rb +6 -6
- data/lib/x_twitter_scraper/resources/x/communities/tweets.rb +27 -10
- data/lib/x_twitter_scraper/resources/x/communities.rb +27 -11
- data/lib/x_twitter_scraper/resources/x/dm.rb +9 -6
- data/lib/x_twitter_scraper/resources/x/followers.rb +4 -4
- data/lib/x_twitter_scraper/resources/x/lists.rb +22 -9
- data/lib/x_twitter_scraper/resources/x/media.rb +11 -9
- data/lib/x_twitter_scraper/resources/x/profile.rb +6 -6
- data/lib/x_twitter_scraper/resources/x/tweets.rb +282 -28
- data/lib/x_twitter_scraper/resources/x/users.rb +485 -34
- data/lib/x_twitter_scraper/resources/x/write_actions.rb +37 -0
- data/lib/x_twitter_scraper/resources/x.rb +33 -13
- data/lib/x_twitter_scraper/version.rb +1 -1
- data/lib/x_twitter_scraper.rb +41 -27
- data/rbi/x_twitter_scraper/client.rbi +14 -22
- data/rbi/x_twitter_scraper/models/account_retrieve_response.rbi +181 -23
- data/rbi/x_twitter_scraper/models/content_disclosure.rbi +149 -0
- data/rbi/x_twitter_scraper/models/{integration_retrieve_params.rbi → credit_redirect_topup_checkout_params.rbi} +14 -6
- data/rbi/x_twitter_scraper/models/credit_retrieve_balance_response.rbi +35 -9
- data/rbi/x_twitter_scraper/models/{integration_list_deliveries_params.rbi → credit_retrieve_topup_status_params.rbi} +8 -17
- data/rbi/x_twitter_scraper/models/credit_retrieve_topup_status_response.rbi +107 -0
- data/rbi/x_twitter_scraper/models/credit_topup_balance_params.rbi +20 -6
- data/rbi/x_twitter_scraper/models/credit_topup_balance_response.rbi +19 -5
- data/rbi/x_twitter_scraper/models/draft_list_params.rbi +8 -2
- data/rbi/x_twitter_scraper/models/draw_detail.rbi +2 -0
- data/rbi/x_twitter_scraper/models/draw_export_params.rbi +3 -12
- data/rbi/x_twitter_scraper/models/draw_list_item.rbi +2 -0
- data/rbi/x_twitter_scraper/models/draw_list_params.rbi +16 -10
- data/rbi/x_twitter_scraper/models/draw_run_response.rbi +15 -1
- data/rbi/x_twitter_scraper/models/embedded_tweet.rbi +255 -0
- data/rbi/x_twitter_scraper/models/error.rbi +865 -87
- data/rbi/x_twitter_scraper/models/event.rbi +63 -4
- data/rbi/x_twitter_scraper/models/event_detail.rbi +73 -5
- data/rbi/x_twitter_scraper/models/event_list_params.rbi +16 -10
- data/rbi/x_twitter_scraper/models/event_type.rbi +58 -4
- data/rbi/x_twitter_scraper/models/extraction_estimate_cost_params.rbi +580 -2
- data/rbi/x_twitter_scraper/models/extraction_estimate_cost_response.rbi +98 -14
- data/rbi/x_twitter_scraper/models/extraction_export_results_params.rbi +3 -13
- data/rbi/x_twitter_scraper/models/extraction_job.rbi +15 -0
- data/rbi/x_twitter_scraper/models/extraction_list_params.rbi +31 -10
- data/rbi/x_twitter_scraper/models/extraction_retrieve_params.rbi +8 -8
- data/rbi/x_twitter_scraper/models/extraction_retrieve_response.rbi +2 -2
- data/rbi/x_twitter_scraper/models/extraction_run_params.rbi +546 -2
- data/rbi/x_twitter_scraper/models/extraction_run_response.rbi +15 -0
- data/rbi/x_twitter_scraper/models/guest_wallet_amount.rbi +39 -0
- data/rbi/x_twitter_scraper/models/guest_wallet_create_params.rbi +58 -0
- data/rbi/x_twitter_scraper/models/guest_wallet_create_response.rbi +243 -0
- data/rbi/x_twitter_scraper/models/{integration_list_params.rbi → guest_wallet_retrieve_status_params.rbi} +2 -2
- data/rbi/x_twitter_scraper/models/guest_wallet_retrieve_status_response.rbi +402 -0
- data/rbi/x_twitter_scraper/models/guest_wallet_topup_params.rbi +58 -0
- data/rbi/x_twitter_scraper/models/guest_wallet_topup_response.rbi +293 -0
- data/rbi/x_twitter_scraper/models/monitor.rbi +8 -0
- data/rbi/x_twitter_scraper/models/monitor_create_response.rbi +14 -0
- data/rbi/x_twitter_scraper/models/monitors/keyword_create_params.rbi +56 -0
- data/rbi/x_twitter_scraper/models/monitors/keyword_create_response.rbi +75 -0
- data/rbi/x_twitter_scraper/models/monitors/keyword_deactivate_params.rbi +40 -0
- data/rbi/x_twitter_scraper/models/monitors/keyword_deactivate_response.rbi +28 -0
- data/rbi/x_twitter_scraper/models/monitors/keyword_list_params.rbi +34 -0
- data/rbi/x_twitter_scraper/models/monitors/keyword_list_response.rbi +123 -0
- data/rbi/x_twitter_scraper/models/monitors/keyword_retrieve_params.rbi +40 -0
- data/rbi/x_twitter_scraper/models/monitors/keyword_retrieve_response.rbi +75 -0
- data/rbi/x_twitter_scraper/models/monitors/keyword_update_params.rbi +72 -0
- data/rbi/x_twitter_scraper/models/monitors/keyword_update_response.rbi +75 -0
- data/rbi/x_twitter_scraper/models/paginated_tweets.rbi +8 -4
- data/rbi/x_twitter_scraper/models/paginated_users.rbi +8 -4
- data/rbi/x_twitter_scraper/models/radar_item.rbi +131 -6
- data/rbi/x_twitter_scraper/models/radar_retrieve_trending_topics_params.rbi +109 -20
- data/rbi/x_twitter_scraper/models/radar_retrieve_trending_topics_response.rbi +22 -5
- data/rbi/x_twitter_scraper/models/search_tweet.rbi +316 -0
- data/rbi/x_twitter_scraper/models/subscribe_create_params.rbi +62 -2
- data/rbi/x_twitter_scraper/models/subscribe_create_response.rbi +10 -23
- data/rbi/x_twitter_scraper/models/trend_list_params.rbi +4 -4
- data/rbi/x_twitter_scraper/models/tweet_media.rbi +130 -0
- data/rbi/x_twitter_scraper/models/user_profile.rbi +346 -0
- data/rbi/x_twitter_scraper/models/webhook.rbi +57 -0
- data/rbi/x_twitter_scraper/models/webhook_create_response.rbi +2 -0
- data/rbi/x_twitter_scraper/models/{api_key_revoke_params.rbi → webhook_resume_params.rbi} +2 -2
- data/rbi/x_twitter_scraper/models/webhook_resume_response.rbi +55 -0
- data/rbi/x_twitter_scraper/models/x/account_connection_challenge_submit_params.rbi +54 -0
- data/rbi/x_twitter_scraper/models/x/account_connection_challenge_submit_response.rbi +131 -0
- data/rbi/x_twitter_scraper/models/x/account_create_params.rbi +0 -11
- data/rbi/x_twitter_scraper/models/x/account_create_response.rbi +79 -1
- data/rbi/x_twitter_scraper/models/x/account_reauth_params.rbi +11 -0
- data/rbi/x_twitter_scraper/models/x/account_reauth_response.rbi +96 -5
- data/rbi/x_twitter_scraper/models/x/bookmark_retrieve_folders_response.rbi +9 -1
- data/rbi/x_twitter_scraper/models/x/communities/join_create_response.rbi +30 -0
- data/rbi/x_twitter_scraper/models/x/communities/join_delete_all_response.rbi +30 -0
- data/rbi/x_twitter_scraper/models/x/communities/tweet_list_by_community_params.rbi +19 -0
- data/rbi/x_twitter_scraper/models/x/communities/tweet_list_params.rbi +85 -10
- data/rbi/x_twitter_scraper/models/x/community_retrieve_info_response.rbi +115 -0
- data/rbi/x_twitter_scraper/models/x/community_retrieve_members_params.rbi +15 -0
- data/rbi/x_twitter_scraper/models/x/community_retrieve_search_params.rbi +79 -4
- data/rbi/x_twitter_scraper/models/x/dm_retrieve_history_params.rbi +10 -0
- data/rbi/x_twitter_scraper/models/x/dm_retrieve_history_response.rbi +20 -13
- data/rbi/x_twitter_scraper/models/x/dm_send_params.rbi +2 -9
- data/rbi/x_twitter_scraper/models/x/follower_check_params.rbi +4 -4
- data/rbi/x_twitter_scraper/models/x/list_retrieve_followers_params.rbi +17 -0
- data/rbi/x_twitter_scraper/models/x/list_retrieve_members_params.rbi +11 -0
- data/rbi/x_twitter_scraper/models/x/list_retrieve_tweets_params.rbi +19 -0
- data/rbi/x_twitter_scraper/models/x/media_download_params.rbi +24 -2
- data/rbi/x_twitter_scraper/models/x/media_upload_params.rbi +9 -18
- data/rbi/x_twitter_scraper/models/x/media_upload_response.rbi +20 -5
- data/rbi/x_twitter_scraper/models/x/profile_update_avatar_params.rbi +9 -9
- data/rbi/x_twitter_scraper/models/x/profile_update_banner_params.rbi +9 -9
- data/rbi/x_twitter_scraper/models/x/tweet_author.rbi +8 -39
- data/rbi/x_twitter_scraper/models/x/tweet_create_params.rbi +23 -12
- data/rbi/x_twitter_scraper/models/x/tweet_create_response.rbi +41 -5
- data/rbi/x_twitter_scraper/models/x/tweet_detail.rbi +156 -115
- data/rbi/x_twitter_scraper/models/x/tweet_get_favoriters_params.rbi +17 -0
- data/rbi/x_twitter_scraper/models/x/tweet_get_quotes_params.rbi +508 -0
- data/rbi/x_twitter_scraper/models/x/tweet_get_replies_params.rbi +512 -0
- data/rbi/x_twitter_scraper/models/x/tweet_get_retweeters_params.rbi +17 -0
- data/rbi/x_twitter_scraper/models/x/tweet_get_thread_params.rbi +19 -0
- data/rbi/x_twitter_scraper/models/x/tweet_retrieve_response.rbi +8 -4
- data/rbi/x_twitter_scraper/models/x/tweet_search_params.rbi +557 -7
- data/rbi/x_twitter_scraper/models/x/user_remove_follower_params.rbi +54 -0
- data/rbi/x_twitter_scraper/models/x/user_remove_follower_response.rbi +28 -0
- data/rbi/x_twitter_scraper/models/x/user_retrieve_batch_params.rbi +4 -2
- data/rbi/x_twitter_scraper/models/x/user_retrieve_batch_response.rbi +102 -0
- data/rbi/x_twitter_scraper/models/x/user_retrieve_followers_params.rbi +30 -2
- data/rbi/x_twitter_scraper/models/x/user_retrieve_followers_you_know_params.rbi +17 -0
- data/rbi/x_twitter_scraper/models/x/user_retrieve_following_params.rbi +30 -2
- data/rbi/x_twitter_scraper/models/x/user_retrieve_likes_params.rbi +520 -0
- data/rbi/x_twitter_scraper/models/x/user_retrieve_media_params.rbi +520 -0
- data/rbi/x_twitter_scraper/models/x/user_retrieve_mentions_params.rbi +523 -0
- data/rbi/x_twitter_scraper/models/x/user_retrieve_replies_params.rbi +591 -0
- data/rbi/x_twitter_scraper/models/x/user_retrieve_tweets_params.rbi +523 -0
- data/rbi/x_twitter_scraper/models/x/user_retrieve_verified_followers_params.rbi +17 -0
- data/rbi/x_twitter_scraper/models/x/write_action_retrieve_params.rbi +40 -0
- data/rbi/x_twitter_scraper/models/x/write_action_retrieve_response.rbi +313 -0
- data/rbi/x_twitter_scraper/models/x/x_account.rbi +87 -4
- data/rbi/x_twitter_scraper/models/x/x_account_detail.rbi +58 -10
- data/rbi/x_twitter_scraper/models/x_get_article_response.rbi +308 -12
- 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 +3 -3
- data/rbi/x_twitter_scraper/models/x_get_trends_params.rbi +30 -2
- data/rbi/x_twitter_scraper/models.rbi +24 -22
- data/rbi/x_twitter_scraper/resources/account.rbi +1 -1
- data/rbi/x_twitter_scraper/resources/compose.rbi +1 -1
- data/rbi/x_twitter_scraper/resources/credits.rbi +37 -5
- data/rbi/x_twitter_scraper/resources/drafts.rbi +7 -4
- data/rbi/x_twitter_scraper/resources/draws.rbi +14 -8
- data/rbi/x_twitter_scraper/resources/events.rbi +8 -5
- data/rbi/x_twitter_scraper/resources/extractions.rbi +210 -11
- data/rbi/x_twitter_scraper/resources/guest_wallets.rbi +76 -0
- data/rbi/x_twitter_scraper/resources/monitors/keywords.rbi +95 -0
- data/rbi/x_twitter_scraper/resources/monitors.rbi +12 -5
- data/rbi/x_twitter_scraper/resources/radar.rbi +12 -8
- data/rbi/x_twitter_scraper/resources/styles.rbi +1 -1
- data/rbi/x_twitter_scraper/resources/subscribe.rbi +9 -3
- data/rbi/x_twitter_scraper/resources/support/tickets.rbi +3 -3
- data/rbi/x_twitter_scraper/resources/trends.rbi +4 -4
- data/rbi/x_twitter_scraper/resources/webhooks.rbi +19 -5
- data/rbi/x_twitter_scraper/resources/x/account_connection_challenges.rbi +36 -0
- data/rbi/x_twitter_scraper/resources/x/accounts.rbi +6 -6
- data/rbi/x_twitter_scraper/resources/x/bookmarks.rbi +1 -1
- data/rbi/x_twitter_scraper/resources/x/communities/join.rbi +8 -4
- data/rbi/x_twitter_scraper/resources/x/communities/tweets.rbi +25 -7
- data/rbi/x_twitter_scraper/resources/x/communities.rbi +23 -7
- data/rbi/x_twitter_scraper/resources/x/dm.rbi +5 -2
- data/rbi/x_twitter_scraper/resources/x/followers.rbi +4 -4
- data/rbi/x_twitter_scraper/resources/x/lists.rbi +20 -4
- data/rbi/x_twitter_scraper/resources/x/media.rbi +13 -9
- data/rbi/x_twitter_scraper/resources/x/profile.rbi +8 -8
- data/rbi/x_twitter_scraper/resources/x/tweets.rbi +309 -16
- data/rbi/x_twitter_scraper/resources/x/users.rbi +520 -18
- data/rbi/x_twitter_scraper/resources/x/write_actions.rbi +31 -0
- data/rbi/x_twitter_scraper/resources/x.rbi +30 -12
- data/sig/x_twitter_scraper/client.rbs +2 -6
- data/sig/x_twitter_scraper/models/account_retrieve_response.rbs +106 -19
- data/sig/x_twitter_scraper/models/content_disclosure.rbs +78 -0
- data/sig/x_twitter_scraper/models/{api_key_create_params.rbs → credit_redirect_topup_checkout_params.rbs} +7 -8
- data/sig/x_twitter_scraper/models/credit_retrieve_balance_response.rbs +22 -12
- data/sig/x_twitter_scraper/models/{integration_list_deliveries_params.rbs → credit_retrieve_topup_status_params.rbs} +6 -12
- data/sig/x_twitter_scraper/models/credit_retrieve_topup_status_response.rbs +45 -0
- data/sig/x_twitter_scraper/models/credit_topup_balance_params.rbs +11 -4
- data/sig/x_twitter_scraper/models/credit_topup_balance_response.rbs +6 -4
- data/sig/x_twitter_scraper/models/draw_export_params.rbs +2 -6
- data/sig/x_twitter_scraper/models/draw_list_params.rbs +5 -5
- data/sig/x_twitter_scraper/models/embedded_tweet.rbs +187 -0
- data/sig/x_twitter_scraper/models/error.rbs +341 -54
- data/sig/x_twitter_scraper/models/event.rbs +34 -2
- data/sig/x_twitter_scraper/models/event_detail.rbs +34 -2
- data/sig/x_twitter_scraper/models/event_list_params.rbs +5 -5
- data/sig/x_twitter_scraper/models/event_type.rbs +34 -4
- data/sig/x_twitter_scraper/models/extraction_estimate_cost_params.rbs +269 -1
- data/sig/x_twitter_scraper/models/extraction_estimate_cost_response.rbs +46 -12
- data/sig/x_twitter_scraper/models/extraction_export_results_params.rbs +2 -6
- data/sig/x_twitter_scraper/models/extraction_job.rbs +6 -0
- data/sig/x_twitter_scraper/models/extraction_list_params.rbs +11 -5
- data/sig/x_twitter_scraper/models/extraction_retrieve_params.rbs +5 -5
- data/sig/x_twitter_scraper/models/extraction_run_params.rbs +269 -1
- data/sig/x_twitter_scraper/models/extraction_run_response.rbs +6 -0
- data/sig/x_twitter_scraper/models/guest_wallet_amount.rbs +15 -0
- data/sig/x_twitter_scraper/models/guest_wallet_create_params.rbs +32 -0
- data/sig/x_twitter_scraper/models/guest_wallet_create_response.rbs +125 -0
- data/sig/x_twitter_scraper/models/{api_key_list_params.rbs → guest_wallet_retrieve_status_params.rbs} +2 -2
- data/sig/x_twitter_scraper/models/guest_wallet_retrieve_status_response.rbs +163 -0
- data/sig/x_twitter_scraper/models/guest_wallet_topup_params.rbs +32 -0
- data/sig/x_twitter_scraper/models/guest_wallet_topup_response.rbs +146 -0
- data/sig/x_twitter_scraper/models/monitor.rbs +5 -0
- data/sig/x_twitter_scraper/models/monitor_create_response.rbs +10 -0
- data/sig/x_twitter_scraper/models/monitors/keyword_create_params.rbs +33 -0
- data/sig/x_twitter_scraper/models/monitors/keyword_create_response.rbs +47 -0
- data/sig/x_twitter_scraper/models/monitors/keyword_deactivate_params.rbs +25 -0
- data/sig/x_twitter_scraper/models/monitors/keyword_deactivate_response.rbs +15 -0
- data/sig/x_twitter_scraper/models/monitors/keyword_list_params.rbs +19 -0
- data/sig/x_twitter_scraper/models/monitors/keyword_list_response.rbs +69 -0
- data/sig/x_twitter_scraper/models/monitors/keyword_retrieve_params.rbs +25 -0
- data/sig/x_twitter_scraper/models/monitors/keyword_retrieve_response.rbs +47 -0
- data/sig/x_twitter_scraper/models/monitors/keyword_update_params.rbs +44 -0
- data/sig/x_twitter_scraper/models/monitors/keyword_update_response.rbs +47 -0
- data/sig/x_twitter_scraper/models/paginated_tweets.rbs +4 -4
- data/sig/x_twitter_scraper/models/paginated_users.rbs +4 -4
- data/sig/x_twitter_scraper/models/radar_item.rbs +81 -8
- data/sig/x_twitter_scraper/models/radar_retrieve_trending_topics_params.rbs +44 -10
- data/sig/x_twitter_scraper/models/radar_retrieve_trending_topics_response.rbs +14 -4
- data/sig/x_twitter_scraper/models/search_tweet.rbs +205 -0
- data/sig/x_twitter_scraper/models/subscribe_create_params.rbs +28 -3
- data/sig/x_twitter_scraper/models/subscribe_create_response.rbs +10 -16
- data/sig/x_twitter_scraper/models/tweet_media.rbs +72 -0
- data/sig/x_twitter_scraper/models/user_profile.rbs +247 -0
- data/sig/x_twitter_scraper/models/webhook.rbs +27 -0
- data/sig/x_twitter_scraper/models/{api_key_revoke_params.rbs → webhook_resume_params.rbs} +2 -2
- data/sig/x_twitter_scraper/models/webhook_resume_response.rbs +26 -0
- data/sig/x_twitter_scraper/models/x/account_connection_challenge_submit_params.rbs +30 -0
- data/sig/x_twitter_scraper/models/x/account_connection_challenge_submit_response.rbs +68 -0
- data/sig/x_twitter_scraper/models/x/account_create_params.rbs +0 -7
- data/sig/x_twitter_scraper/models/x/account_create_response.rbs +37 -1
- data/sig/x_twitter_scraper/models/x/account_reauth_params.rbs +7 -1
- data/sig/x_twitter_scraper/models/x/account_reauth_response.rbs +51 -3
- data/sig/x_twitter_scraper/models/x/communities/join_create_response.rbs +17 -0
- data/sig/x_twitter_scraper/models/x/communities/join_delete_all_response.rbs +17 -0
- data/sig/x_twitter_scraper/models/x/communities/tweet_list_by_community_params.rbs +7 -1
- data/sig/x_twitter_scraper/models/x/communities/tweet_list_params.rbs +34 -5
- data/sig/x_twitter_scraper/models/x/community_retrieve_info_response.rbs +66 -0
- data/sig/x_twitter_scraper/models/x/community_retrieve_members_params.rbs +7 -1
- data/sig/x_twitter_scraper/models/x/community_retrieve_search_params.rbs +34 -5
- data/sig/x_twitter_scraper/models/x/dm_retrieve_history_params.rbs +5 -1
- data/sig/x_twitter_scraper/models/x/dm_retrieve_history_response.rbs +13 -10
- data/sig/x_twitter_scraper/models/x/dm_send_params.rbs +1 -8
- data/sig/x_twitter_scraper/models/x/list_retrieve_followers_params.rbs +7 -1
- data/sig/x_twitter_scraper/models/x/list_retrieve_members_params.rbs +7 -1
- data/sig/x_twitter_scraper/models/x/list_retrieve_tweets_params.rbs +7 -0
- data/sig/x_twitter_scraper/models/x/media_download_params.rbs +18 -1
- data/sig/x_twitter_scraper/models/x/media_upload_params.rbs +4 -14
- data/sig/x_twitter_scraper/models/x/media_upload_response.rbs +10 -3
- data/sig/x_twitter_scraper/models/x/profile_update_avatar_params.rbs +4 -4
- data/sig/x_twitter_scraper/models/x/profile_update_banner_params.rbs +4 -4
- data/sig/x_twitter_scraper/models/x/tweet_author.rbs +8 -31
- data/sig/x_twitter_scraper/models/x/tweet_create_params.rbs +13 -11
- data/sig/x_twitter_scraper/models/x/tweet_create_response.rbs +30 -3
- data/sig/x_twitter_scraper/models/x/tweet_detail.rbs +99 -61
- data/sig/x_twitter_scraper/models/x/tweet_get_favoriters_params.rbs +7 -1
- data/sig/x_twitter_scraper/models/x/tweet_get_quotes_params.rbs +242 -1
- data/sig/x_twitter_scraper/models/x/tweet_get_replies_params.rbs +247 -1
- data/sig/x_twitter_scraper/models/x/tweet_get_retweeters_params.rbs +7 -1
- data/sig/x_twitter_scraper/models/x/tweet_get_thread_params.rbs +7 -1
- data/sig/x_twitter_scraper/models/x/tweet_search_params.rbs +277 -1
- data/sig/x_twitter_scraper/models/x/user_remove_follower_params.rbs +30 -0
- data/sig/x_twitter_scraper/models/x/user_remove_follower_response.rbs +15 -0
- data/sig/x_twitter_scraper/models/x/user_retrieve_batch_response.rbs +57 -0
- data/sig/x_twitter_scraper/models/x/user_retrieve_followers_params.rbs +19 -1
- data/sig/x_twitter_scraper/models/x/user_retrieve_followers_you_know_params.rbs +7 -1
- data/sig/x_twitter_scraper/models/x/user_retrieve_following_params.rbs +19 -1
- data/sig/x_twitter_scraper/models/x/user_retrieve_likes_params.rbs +245 -1
- data/sig/x_twitter_scraper/models/x/user_retrieve_media_params.rbs +245 -1
- data/sig/x_twitter_scraper/models/x/user_retrieve_mentions_params.rbs +247 -1
- data/sig/x_twitter_scraper/models/x/user_retrieve_replies_params.rbs +283 -0
- data/sig/x_twitter_scraper/models/x/user_retrieve_tweets_params.rbs +242 -1
- data/sig/x_twitter_scraper/models/x/user_retrieve_verified_followers_params.rbs +7 -1
- data/sig/x_twitter_scraper/models/x/write_action_retrieve_params.rbs +25 -0
- data/sig/x_twitter_scraper/models/x/write_action_retrieve_response.rbs +177 -0
- data/sig/x_twitter_scraper/models/x/x_account.rbs +41 -3
- data/sig/x_twitter_scraper/models/x/x_account_detail.rbs +26 -7
- data/sig/x_twitter_scraper/models/x_get_article_response.rbs +193 -6
- data/sig/x_twitter_scraper/models/x_get_trends_params.rbs +20 -3
- data/sig/x_twitter_scraper/models.rbs +21 -21
- data/sig/x_twitter_scraper/resources/credits.rbs +12 -1
- data/sig/x_twitter_scraper/resources/draws.rbs +2 -2
- data/sig/x_twitter_scraper/resources/events.rbs +1 -1
- data/sig/x_twitter_scraper/resources/extractions.rbs +61 -3
- data/sig/x_twitter_scraper/resources/guest_wallets.rbs +25 -0
- data/sig/x_twitter_scraper/resources/monitors/keywords.rbs +36 -0
- data/sig/x_twitter_scraper/resources/monitors.rbs +2 -0
- data/sig/x_twitter_scraper/resources/radar.rbs +3 -2
- data/sig/x_twitter_scraper/resources/subscribe.rbs +1 -0
- data/sig/x_twitter_scraper/resources/webhooks.rbs +5 -0
- data/sig/x_twitter_scraper/resources/x/account_connection_challenges.rbs +15 -0
- data/sig/x_twitter_scraper/resources/x/accounts.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 +4 -1
- data/sig/x_twitter_scraper/resources/x/communities.rbs +4 -1
- data/sig/x_twitter_scraper/resources/x/dm.rbs +1 -1
- data/sig/x_twitter_scraper/resources/x/lists.rbs +3 -0
- data/sig/x_twitter_scraper/resources/x/media.rbs +3 -2
- data/sig/x_twitter_scraper/resources/x/profile.rbs +2 -2
- data/sig/x_twitter_scraper/resources/x/tweets.rbs +88 -2
- data/sig/x_twitter_scraper/resources/x/users.rbs +151 -2
- data/sig/x_twitter_scraper/resources/x/write_actions.rbs +14 -0
- data/sig/x_twitter_scraper/resources/x.rbs +6 -0
- metadata +141 -84
- data/lib/x_twitter_scraper/models/api_key.rb +0 -47
- data/lib/x_twitter_scraper/models/api_key_create_params.rb +0 -20
- data/lib/x_twitter_scraper/models/api_key_create_response.rb +0 -40
- data/lib/x_twitter_scraper/models/api_key_list_params.rb +0 -14
- data/lib/x_twitter_scraper/models/api_key_list_response.rb +0 -16
- data/lib/x_twitter_scraper/models/api_key_revoke_response.rb +0 -16
- data/lib/x_twitter_scraper/models/integration.rb +0 -93
- data/lib/x_twitter_scraper/models/integration_create_params.rb +0 -58
- data/lib/x_twitter_scraper/models/integration_delete_params.rb +0 -20
- data/lib/x_twitter_scraper/models/integration_delete_response.rb +0 -16
- data/lib/x_twitter_scraper/models/integration_delivery.rb +0 -71
- data/lib/x_twitter_scraper/models/integration_list_deliveries_params.rb +0 -29
- data/lib/x_twitter_scraper/models/integration_list_deliveries_response.rb +0 -17
- data/lib/x_twitter_scraper/models/integration_list_response.rb +0 -16
- data/lib/x_twitter_scraper/models/integration_retrieve_params.rb +0 -20
- data/lib/x_twitter_scraper/models/integration_send_test_params.rb +0 -20
- data/lib/x_twitter_scraper/models/integration_send_test_response.rb +0 -16
- data/lib/x_twitter_scraper/models/integration_update_params.rb +0 -77
- data/lib/x_twitter_scraper/models/x/community_action_result.rb +0 -31
- data/lib/x_twitter_scraper/models/x/search_tweet.rb +0 -119
- data/lib/x_twitter_scraper/models/x/user_profile.rb +0 -80
- data/lib/x_twitter_scraper/resources/api_keys.rb +0 -77
- data/lib/x_twitter_scraper/resources/bot/platform_links.rb +0 -16
- data/lib/x_twitter_scraper/resources/bot.rb +0 -18
- data/lib/x_twitter_scraper/resources/integrations.rb +0 -182
- data/rbi/x_twitter_scraper/models/api_key.rbi +0 -69
- data/rbi/x_twitter_scraper/models/api_key_create_params.rbi +0 -41
- data/rbi/x_twitter_scraper/models/api_key_create_response.rbi +0 -56
- data/rbi/x_twitter_scraper/models/api_key_list_params.rbi +0 -32
- data/rbi/x_twitter_scraper/models/api_key_list_response.rbi +0 -30
- data/rbi/x_twitter_scraper/models/api_key_revoke_response.rbi +0 -26
- data/rbi/x_twitter_scraper/models/integration.rbi +0 -117
- data/rbi/x_twitter_scraper/models/integration_create_params.rbi +0 -95
- data/rbi/x_twitter_scraper/models/integration_delete_params.rbi +0 -38
- data/rbi/x_twitter_scraper/models/integration_delete_response.rbi +0 -26
- data/rbi/x_twitter_scraper/models/integration_delivery.rbi +0 -108
- data/rbi/x_twitter_scraper/models/integration_list_deliveries_response.rbi +0 -34
- data/rbi/x_twitter_scraper/models/integration_list_response.rbi +0 -34
- data/rbi/x_twitter_scraper/models/integration_send_test_params.rbi +0 -38
- data/rbi/x_twitter_scraper/models/integration_send_test_response.rbi +0 -26
- data/rbi/x_twitter_scraper/models/integration_update_params.rbi +0 -115
- data/rbi/x_twitter_scraper/models/x/community_action_result.rbi +0 -49
- data/rbi/x_twitter_scraper/models/x/search_tweet.rbi +0 -181
- data/rbi/x_twitter_scraper/models/x/user_profile.rbi +0 -125
- data/rbi/x_twitter_scraper/resources/api_keys.rbi +0 -46
- data/rbi/x_twitter_scraper/resources/bot/platform_links.rbi +0 -16
- data/rbi/x_twitter_scraper/resources/bot.rbi +0 -15
- data/rbi/x_twitter_scraper/resources/integrations.rbi +0 -133
- data/sig/x_twitter_scraper/models/api_key.rbs +0 -47
- data/sig/x_twitter_scraper/models/api_key_create_response.rbs +0 -40
- data/sig/x_twitter_scraper/models/api_key_list_response.rbs +0 -13
- data/sig/x_twitter_scraper/models/api_key_revoke_response.rbs +0 -13
- data/sig/x_twitter_scraper/models/integration.rbs +0 -78
- data/sig/x_twitter_scraper/models/integration_create_params.rbs +0 -51
- data/sig/x_twitter_scraper/models/integration_delete_params.rbs +0 -23
- data/sig/x_twitter_scraper/models/integration_delete_response.rbs +0 -13
- data/sig/x_twitter_scraper/models/integration_delivery.rbs +0 -75
- data/sig/x_twitter_scraper/models/integration_list_deliveries_response.rbs +0 -18
- data/sig/x_twitter_scraper/models/integration_list_params.rbs +0 -15
- data/sig/x_twitter_scraper/models/integration_list_response.rbs +0 -16
- data/sig/x_twitter_scraper/models/integration_retrieve_params.rbs +0 -23
- data/sig/x_twitter_scraper/models/integration_send_test_params.rbs +0 -23
- data/sig/x_twitter_scraper/models/integration_send_test_response.rbs +0 -13
- data/sig/x_twitter_scraper/models/integration_update_params.rbs +0 -77
- data/sig/x_twitter_scraper/models/x/community_action_result.rbs +0 -28
- data/sig/x_twitter_scraper/models/x/search_tweet.rbs +0 -121
- data/sig/x_twitter_scraper/models/x/user_profile.rbs +0 -88
- data/sig/x_twitter_scraper/resources/api_keys.rbs +0 -21
- data/sig/x_twitter_scraper/resources/bot/platform_links.rbs +0 -9
- data/sig/x_twitter_scraper/resources/bot.rbs +0 -9
- data/sig/x_twitter_scraper/resources/integrations.rbs +0 -52
|
@@ -2,11 +2,22 @@ module XTwitterScraper
|
|
|
2
2
|
module Models
|
|
3
3
|
module X
|
|
4
4
|
type account_create_response =
|
|
5
|
-
{
|
|
5
|
+
{
|
|
6
|
+
id: String,
|
|
7
|
+
created_at: Time,
|
|
8
|
+
health: XTwitterScraper::Models::X::AccountCreateResponse::health,
|
|
9
|
+
status: String,
|
|
10
|
+
x_user_id: String,
|
|
11
|
+
x_username: String
|
|
12
|
+
}
|
|
6
13
|
|
|
7
14
|
class AccountCreateResponse < XTwitterScraper::Internal::Type::BaseModel
|
|
8
15
|
attr_accessor id: String
|
|
9
16
|
|
|
17
|
+
attr_accessor created_at: Time
|
|
18
|
+
|
|
19
|
+
attr_accessor health: XTwitterScraper::Models::X::AccountCreateResponse::health
|
|
20
|
+
|
|
10
21
|
attr_accessor status: String
|
|
11
22
|
|
|
12
23
|
attr_accessor x_user_id: String
|
|
@@ -15,6 +26,8 @@ module XTwitterScraper
|
|
|
15
26
|
|
|
16
27
|
def initialize: (
|
|
17
28
|
id: String,
|
|
29
|
+
created_at: Time,
|
|
30
|
+
health: XTwitterScraper::Models::X::AccountCreateResponse::health,
|
|
18
31
|
status: String,
|
|
19
32
|
x_user_id: String,
|
|
20
33
|
x_username: String
|
|
@@ -22,10 +35,33 @@ module XTwitterScraper
|
|
|
22
35
|
|
|
23
36
|
def to_hash: -> {
|
|
24
37
|
id: String,
|
|
38
|
+
created_at: Time,
|
|
39
|
+
health: XTwitterScraper::Models::X::AccountCreateResponse::health,
|
|
25
40
|
status: String,
|
|
26
41
|
x_user_id: String,
|
|
27
42
|
x_username: String
|
|
28
43
|
}
|
|
44
|
+
|
|
45
|
+
type health =
|
|
46
|
+
:healthy
|
|
47
|
+
| :locked
|
|
48
|
+
| :needsReauth
|
|
49
|
+
| :recovering
|
|
50
|
+
| :suspended
|
|
51
|
+
| :temporaryIssue
|
|
52
|
+
|
|
53
|
+
module Health
|
|
54
|
+
extend XTwitterScraper::Internal::Type::Enum
|
|
55
|
+
|
|
56
|
+
HEALTHY: :healthy
|
|
57
|
+
LOCKED: :locked
|
|
58
|
+
NEEDS_REAUTH: :needsReauth
|
|
59
|
+
RECOVERING: :recovering
|
|
60
|
+
SUSPENDED: :suspended
|
|
61
|
+
TEMPORARY_ISSUE: :temporaryIssue
|
|
62
|
+
|
|
63
|
+
def self?.values: -> ::Array[XTwitterScraper::Models::X::AccountCreateResponse::health]
|
|
64
|
+
end
|
|
29
65
|
end
|
|
30
66
|
end
|
|
31
67
|
end
|
|
@@ -2,7 +2,7 @@ module XTwitterScraper
|
|
|
2
2
|
module Models
|
|
3
3
|
module X
|
|
4
4
|
type account_reauth_params =
|
|
5
|
-
{ id: String, password: String, totp_secret: String }
|
|
5
|
+
{ id: String, password: String, email: String, totp_secret: String }
|
|
6
6
|
& XTwitterScraper::Internal::Type::request_parameters
|
|
7
7
|
|
|
8
8
|
class AccountReauthParams < XTwitterScraper::Internal::Type::BaseModel
|
|
@@ -13,6 +13,10 @@ module XTwitterScraper
|
|
|
13
13
|
|
|
14
14
|
attr_accessor password: String
|
|
15
15
|
|
|
16
|
+
attr_reader email: String?
|
|
17
|
+
|
|
18
|
+
def email=: (String) -> String
|
|
19
|
+
|
|
16
20
|
attr_reader totp_secret: String?
|
|
17
21
|
|
|
18
22
|
def totp_secret=: (String) -> String
|
|
@@ -20,6 +24,7 @@ module XTwitterScraper
|
|
|
20
24
|
def initialize: (
|
|
21
25
|
id: String,
|
|
22
26
|
password: String,
|
|
27
|
+
?email: String,
|
|
23
28
|
?totp_secret: String,
|
|
24
29
|
?request_options: XTwitterScraper::request_opts
|
|
25
30
|
) -> void
|
|
@@ -27,6 +32,7 @@ module XTwitterScraper
|
|
|
27
32
|
def to_hash: -> {
|
|
28
33
|
id: String,
|
|
29
34
|
password: String,
|
|
35
|
+
email: String,
|
|
30
36
|
totp_secret: String,
|
|
31
37
|
request_options: XTwitterScraper::RequestOptions
|
|
32
38
|
}
|
|
@@ -2,18 +2,66 @@ module XTwitterScraper
|
|
|
2
2
|
module Models
|
|
3
3
|
module X
|
|
4
4
|
type account_reauth_response =
|
|
5
|
-
{
|
|
5
|
+
{
|
|
6
|
+
id: String,
|
|
7
|
+
created_at: Time,
|
|
8
|
+
health: XTwitterScraper::Models::X::AccountReauthResponse::health,
|
|
9
|
+
status: String,
|
|
10
|
+
x_user_id: String,
|
|
11
|
+
x_username: String
|
|
12
|
+
}
|
|
6
13
|
|
|
7
14
|
class AccountReauthResponse < XTwitterScraper::Internal::Type::BaseModel
|
|
8
15
|
attr_accessor id: String
|
|
9
16
|
|
|
17
|
+
attr_accessor created_at: Time
|
|
18
|
+
|
|
19
|
+
attr_accessor health: XTwitterScraper::Models::X::AccountReauthResponse::health
|
|
20
|
+
|
|
10
21
|
attr_accessor status: String
|
|
11
22
|
|
|
23
|
+
attr_accessor x_user_id: String
|
|
24
|
+
|
|
12
25
|
attr_accessor x_username: String
|
|
13
26
|
|
|
14
|
-
def initialize: (
|
|
27
|
+
def initialize: (
|
|
28
|
+
id: String,
|
|
29
|
+
created_at: Time,
|
|
30
|
+
health: XTwitterScraper::Models::X::AccountReauthResponse::health,
|
|
31
|
+
status: String,
|
|
32
|
+
x_user_id: String,
|
|
33
|
+
x_username: String
|
|
34
|
+
) -> void
|
|
35
|
+
|
|
36
|
+
def to_hash: -> {
|
|
37
|
+
id: String,
|
|
38
|
+
created_at: Time,
|
|
39
|
+
health: XTwitterScraper::Models::X::AccountReauthResponse::health,
|
|
40
|
+
status: String,
|
|
41
|
+
x_user_id: String,
|
|
42
|
+
x_username: String
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
type health =
|
|
46
|
+
:healthy
|
|
47
|
+
| :locked
|
|
48
|
+
| :needsReauth
|
|
49
|
+
| :recovering
|
|
50
|
+
| :suspended
|
|
51
|
+
| :temporaryIssue
|
|
52
|
+
|
|
53
|
+
module Health
|
|
54
|
+
extend XTwitterScraper::Internal::Type::Enum
|
|
55
|
+
|
|
56
|
+
HEALTHY: :healthy
|
|
57
|
+
LOCKED: :locked
|
|
58
|
+
NEEDS_REAUTH: :needsReauth
|
|
59
|
+
RECOVERING: :recovering
|
|
60
|
+
SUSPENDED: :suspended
|
|
61
|
+
TEMPORARY_ISSUE: :temporaryIssue
|
|
15
62
|
|
|
16
|
-
|
|
63
|
+
def self?.values: -> ::Array[XTwitterScraper::Models::X::AccountReauthResponse::health]
|
|
64
|
+
end
|
|
17
65
|
end
|
|
18
66
|
end
|
|
19
67
|
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
module XTwitterScraper
|
|
2
|
+
module Models
|
|
3
|
+
module X
|
|
4
|
+
module Communities
|
|
5
|
+
type join_create_response = { success: true }
|
|
6
|
+
|
|
7
|
+
class JoinCreateResponse < XTwitterScraper::Internal::Type::BaseModel
|
|
8
|
+
attr_accessor success: true
|
|
9
|
+
|
|
10
|
+
def initialize: (?success: true) -> void
|
|
11
|
+
|
|
12
|
+
def to_hash: -> { success: true }
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
module XTwitterScraper
|
|
2
|
+
module Models
|
|
3
|
+
module X
|
|
4
|
+
module Communities
|
|
5
|
+
type join_delete_all_response = { success: true }
|
|
6
|
+
|
|
7
|
+
class JoinDeleteAllResponse < XTwitterScraper::Internal::Type::BaseModel
|
|
8
|
+
attr_accessor success: true
|
|
9
|
+
|
|
10
|
+
def initialize: (?success: true) -> void
|
|
11
|
+
|
|
12
|
+
def to_hash: -> { success: true }
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
|
16
|
+
end
|
|
17
|
+
end
|
|
@@ -3,7 +3,7 @@ module XTwitterScraper
|
|
|
3
3
|
module X
|
|
4
4
|
module Communities
|
|
5
5
|
type tweet_list_by_community_params =
|
|
6
|
-
{ id: String, cursor: String }
|
|
6
|
+
{ id: String, cursor: String, page_size: Integer }
|
|
7
7
|
& XTwitterScraper::Internal::Type::request_parameters
|
|
8
8
|
|
|
9
9
|
class TweetListByCommunityParams < XTwitterScraper::Internal::Type::BaseModel
|
|
@@ -16,15 +16,21 @@ module XTwitterScraper
|
|
|
16
16
|
|
|
17
17
|
def cursor=: (String) -> String
|
|
18
18
|
|
|
19
|
+
attr_reader page_size: Integer?
|
|
20
|
+
|
|
21
|
+
def page_size=: (Integer) -> Integer
|
|
22
|
+
|
|
19
23
|
def initialize: (
|
|
20
24
|
id: String,
|
|
21
25
|
?cursor: String,
|
|
26
|
+
?page_size: Integer,
|
|
22
27
|
?request_options: XTwitterScraper::request_opts
|
|
23
28
|
) -> void
|
|
24
29
|
|
|
25
30
|
def to_hash: -> {
|
|
26
31
|
id: String,
|
|
27
32
|
cursor: String,
|
|
33
|
+
page_size: Integer,
|
|
28
34
|
request_options: XTwitterScraper::RequestOptions
|
|
29
35
|
}
|
|
30
36
|
end
|
|
@@ -3,36 +3,65 @@ module XTwitterScraper
|
|
|
3
3
|
module X
|
|
4
4
|
module Communities
|
|
5
5
|
type tweet_list_params =
|
|
6
|
-
{
|
|
6
|
+
{
|
|
7
|
+
community_id: String,
|
|
8
|
+
q: String,
|
|
9
|
+
cursor: String,
|
|
10
|
+
page_size: Integer,
|
|
11
|
+
query_type: XTwitterScraper::Models::X::Communities::TweetListParams::query_type
|
|
12
|
+
}
|
|
7
13
|
& XTwitterScraper::Internal::Type::request_parameters
|
|
8
14
|
|
|
9
15
|
class TweetListParams < XTwitterScraper::Internal::Type::BaseModel
|
|
10
16
|
extend XTwitterScraper::Internal::Type::RequestParameters::Converter
|
|
11
17
|
include XTwitterScraper::Internal::Type::RequestParameters
|
|
12
18
|
|
|
19
|
+
attr_accessor community_id: String
|
|
20
|
+
|
|
13
21
|
attr_accessor q: String
|
|
14
22
|
|
|
15
23
|
attr_reader cursor: String?
|
|
16
24
|
|
|
17
25
|
def cursor=: (String) -> String
|
|
18
26
|
|
|
19
|
-
attr_reader
|
|
27
|
+
attr_reader page_size: Integer?
|
|
28
|
+
|
|
29
|
+
def page_size=: (Integer) -> Integer
|
|
20
30
|
|
|
21
|
-
|
|
31
|
+
attr_reader query_type: XTwitterScraper::Models::X::Communities::TweetListParams::query_type?
|
|
32
|
+
|
|
33
|
+
def query_type=: (
|
|
34
|
+
XTwitterScraper::Models::X::Communities::TweetListParams::query_type
|
|
35
|
+
) -> XTwitterScraper::Models::X::Communities::TweetListParams::query_type
|
|
22
36
|
|
|
23
37
|
def initialize: (
|
|
38
|
+
community_id: String,
|
|
24
39
|
q: String,
|
|
25
40
|
?cursor: String,
|
|
26
|
-
?
|
|
41
|
+
?page_size: Integer,
|
|
42
|
+
?query_type: XTwitterScraper::Models::X::Communities::TweetListParams::query_type,
|
|
27
43
|
?request_options: XTwitterScraper::request_opts
|
|
28
44
|
) -> void
|
|
29
45
|
|
|
30
46
|
def to_hash: -> {
|
|
47
|
+
community_id: String,
|
|
31
48
|
q: String,
|
|
32
49
|
cursor: String,
|
|
33
|
-
|
|
50
|
+
page_size: Integer,
|
|
51
|
+
query_type: XTwitterScraper::Models::X::Communities::TweetListParams::query_type,
|
|
34
52
|
request_options: XTwitterScraper::RequestOptions
|
|
35
53
|
}
|
|
54
|
+
|
|
55
|
+
type query_type = :Latest | :Top
|
|
56
|
+
|
|
57
|
+
module QueryType
|
|
58
|
+
extend XTwitterScraper::Internal::Type::Enum
|
|
59
|
+
|
|
60
|
+
LATEST: :Latest
|
|
61
|
+
TOP: :Top
|
|
62
|
+
|
|
63
|
+
def self?.values: -> ::Array[XTwitterScraper::Models::X::Communities::TweetListParams::query_type]
|
|
64
|
+
end
|
|
36
65
|
end
|
|
37
66
|
end
|
|
38
67
|
end
|
|
@@ -22,12 +22,17 @@ module XTwitterScraper
|
|
|
22
22
|
id: String,
|
|
23
23
|
banner_url: String,
|
|
24
24
|
created_at: String,
|
|
25
|
+
creator: XTwitterScraper::Models::X::CommunityRetrieveInfoResponse::Community::Creator,
|
|
25
26
|
description: String,
|
|
27
|
+
invites_policy: String,
|
|
28
|
+
is_member: bool,
|
|
29
|
+
is_nsfw: bool,
|
|
26
30
|
join_policy: String,
|
|
27
31
|
member_count: Integer,
|
|
28
32
|
moderator_count: Integer,
|
|
29
33
|
name: String,
|
|
30
34
|
primary_topic: XTwitterScraper::Models::X::CommunityRetrieveInfoResponse::Community::PrimaryTopic,
|
|
35
|
+
role: String,
|
|
31
36
|
rules: ::Array[XTwitterScraper::Models::X::CommunityRetrieveInfoResponse::Community::Rule]
|
|
32
37
|
}
|
|
33
38
|
|
|
@@ -42,10 +47,28 @@ module XTwitterScraper
|
|
|
42
47
|
|
|
43
48
|
def created_at=: (String) -> String
|
|
44
49
|
|
|
50
|
+
attr_reader creator: XTwitterScraper::Models::X::CommunityRetrieveInfoResponse::Community::Creator?
|
|
51
|
+
|
|
52
|
+
def creator=: (
|
|
53
|
+
XTwitterScraper::Models::X::CommunityRetrieveInfoResponse::Community::Creator
|
|
54
|
+
) -> XTwitterScraper::Models::X::CommunityRetrieveInfoResponse::Community::Creator
|
|
55
|
+
|
|
45
56
|
attr_reader description: String?
|
|
46
57
|
|
|
47
58
|
def description=: (String) -> String
|
|
48
59
|
|
|
60
|
+
attr_reader invites_policy: String?
|
|
61
|
+
|
|
62
|
+
def invites_policy=: (String) -> String
|
|
63
|
+
|
|
64
|
+
attr_reader is_member: bool?
|
|
65
|
+
|
|
66
|
+
def is_member=: (bool) -> bool
|
|
67
|
+
|
|
68
|
+
attr_reader is_nsfw: bool?
|
|
69
|
+
|
|
70
|
+
def is_nsfw=: (bool) -> bool
|
|
71
|
+
|
|
49
72
|
attr_reader join_policy: String?
|
|
50
73
|
|
|
51
74
|
def join_policy=: (String) -> String
|
|
@@ -68,6 +91,10 @@ module XTwitterScraper
|
|
|
68
91
|
XTwitterScraper::Models::X::CommunityRetrieveInfoResponse::Community::PrimaryTopic
|
|
69
92
|
) -> XTwitterScraper::Models::X::CommunityRetrieveInfoResponse::Community::PrimaryTopic
|
|
70
93
|
|
|
94
|
+
attr_reader role: String?
|
|
95
|
+
|
|
96
|
+
def role=: (String) -> String
|
|
97
|
+
|
|
71
98
|
attr_reader rules: ::Array[XTwitterScraper::Models::X::CommunityRetrieveInfoResponse::Community::Rule]?
|
|
72
99
|
|
|
73
100
|
def rules=: (
|
|
@@ -78,12 +105,17 @@ module XTwitterScraper
|
|
|
78
105
|
id: String,
|
|
79
106
|
?banner_url: String,
|
|
80
107
|
?created_at: String,
|
|
108
|
+
?creator: XTwitterScraper::Models::X::CommunityRetrieveInfoResponse::Community::Creator,
|
|
81
109
|
?description: String,
|
|
110
|
+
?invites_policy: String,
|
|
111
|
+
?is_member: bool,
|
|
112
|
+
?is_nsfw: bool,
|
|
82
113
|
?join_policy: String,
|
|
83
114
|
?member_count: Integer,
|
|
84
115
|
?moderator_count: Integer,
|
|
85
116
|
?name: String,
|
|
86
117
|
?primary_topic: XTwitterScraper::Models::X::CommunityRetrieveInfoResponse::Community::PrimaryTopic,
|
|
118
|
+
?role: String,
|
|
87
119
|
?rules: ::Array[XTwitterScraper::Models::X::CommunityRetrieveInfoResponse::Community::Rule]
|
|
88
120
|
) -> void
|
|
89
121
|
|
|
@@ -91,15 +123,49 @@ module XTwitterScraper
|
|
|
91
123
|
id: String,
|
|
92
124
|
banner_url: String,
|
|
93
125
|
created_at: String,
|
|
126
|
+
creator: XTwitterScraper::Models::X::CommunityRetrieveInfoResponse::Community::Creator,
|
|
94
127
|
description: String,
|
|
128
|
+
invites_policy: String,
|
|
129
|
+
is_member: bool,
|
|
130
|
+
is_nsfw: bool,
|
|
95
131
|
join_policy: String,
|
|
96
132
|
member_count: Integer,
|
|
97
133
|
moderator_count: Integer,
|
|
98
134
|
name: String,
|
|
99
135
|
primary_topic: XTwitterScraper::Models::X::CommunityRetrieveInfoResponse::Community::PrimaryTopic,
|
|
136
|
+
role: String,
|
|
100
137
|
rules: ::Array[XTwitterScraper::Models::X::CommunityRetrieveInfoResponse::Community::Rule]
|
|
101
138
|
}
|
|
102
139
|
|
|
140
|
+
type creator =
|
|
141
|
+
{ id: String, username: String, verified: bool, name: String }
|
|
142
|
+
|
|
143
|
+
class Creator < XTwitterScraper::Internal::Type::BaseModel
|
|
144
|
+
attr_accessor id: String
|
|
145
|
+
|
|
146
|
+
attr_accessor username: String
|
|
147
|
+
|
|
148
|
+
attr_accessor verified: bool
|
|
149
|
+
|
|
150
|
+
attr_reader name: String?
|
|
151
|
+
|
|
152
|
+
def name=: (String) -> String
|
|
153
|
+
|
|
154
|
+
def initialize: (
|
|
155
|
+
id: String,
|
|
156
|
+
username: String,
|
|
157
|
+
verified: bool,
|
|
158
|
+
?name: String
|
|
159
|
+
) -> void
|
|
160
|
+
|
|
161
|
+
def to_hash: -> {
|
|
162
|
+
id: String,
|
|
163
|
+
username: String,
|
|
164
|
+
verified: bool,
|
|
165
|
+
name: String
|
|
166
|
+
}
|
|
167
|
+
end
|
|
168
|
+
|
|
103
169
|
type primary_topic = { id: String, name: String }
|
|
104
170
|
|
|
105
171
|
class PrimaryTopic < XTwitterScraper::Internal::Type::BaseModel
|
|
@@ -2,7 +2,7 @@ module XTwitterScraper
|
|
|
2
2
|
module Models
|
|
3
3
|
module X
|
|
4
4
|
type community_retrieve_members_params =
|
|
5
|
-
{ id: String, cursor: String }
|
|
5
|
+
{ id: String, cursor: String, page_size: Integer }
|
|
6
6
|
& XTwitterScraper::Internal::Type::request_parameters
|
|
7
7
|
|
|
8
8
|
class CommunityRetrieveMembersParams < XTwitterScraper::Internal::Type::BaseModel
|
|
@@ -15,15 +15,21 @@ module XTwitterScraper
|
|
|
15
15
|
|
|
16
16
|
def cursor=: (String) -> String
|
|
17
17
|
|
|
18
|
+
attr_reader page_size: Integer?
|
|
19
|
+
|
|
20
|
+
def page_size=: (Integer) -> Integer
|
|
21
|
+
|
|
18
22
|
def initialize: (
|
|
19
23
|
id: String,
|
|
20
24
|
?cursor: String,
|
|
25
|
+
?page_size: Integer,
|
|
21
26
|
?request_options: XTwitterScraper::request_opts
|
|
22
27
|
) -> void
|
|
23
28
|
|
|
24
29
|
def to_hash: -> {
|
|
25
30
|
id: String,
|
|
26
31
|
cursor: String,
|
|
32
|
+
page_size: Integer,
|
|
27
33
|
request_options: XTwitterScraper::RequestOptions
|
|
28
34
|
}
|
|
29
35
|
end
|
|
@@ -2,36 +2,65 @@ module XTwitterScraper
|
|
|
2
2
|
module Models
|
|
3
3
|
module X
|
|
4
4
|
type community_retrieve_search_params =
|
|
5
|
-
{
|
|
5
|
+
{
|
|
6
|
+
community_id: String,
|
|
7
|
+
q: String,
|
|
8
|
+
cursor: String,
|
|
9
|
+
page_size: Integer,
|
|
10
|
+
query_type: XTwitterScraper::Models::X::CommunityRetrieveSearchParams::query_type
|
|
11
|
+
}
|
|
6
12
|
& XTwitterScraper::Internal::Type::request_parameters
|
|
7
13
|
|
|
8
14
|
class CommunityRetrieveSearchParams < XTwitterScraper::Internal::Type::BaseModel
|
|
9
15
|
extend XTwitterScraper::Internal::Type::RequestParameters::Converter
|
|
10
16
|
include XTwitterScraper::Internal::Type::RequestParameters
|
|
11
17
|
|
|
18
|
+
attr_accessor community_id: String
|
|
19
|
+
|
|
12
20
|
attr_accessor q: String
|
|
13
21
|
|
|
14
22
|
attr_reader cursor: String?
|
|
15
23
|
|
|
16
24
|
def cursor=: (String) -> String
|
|
17
25
|
|
|
18
|
-
attr_reader
|
|
26
|
+
attr_reader page_size: Integer?
|
|
27
|
+
|
|
28
|
+
def page_size=: (Integer) -> Integer
|
|
19
29
|
|
|
20
|
-
|
|
30
|
+
attr_reader query_type: XTwitterScraper::Models::X::CommunityRetrieveSearchParams::query_type?
|
|
31
|
+
|
|
32
|
+
def query_type=: (
|
|
33
|
+
XTwitterScraper::Models::X::CommunityRetrieveSearchParams::query_type
|
|
34
|
+
) -> XTwitterScraper::Models::X::CommunityRetrieveSearchParams::query_type
|
|
21
35
|
|
|
22
36
|
def initialize: (
|
|
37
|
+
community_id: String,
|
|
23
38
|
q: String,
|
|
24
39
|
?cursor: String,
|
|
25
|
-
?
|
|
40
|
+
?page_size: Integer,
|
|
41
|
+
?query_type: XTwitterScraper::Models::X::CommunityRetrieveSearchParams::query_type,
|
|
26
42
|
?request_options: XTwitterScraper::request_opts
|
|
27
43
|
) -> void
|
|
28
44
|
|
|
29
45
|
def to_hash: -> {
|
|
46
|
+
community_id: String,
|
|
30
47
|
q: String,
|
|
31
48
|
cursor: String,
|
|
32
|
-
|
|
49
|
+
page_size: Integer,
|
|
50
|
+
query_type: XTwitterScraper::Models::X::CommunityRetrieveSearchParams::query_type,
|
|
33
51
|
request_options: XTwitterScraper::RequestOptions
|
|
34
52
|
}
|
|
53
|
+
|
|
54
|
+
type query_type = :Latest | :Top
|
|
55
|
+
|
|
56
|
+
module QueryType
|
|
57
|
+
extend XTwitterScraper::Internal::Type::Enum
|
|
58
|
+
|
|
59
|
+
LATEST: :Latest
|
|
60
|
+
TOP: :Top
|
|
61
|
+
|
|
62
|
+
def self?.values: -> ::Array[XTwitterScraper::Models::X::CommunityRetrieveSearchParams::query_type]
|
|
63
|
+
end
|
|
35
64
|
end
|
|
36
65
|
end
|
|
37
66
|
end
|
|
@@ -2,7 +2,7 @@ module XTwitterScraper
|
|
|
2
2
|
module Models
|
|
3
3
|
module X
|
|
4
4
|
type dm_retrieve_history_params =
|
|
5
|
-
{ user_id: String, cursor: String, max_id: String }
|
|
5
|
+
{ user_id: String, account: String, cursor: String, max_id: String }
|
|
6
6
|
& XTwitterScraper::Internal::Type::request_parameters
|
|
7
7
|
|
|
8
8
|
class DmRetrieveHistoryParams < XTwitterScraper::Internal::Type::BaseModel
|
|
@@ -11,6 +11,8 @@ module XTwitterScraper
|
|
|
11
11
|
|
|
12
12
|
attr_accessor user_id: String
|
|
13
13
|
|
|
14
|
+
attr_accessor account: String
|
|
15
|
+
|
|
14
16
|
attr_reader cursor: String?
|
|
15
17
|
|
|
16
18
|
def cursor=: (String) -> String
|
|
@@ -21,6 +23,7 @@ module XTwitterScraper
|
|
|
21
23
|
|
|
22
24
|
def initialize: (
|
|
23
25
|
user_id: String,
|
|
26
|
+
account: String,
|
|
24
27
|
?cursor: String,
|
|
25
28
|
?max_id: String,
|
|
26
29
|
?request_options: XTwitterScraper::request_opts
|
|
@@ -28,6 +31,7 @@ module XTwitterScraper
|
|
|
28
31
|
|
|
29
32
|
def to_hash: -> {
|
|
30
33
|
user_id: String,
|
|
34
|
+
account: String,
|
|
31
35
|
cursor: String,
|
|
32
36
|
max_id: String,
|
|
33
37
|
request_options: XTwitterScraper::RequestOptions
|
|
@@ -30,26 +30,27 @@ module XTwitterScraper
|
|
|
30
30
|
type message =
|
|
31
31
|
{
|
|
32
32
|
id: String,
|
|
33
|
-
created_at: String,
|
|
34
33
|
receiver_id: String,
|
|
35
34
|
sender_id: String,
|
|
35
|
+
created_at: String,
|
|
36
|
+
media_url: String,
|
|
36
37
|
text: String
|
|
37
38
|
}
|
|
38
39
|
|
|
39
40
|
class Message < XTwitterScraper::Internal::Type::BaseModel
|
|
40
41
|
attr_accessor id: String
|
|
41
42
|
|
|
42
|
-
|
|
43
|
+
attr_accessor receiver_id: String
|
|
43
44
|
|
|
44
|
-
|
|
45
|
+
attr_accessor sender_id: String
|
|
45
46
|
|
|
46
|
-
attr_reader
|
|
47
|
+
attr_reader created_at: String?
|
|
47
48
|
|
|
48
|
-
def
|
|
49
|
+
def created_at=: (String) -> String
|
|
49
50
|
|
|
50
|
-
attr_reader
|
|
51
|
+
attr_reader media_url: String?
|
|
51
52
|
|
|
52
|
-
def
|
|
53
|
+
def media_url=: (String) -> String
|
|
53
54
|
|
|
54
55
|
attr_reader text: String?
|
|
55
56
|
|
|
@@ -57,17 +58,19 @@ module XTwitterScraper
|
|
|
57
58
|
|
|
58
59
|
def initialize: (
|
|
59
60
|
id: String,
|
|
61
|
+
receiver_id: String,
|
|
62
|
+
sender_id: String,
|
|
60
63
|
?created_at: String,
|
|
61
|
-
?
|
|
62
|
-
?sender_id: String,
|
|
64
|
+
?media_url: String,
|
|
63
65
|
?text: String
|
|
64
66
|
) -> void
|
|
65
67
|
|
|
66
68
|
def to_hash: -> {
|
|
67
69
|
id: String,
|
|
68
|
-
created_at: String,
|
|
69
70
|
receiver_id: String,
|
|
70
71
|
sender_id: String,
|
|
72
|
+
created_at: String,
|
|
73
|
+
media_url: String,
|
|
71
74
|
text: String
|
|
72
75
|
}
|
|
73
76
|
end
|
|
@@ -6,8 +6,7 @@ module XTwitterScraper
|
|
|
6
6
|
user_id: String,
|
|
7
7
|
account: String,
|
|
8
8
|
text: String,
|
|
9
|
-
media_ids: ::Array[String]
|
|
10
|
-
reply_to_message_id: String
|
|
9
|
+
media_ids: ::Array[String]
|
|
11
10
|
}
|
|
12
11
|
& XTwitterScraper::Internal::Type::request_parameters
|
|
13
12
|
|
|
@@ -25,16 +24,11 @@ module XTwitterScraper
|
|
|
25
24
|
|
|
26
25
|
def media_ids=: (::Array[String]) -> ::Array[String]
|
|
27
26
|
|
|
28
|
-
attr_reader reply_to_message_id: String?
|
|
29
|
-
|
|
30
|
-
def reply_to_message_id=: (String) -> String
|
|
31
|
-
|
|
32
27
|
def initialize: (
|
|
33
28
|
user_id: String,
|
|
34
29
|
account: String,
|
|
35
30
|
text: String,
|
|
36
31
|
?media_ids: ::Array[String],
|
|
37
|
-
?reply_to_message_id: String,
|
|
38
32
|
?request_options: XTwitterScraper::request_opts
|
|
39
33
|
) -> void
|
|
40
34
|
|
|
@@ -43,7 +37,6 @@ module XTwitterScraper
|
|
|
43
37
|
account: String,
|
|
44
38
|
text: String,
|
|
45
39
|
media_ids: ::Array[String],
|
|
46
|
-
reply_to_message_id: String,
|
|
47
40
|
request_options: XTwitterScraper::RequestOptions
|
|
48
41
|
}
|
|
49
42
|
end
|