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
|
@@ -34,12 +34,35 @@ module XTwitterScraper
|
|
|
34
34
|
# @return [String, nil]
|
|
35
35
|
optional :created_at, String
|
|
36
36
|
|
|
37
|
+
# @!attribute creator
|
|
38
|
+
#
|
|
39
|
+
# @return [XTwitterScraper::Models::X::CommunityRetrieveInfoResponse::Community::Creator, nil]
|
|
40
|
+
optional :creator, -> { XTwitterScraper::Models::X::CommunityRetrieveInfoResponse::Community::Creator }
|
|
41
|
+
|
|
37
42
|
# @!attribute description
|
|
38
43
|
# About text for the community
|
|
39
44
|
#
|
|
40
45
|
# @return [String, nil]
|
|
41
46
|
optional :description, String
|
|
42
47
|
|
|
48
|
+
# @!attribute invites_policy
|
|
49
|
+
# Invitation policy
|
|
50
|
+
#
|
|
51
|
+
# @return [String, nil]
|
|
52
|
+
optional :invites_policy, String
|
|
53
|
+
|
|
54
|
+
# @!attribute is_member
|
|
55
|
+
# Whether the authenticated viewer is a member
|
|
56
|
+
#
|
|
57
|
+
# @return [Boolean, nil]
|
|
58
|
+
optional :is_member, XTwitterScraper::Internal::Type::Boolean
|
|
59
|
+
|
|
60
|
+
# @!attribute is_nsfw
|
|
61
|
+
# Whether the community is marked sensitive
|
|
62
|
+
#
|
|
63
|
+
# @return [Boolean, nil]
|
|
64
|
+
optional :is_nsfw, XTwitterScraper::Internal::Type::Boolean
|
|
65
|
+
|
|
43
66
|
# @!attribute join_policy
|
|
44
67
|
# Join policy (open or restricted)
|
|
45
68
|
#
|
|
@@ -71,6 +94,12 @@ module XTwitterScraper
|
|
|
71
94
|
optional :primary_topic,
|
|
72
95
|
-> { XTwitterScraper::Models::X::CommunityRetrieveInfoResponse::Community::PrimaryTopic }
|
|
73
96
|
|
|
97
|
+
# @!attribute role
|
|
98
|
+
# Authenticated viewer's community role
|
|
99
|
+
#
|
|
100
|
+
# @return [String, nil]
|
|
101
|
+
optional :role, String
|
|
102
|
+
|
|
74
103
|
# @!attribute rules
|
|
75
104
|
# Community rules
|
|
76
105
|
#
|
|
@@ -78,7 +107,7 @@ module XTwitterScraper
|
|
|
78
107
|
optional :rules,
|
|
79
108
|
-> { XTwitterScraper::Internal::Type::ArrayOf[XTwitterScraper::Models::X::CommunityRetrieveInfoResponse::Community::Rule] }
|
|
80
109
|
|
|
81
|
-
# @!method initialize(id:, banner_url: nil, created_at: nil, description: nil, join_policy: nil, member_count: nil, moderator_count: nil, name: nil, primary_topic: nil, rules: nil)
|
|
110
|
+
# @!method initialize(id:, banner_url: nil, created_at: nil, creator: nil, description: nil, invites_policy: nil, is_member: nil, is_nsfw: nil, join_policy: nil, member_count: nil, moderator_count: nil, name: nil, primary_topic: nil, role: nil, rules: nil)
|
|
82
111
|
# Community info object
|
|
83
112
|
#
|
|
84
113
|
# @param id [String] Unique community identifier
|
|
@@ -87,8 +116,16 @@ module XTwitterScraper
|
|
|
87
116
|
#
|
|
88
117
|
# @param created_at [String] Community creation timestamp
|
|
89
118
|
#
|
|
119
|
+
# @param creator [XTwitterScraper::Models::X::CommunityRetrieveInfoResponse::Community::Creator]
|
|
120
|
+
#
|
|
90
121
|
# @param description [String] About text for the community
|
|
91
122
|
#
|
|
123
|
+
# @param invites_policy [String] Invitation policy
|
|
124
|
+
#
|
|
125
|
+
# @param is_member [Boolean] Whether the authenticated viewer is a member
|
|
126
|
+
#
|
|
127
|
+
# @param is_nsfw [Boolean] Whether the community is marked sensitive
|
|
128
|
+
#
|
|
92
129
|
# @param join_policy [String] Join policy (open or restricted)
|
|
93
130
|
#
|
|
94
131
|
# @param member_count [Integer] Total member count
|
|
@@ -99,8 +136,39 @@ module XTwitterScraper
|
|
|
99
136
|
#
|
|
100
137
|
# @param primary_topic [XTwitterScraper::Models::X::CommunityRetrieveInfoResponse::Community::PrimaryTopic] Primary topic
|
|
101
138
|
#
|
|
139
|
+
# @param role [String] Authenticated viewer's community role
|
|
140
|
+
#
|
|
102
141
|
# @param rules [Array<XTwitterScraper::Models::X::CommunityRetrieveInfoResponse::Community::Rule>] Community rules
|
|
103
142
|
|
|
143
|
+
# @see XTwitterScraper::Models::X::CommunityRetrieveInfoResponse::Community#creator
|
|
144
|
+
class Creator < XTwitterScraper::Internal::Type::BaseModel
|
|
145
|
+
# @!attribute id
|
|
146
|
+
#
|
|
147
|
+
# @return [String]
|
|
148
|
+
required :id, String
|
|
149
|
+
|
|
150
|
+
# @!attribute username
|
|
151
|
+
#
|
|
152
|
+
# @return [String]
|
|
153
|
+
required :username, String
|
|
154
|
+
|
|
155
|
+
# @!attribute verified
|
|
156
|
+
#
|
|
157
|
+
# @return [Boolean]
|
|
158
|
+
required :verified, XTwitterScraper::Internal::Type::Boolean
|
|
159
|
+
|
|
160
|
+
# @!attribute name
|
|
161
|
+
#
|
|
162
|
+
# @return [String, nil]
|
|
163
|
+
optional :name, String
|
|
164
|
+
|
|
165
|
+
# @!method initialize(id:, username:, verified:, name: nil)
|
|
166
|
+
# @param id [String]
|
|
167
|
+
# @param username [String]
|
|
168
|
+
# @param verified [Boolean]
|
|
169
|
+
# @param name [String]
|
|
170
|
+
end
|
|
171
|
+
|
|
104
172
|
# @see XTwitterScraper::Models::X::CommunityRetrieveInfoResponse::Community#primary_topic
|
|
105
173
|
class PrimaryTopic < XTwitterScraper::Internal::Type::BaseModel
|
|
106
174
|
# @!attribute id
|
|
@@ -19,11 +19,24 @@ module XTwitterScraper
|
|
|
19
19
|
# @return [String, nil]
|
|
20
20
|
optional :cursor, String
|
|
21
21
|
|
|
22
|
-
# @!
|
|
22
|
+
# @!attribute page_size
|
|
23
|
+
# Items per page (20-200, default 20). This is an upper bound for paid
|
|
24
|
+
# authenticated calls: remaining credits can reduce the returned page size, and
|
|
25
|
+
# zero affordable results returns 402 insufficient_credits.
|
|
26
|
+
#
|
|
27
|
+
# @return [Integer, nil]
|
|
28
|
+
optional :page_size, Integer
|
|
29
|
+
|
|
30
|
+
# @!method initialize(id:, cursor: nil, page_size: nil, request_options: {})
|
|
31
|
+
# Some parameter documentations has been truncated, see
|
|
32
|
+
# {XTwitterScraper::Models::X::CommunityRetrieveMembersParams} for more details.
|
|
33
|
+
#
|
|
23
34
|
# @param id [String]
|
|
24
35
|
#
|
|
25
36
|
# @param cursor [String] Pagination cursor
|
|
26
37
|
#
|
|
38
|
+
# @param page_size [Integer] Items per page (20-200, default 20). This is an upper bound for paid authenticat
|
|
39
|
+
#
|
|
27
40
|
# @param request_options [XTwitterScraper::RequestOptions, Hash{Symbol=>Object}]
|
|
28
41
|
end
|
|
29
42
|
end
|
|
@@ -8,6 +8,12 @@ module XTwitterScraper
|
|
|
8
8
|
extend XTwitterScraper::Internal::Type::RequestParameters::Converter
|
|
9
9
|
include XTwitterScraper::Internal::Type::RequestParameters
|
|
10
10
|
|
|
11
|
+
# @!attribute community_id
|
|
12
|
+
# Numeric ID of the community whose posts to search
|
|
13
|
+
#
|
|
14
|
+
# @return [String]
|
|
15
|
+
required :community_id, String
|
|
16
|
+
|
|
11
17
|
# @!attribute q
|
|
12
18
|
# Search query
|
|
13
19
|
#
|
|
@@ -20,20 +26,48 @@ module XTwitterScraper
|
|
|
20
26
|
# @return [String, nil]
|
|
21
27
|
optional :cursor, String
|
|
22
28
|
|
|
29
|
+
# @!attribute page_size
|
|
30
|
+
# Maximum items requested from this page (1-100, default 20). The response can
|
|
31
|
+
# contain fewer items because the source returned fewer, filters removed items, or
|
|
32
|
+
# remaining credits cover fewer results. Keep requesting next_cursor while
|
|
33
|
+
# has_next_page is true, even when a page is empty. The deprecated limit and count
|
|
34
|
+
# aliases remain accepted.
|
|
35
|
+
#
|
|
36
|
+
# @return [Integer, nil]
|
|
37
|
+
optional :page_size, Integer
|
|
38
|
+
|
|
23
39
|
# @!attribute query_type
|
|
24
40
|
# Sort order (Latest or Top)
|
|
25
41
|
#
|
|
26
|
-
# @return [
|
|
27
|
-
optional :query_type,
|
|
42
|
+
# @return [Symbol, XTwitterScraper::Models::X::CommunityRetrieveSearchParams::QueryType, nil]
|
|
43
|
+
optional :query_type, enum: -> { XTwitterScraper::X::CommunityRetrieveSearchParams::QueryType }
|
|
28
44
|
|
|
29
|
-
# @!method initialize(q:, cursor: nil, query_type: nil, request_options: {})
|
|
45
|
+
# @!method initialize(community_id:, q:, cursor: nil, page_size: nil, query_type: nil, request_options: {})
|
|
46
|
+
# Some parameter documentations has been truncated, see
|
|
47
|
+
# {XTwitterScraper::Models::X::CommunityRetrieveSearchParams} for more details.
|
|
48
|
+
#
|
|
49
|
+
# @param community_id [String] Numeric ID of the community whose posts to search
|
|
50
|
+
#
|
|
30
51
|
# @param q [String] Search query
|
|
31
52
|
#
|
|
32
53
|
# @param cursor [String] Pagination cursor for community search
|
|
33
54
|
#
|
|
34
|
-
# @param
|
|
55
|
+
# @param page_size [Integer] Maximum items requested from this page (1-100, default 20). The response can con
|
|
56
|
+
#
|
|
57
|
+
# @param query_type [Symbol, XTwitterScraper::Models::X::CommunityRetrieveSearchParams::QueryType] Sort order (Latest or Top)
|
|
35
58
|
#
|
|
36
59
|
# @param request_options [XTwitterScraper::RequestOptions, Hash{Symbol=>Object}]
|
|
60
|
+
|
|
61
|
+
# Sort order (Latest or Top)
|
|
62
|
+
module QueryType
|
|
63
|
+
extend XTwitterScraper::Internal::Type::Enum
|
|
64
|
+
|
|
65
|
+
LATEST = :Latest
|
|
66
|
+
TOP = :Top
|
|
67
|
+
|
|
68
|
+
# @!method self.values
|
|
69
|
+
# @return [Array<Symbol>]
|
|
70
|
+
end
|
|
37
71
|
end
|
|
38
72
|
end
|
|
39
73
|
end
|
|
@@ -13,6 +13,13 @@ module XTwitterScraper
|
|
|
13
13
|
# @return [String]
|
|
14
14
|
required :user_id, String
|
|
15
15
|
|
|
16
|
+
# @!attribute account
|
|
17
|
+
# X handle (without the `@` prefix) of the connected X account used to read the
|
|
18
|
+
# conversation. The account must be a participant in the conversation.
|
|
19
|
+
#
|
|
20
|
+
# @return [String]
|
|
21
|
+
required :account, String
|
|
22
|
+
|
|
16
23
|
# @!attribute cursor
|
|
17
24
|
# Pagination cursor for DM history
|
|
18
25
|
#
|
|
@@ -25,9 +32,14 @@ module XTwitterScraper
|
|
|
25
32
|
# @return [String, nil]
|
|
26
33
|
optional :max_id, String
|
|
27
34
|
|
|
28
|
-
# @!method initialize(user_id:, cursor: nil, max_id: nil, request_options: {})
|
|
35
|
+
# @!method initialize(user_id:, account:, cursor: nil, max_id: nil, request_options: {})
|
|
36
|
+
# Some parameter documentations has been truncated, see
|
|
37
|
+
# {XTwitterScraper::Models::X::DmRetrieveHistoryParams} for more details.
|
|
38
|
+
#
|
|
29
39
|
# @param user_id [String]
|
|
30
40
|
#
|
|
41
|
+
# @param account [String] X handle (without the `@` prefix) of the connected X account used to read the co
|
|
42
|
+
#
|
|
31
43
|
# @param cursor [String] Pagination cursor for DM history
|
|
32
44
|
#
|
|
33
45
|
# @param max_id [String] Legacy pagination cursor (backward compat)
|
|
@@ -32,31 +32,48 @@ module XTwitterScraper
|
|
|
32
32
|
# @return [String]
|
|
33
33
|
required :id, String
|
|
34
34
|
|
|
35
|
-
# @!attribute
|
|
35
|
+
# @!attribute receiver_id
|
|
36
36
|
#
|
|
37
|
-
# @return [String
|
|
38
|
-
|
|
37
|
+
# @return [String]
|
|
38
|
+
required :receiver_id, String, api_name: :receiverId
|
|
39
39
|
|
|
40
|
-
# @!attribute
|
|
40
|
+
# @!attribute sender_id
|
|
41
|
+
#
|
|
42
|
+
# @return [String]
|
|
43
|
+
required :sender_id, String, api_name: :senderId
|
|
44
|
+
|
|
45
|
+
# @!attribute created_at
|
|
41
46
|
#
|
|
42
47
|
# @return [String, nil]
|
|
43
|
-
optional :
|
|
48
|
+
optional :created_at, String, api_name: :createdAt
|
|
44
49
|
|
|
45
|
-
# @!attribute
|
|
50
|
+
# @!attribute media_url
|
|
51
|
+
# URL of attached media (image, GIF, or video). Omitted when the message has no
|
|
52
|
+
# media attachment.
|
|
46
53
|
#
|
|
47
54
|
# @return [String, nil]
|
|
48
|
-
optional :
|
|
55
|
+
optional :media_url, String, api_name: :mediaUrl
|
|
49
56
|
|
|
50
57
|
# @!attribute text
|
|
51
58
|
#
|
|
52
59
|
# @return [String, nil]
|
|
53
60
|
optional :text, String
|
|
54
61
|
|
|
55
|
-
# @!method initialize(id:,
|
|
62
|
+
# @!method initialize(id:, receiver_id:, sender_id:, created_at: nil, media_url: nil, text: nil)
|
|
63
|
+
# Some parameter documentations has been truncated, see
|
|
64
|
+
# {XTwitterScraper::Models::X::DmRetrieveHistoryResponse::Message} for more
|
|
65
|
+
# details.
|
|
66
|
+
#
|
|
56
67
|
# @param id [String]
|
|
57
|
-
#
|
|
68
|
+
#
|
|
58
69
|
# @param receiver_id [String]
|
|
70
|
+
#
|
|
59
71
|
# @param sender_id [String]
|
|
72
|
+
#
|
|
73
|
+
# @param created_at [String]
|
|
74
|
+
#
|
|
75
|
+
# @param media_url [String] URL of attached media (image, GIF, or video). Omitted when the message has no me
|
|
76
|
+
#
|
|
60
77
|
# @param text [String]
|
|
61
78
|
end
|
|
62
79
|
end
|
|
@@ -25,25 +25,19 @@ module XTwitterScraper
|
|
|
25
25
|
required :text, String
|
|
26
26
|
|
|
27
27
|
# @!attribute media_ids
|
|
28
|
+
# Optional array containing exactly 1 uploaded media ID.
|
|
28
29
|
#
|
|
29
30
|
# @return [Array<String>, nil]
|
|
30
31
|
optional :media_ids, XTwitterScraper::Internal::Type::ArrayOf[String]
|
|
31
32
|
|
|
32
|
-
# @!
|
|
33
|
-
#
|
|
34
|
-
# @return [String, nil]
|
|
35
|
-
optional :reply_to_message_id, String
|
|
36
|
-
|
|
37
|
-
# @!method initialize(user_id:, account:, text:, media_ids: nil, reply_to_message_id: nil, request_options: {})
|
|
33
|
+
# @!method initialize(user_id:, account:, text:, media_ids: nil, request_options: {})
|
|
38
34
|
# @param user_id [String]
|
|
39
35
|
#
|
|
40
36
|
# @param account [String] X account (@username or ID) sending the DM
|
|
41
37
|
#
|
|
42
38
|
# @param text [String]
|
|
43
39
|
#
|
|
44
|
-
# @param media_ids [Array<String>]
|
|
45
|
-
#
|
|
46
|
-
# @param reply_to_message_id [String]
|
|
40
|
+
# @param media_ids [Array<String>] Optional array containing exactly 1 uploaded media ID.
|
|
47
41
|
#
|
|
48
42
|
# @param request_options [XTwitterScraper::RequestOptions, Hash{Symbol=>Object}]
|
|
49
43
|
end
|
|
@@ -9,21 +9,21 @@ module XTwitterScraper
|
|
|
9
9
|
include XTwitterScraper::Internal::Type::RequestParameters
|
|
10
10
|
|
|
11
11
|
# @!attribute source
|
|
12
|
-
#
|
|
12
|
+
# Source username, @username, or X or Twitter profile URL
|
|
13
13
|
#
|
|
14
14
|
# @return [String]
|
|
15
15
|
required :source, String
|
|
16
16
|
|
|
17
17
|
# @!attribute target
|
|
18
|
-
# Target username
|
|
18
|
+
# Target username, @username, or X or Twitter profile URL
|
|
19
19
|
#
|
|
20
20
|
# @return [String]
|
|
21
21
|
required :target, String
|
|
22
22
|
|
|
23
23
|
# @!method initialize(source:, target:, request_options: {})
|
|
24
|
-
# @param source [String]
|
|
24
|
+
# @param source [String] Source username, @username, or X or Twitter profile URL
|
|
25
25
|
#
|
|
26
|
-
# @param target [String] Target username
|
|
26
|
+
# @param target [String] Target username, @username, or X or Twitter profile URL
|
|
27
27
|
#
|
|
28
28
|
# @param request_options [XTwitterScraper::RequestOptions, Hash{Symbol=>Object}]
|
|
29
29
|
end
|
|
@@ -19,11 +19,25 @@ module XTwitterScraper
|
|
|
19
19
|
# @return [String, nil]
|
|
20
20
|
optional :cursor, String
|
|
21
21
|
|
|
22
|
-
# @!
|
|
22
|
+
# @!attribute page_size
|
|
23
|
+
# Maximum user profiles requested from this page (20-200, default 200). The
|
|
24
|
+
# response can contain fewer profiles because the source returned fewer or
|
|
25
|
+
# remaining credits cover fewer results. Keep requesting next_cursor while
|
|
26
|
+
# has_next_page is true. The deprecated limit and count aliases remain accepted.
|
|
27
|
+
#
|
|
28
|
+
# @return [Integer, nil]
|
|
29
|
+
optional :page_size, Integer
|
|
30
|
+
|
|
31
|
+
# @!method initialize(id:, cursor: nil, page_size: nil, request_options: {})
|
|
32
|
+
# Some parameter documentations has been truncated, see
|
|
33
|
+
# {XTwitterScraper::Models::X::ListRetrieveFollowersParams} for more details.
|
|
34
|
+
#
|
|
23
35
|
# @param id [String]
|
|
24
36
|
#
|
|
25
37
|
# @param cursor [String] Pagination cursor for list followers
|
|
26
38
|
#
|
|
39
|
+
# @param page_size [Integer] Maximum user profiles requested from this page (20-200, default 200). The respon
|
|
40
|
+
#
|
|
27
41
|
# @param request_options [XTwitterScraper::RequestOptions, Hash{Symbol=>Object}]
|
|
28
42
|
end
|
|
29
43
|
end
|
|
@@ -19,11 +19,19 @@ module XTwitterScraper
|
|
|
19
19
|
# @return [String, nil]
|
|
20
20
|
optional :cursor, String
|
|
21
21
|
|
|
22
|
-
# @!
|
|
22
|
+
# @!attribute page_size
|
|
23
|
+
# Members per page (20-200, default 20)
|
|
24
|
+
#
|
|
25
|
+
# @return [Integer, nil]
|
|
26
|
+
optional :page_size, Integer
|
|
27
|
+
|
|
28
|
+
# @!method initialize(id:, cursor: nil, page_size: nil, request_options: {})
|
|
23
29
|
# @param id [String]
|
|
24
30
|
#
|
|
25
31
|
# @param cursor [String] Pagination cursor for list members
|
|
26
32
|
#
|
|
33
|
+
# @param page_size [Integer] Members per page (20-200, default 20)
|
|
34
|
+
#
|
|
27
35
|
# @param request_options [XTwitterScraper::RequestOptions, Hash{Symbol=>Object}]
|
|
28
36
|
end
|
|
29
37
|
end
|
|
@@ -25,6 +25,16 @@ module XTwitterScraper
|
|
|
25
25
|
# @return [Boolean, nil]
|
|
26
26
|
optional :include_replies, XTwitterScraper::Internal::Type::Boolean
|
|
27
27
|
|
|
28
|
+
# @!attribute page_size
|
|
29
|
+
# Maximum items requested from this page (1-100, default 20). The response can
|
|
30
|
+
# contain fewer items because the source returned fewer, filters removed items, or
|
|
31
|
+
# remaining credits cover fewer results. Keep requesting next_cursor while
|
|
32
|
+
# has_next_page is true, even when a page is empty. The deprecated limit and count
|
|
33
|
+
# aliases remain accepted.
|
|
34
|
+
#
|
|
35
|
+
# @return [Integer, nil]
|
|
36
|
+
optional :page_size, Integer
|
|
37
|
+
|
|
28
38
|
# @!attribute since_time
|
|
29
39
|
# Unix timestamp - filter after
|
|
30
40
|
#
|
|
@@ -37,13 +47,18 @@ module XTwitterScraper
|
|
|
37
47
|
# @return [String, nil]
|
|
38
48
|
optional :until_time, String
|
|
39
49
|
|
|
40
|
-
# @!method initialize(id:, cursor: nil, include_replies: nil, since_time: nil, until_time: nil, request_options: {})
|
|
50
|
+
# @!method initialize(id:, cursor: nil, include_replies: nil, page_size: nil, since_time: nil, until_time: nil, request_options: {})
|
|
51
|
+
# Some parameter documentations has been truncated, see
|
|
52
|
+
# {XTwitterScraper::Models::X::ListRetrieveTweetsParams} for more details.
|
|
53
|
+
#
|
|
41
54
|
# @param id [String]
|
|
42
55
|
#
|
|
43
56
|
# @param cursor [String] Pagination cursor for list tweets
|
|
44
57
|
#
|
|
45
58
|
# @param include_replies [Boolean] Include replies (default false)
|
|
46
59
|
#
|
|
60
|
+
# @param page_size [Integer] Maximum items requested from this page (1-100, default 20). The response can con
|
|
61
|
+
#
|
|
47
62
|
# @param since_time [String] Unix timestamp - filter after
|
|
48
63
|
#
|
|
49
64
|
# @param until_time [String] Unix timestamp - filter before
|
|
@@ -8,8 +8,14 @@ module XTwitterScraper
|
|
|
8
8
|
extend XTwitterScraper::Internal::Type::RequestParameters::Converter
|
|
9
9
|
include XTwitterScraper::Internal::Type::RequestParameters
|
|
10
10
|
|
|
11
|
+
# @!attribute tweet_id
|
|
12
|
+
# Numeric tweet ID alias for tweetInput
|
|
13
|
+
#
|
|
14
|
+
# @return [String, nil]
|
|
15
|
+
optional :tweet_id, String, api_name: :tweetId
|
|
16
|
+
|
|
11
17
|
# @!attribute tweet_ids
|
|
12
|
-
# Array of tweet URLs or IDs (bulk, max 50)
|
|
18
|
+
# Array of tweet URLs or IDs (bulk, max 50 string items)
|
|
13
19
|
#
|
|
14
20
|
# @return [Array<String>, nil]
|
|
15
21
|
optional :tweet_ids, XTwitterScraper::Internal::Type::ArrayOf[String], api_name: :tweetIds
|
|
@@ -20,11 +26,21 @@ module XTwitterScraper
|
|
|
20
26
|
# @return [String, nil]
|
|
21
27
|
optional :tweet_input, String, api_name: :tweetInput
|
|
22
28
|
|
|
23
|
-
# @!
|
|
24
|
-
#
|
|
29
|
+
# @!attribute tweet_url
|
|
30
|
+
# Tweet URL alias for tweetInput
|
|
31
|
+
#
|
|
32
|
+
# @return [String, nil]
|
|
33
|
+
optional :tweet_url, String, api_name: :tweetUrl
|
|
34
|
+
|
|
35
|
+
# @!method initialize(tweet_id: nil, tweet_ids: nil, tweet_input: nil, tweet_url: nil, request_options: {})
|
|
36
|
+
# @param tweet_id [String] Numeric tweet ID alias for tweetInput
|
|
37
|
+
#
|
|
38
|
+
# @param tweet_ids [Array<String>] Array of tweet URLs or IDs (bulk, max 50 string items)
|
|
25
39
|
#
|
|
26
40
|
# @param tweet_input [String] Tweet URL or ID (single tweet)
|
|
27
41
|
#
|
|
42
|
+
# @param tweet_url [String] Tweet URL alias for tweetInput
|
|
43
|
+
#
|
|
28
44
|
# @param request_options [XTwitterScraper::RequestOptions, Hash{Symbol=>Object}]
|
|
29
45
|
end
|
|
30
46
|
end
|
|
@@ -9,28 +9,21 @@ module XTwitterScraper
|
|
|
9
9
|
include XTwitterScraper::Internal::Type::RequestParameters
|
|
10
10
|
|
|
11
11
|
# @!attribute account
|
|
12
|
-
# X account (@username or ID) uploading media
|
|
12
|
+
# X account (@username or ID) uploading media from URL
|
|
13
13
|
#
|
|
14
14
|
# @return [String]
|
|
15
15
|
required :account, String
|
|
16
16
|
|
|
17
|
-
# @!attribute
|
|
18
|
-
#
|
|
17
|
+
# @!attribute url
|
|
18
|
+
# HTTPS URL to download and upload as media
|
|
19
19
|
#
|
|
20
|
-
# @return [
|
|
21
|
-
required :
|
|
22
|
-
|
|
23
|
-
# @!attribute is_long_video
|
|
24
|
-
#
|
|
25
|
-
# @return [Boolean, nil]
|
|
26
|
-
optional :is_long_video, XTwitterScraper::Internal::Type::Boolean
|
|
20
|
+
# @return [String]
|
|
21
|
+
required :url, String
|
|
27
22
|
|
|
28
|
-
# @!method initialize(account:,
|
|
29
|
-
# @param account [String] X account (@username or ID) uploading media
|
|
30
|
-
#
|
|
31
|
-
# @param file [Pathname, StringIO, IO, String, XTwitterScraper::FilePart] Media file to upload
|
|
23
|
+
# @!method initialize(account:, url:, request_options: {})
|
|
24
|
+
# @param account [String] X account (@username or ID) uploading media from URL
|
|
32
25
|
#
|
|
33
|
-
# @param
|
|
26
|
+
# @param url [String] HTTPS URL to download and upload as media
|
|
34
27
|
#
|
|
35
28
|
# @param request_options [XTwitterScraper::RequestOptions, Hash{Symbol=>Object}]
|
|
36
29
|
end
|
|
@@ -10,13 +10,22 @@ module XTwitterScraper
|
|
|
10
10
|
# @return [String]
|
|
11
11
|
required :media_id, String, api_name: :mediaId
|
|
12
12
|
|
|
13
|
+
# @!attribute media_url
|
|
14
|
+
# Public media URL for tweet `media` arrays.
|
|
15
|
+
#
|
|
16
|
+
# @return [String]
|
|
17
|
+
required :media_url, String, api_name: :mediaUrl
|
|
18
|
+
|
|
13
19
|
# @!attribute success
|
|
14
20
|
#
|
|
15
21
|
# @return [Boolean, true]
|
|
16
22
|
required :success, const: true
|
|
17
23
|
|
|
18
|
-
# @!method initialize(media_id:, success: true)
|
|
24
|
+
# @!method initialize(media_id:, media_url:, success: true)
|
|
19
25
|
# @param media_id [String]
|
|
26
|
+
#
|
|
27
|
+
# @param media_url [String] Public media URL for tweet `media` arrays.
|
|
28
|
+
#
|
|
20
29
|
# @param success [Boolean, true]
|
|
21
30
|
end
|
|
22
31
|
end
|
|
@@ -9,21 +9,21 @@ module XTwitterScraper
|
|
|
9
9
|
include XTwitterScraper::Internal::Type::RequestParameters
|
|
10
10
|
|
|
11
11
|
# @!attribute account
|
|
12
|
-
# X account (@username or ID)
|
|
12
|
+
# X account (@username or ID) receiving avatar from URL
|
|
13
13
|
#
|
|
14
14
|
# @return [String]
|
|
15
15
|
required :account, String
|
|
16
16
|
|
|
17
|
-
# @!attribute
|
|
18
|
-
#
|
|
17
|
+
# @!attribute url
|
|
18
|
+
# HTTPS URL to the avatar image to download
|
|
19
19
|
#
|
|
20
|
-
# @return [
|
|
21
|
-
required :
|
|
20
|
+
# @return [String]
|
|
21
|
+
required :url, String
|
|
22
22
|
|
|
23
|
-
# @!method initialize(account:,
|
|
24
|
-
# @param account [String] X account (@username or ID)
|
|
23
|
+
# @!method initialize(account:, url:, request_options: {})
|
|
24
|
+
# @param account [String] X account (@username or ID) receiving avatar from URL
|
|
25
25
|
#
|
|
26
|
-
# @param
|
|
26
|
+
# @param url [String] HTTPS URL to the avatar image to download
|
|
27
27
|
#
|
|
28
28
|
# @param request_options [XTwitterScraper::RequestOptions, Hash{Symbol=>Object}]
|
|
29
29
|
end
|
|
@@ -9,21 +9,21 @@ module XTwitterScraper
|
|
|
9
9
|
include XTwitterScraper::Internal::Type::RequestParameters
|
|
10
10
|
|
|
11
11
|
# @!attribute account
|
|
12
|
-
# X account (@username or ID)
|
|
12
|
+
# X account (@username or ID) receiving banner from URL
|
|
13
13
|
#
|
|
14
14
|
# @return [String]
|
|
15
15
|
required :account, String
|
|
16
16
|
|
|
17
|
-
# @!attribute
|
|
18
|
-
#
|
|
17
|
+
# @!attribute url
|
|
18
|
+
# HTTPS URL to the banner image to download
|
|
19
19
|
#
|
|
20
|
-
# @return [
|
|
21
|
-
required :
|
|
20
|
+
# @return [String]
|
|
21
|
+
required :url, String
|
|
22
22
|
|
|
23
|
-
# @!method initialize(account:,
|
|
24
|
-
# @param account [String] X account (@username or ID)
|
|
23
|
+
# @!method initialize(account:, url:, request_options: {})
|
|
24
|
+
# @param account [String] X account (@username or ID) receiving banner from URL
|
|
25
25
|
#
|
|
26
|
-
# @param
|
|
26
|
+
# @param url [String] HTTPS URL to the banner image to download
|
|
27
27
|
#
|
|
28
28
|
# @param request_options [XTwitterScraper::RequestOptions, Hash{Symbol=>Object}]
|
|
29
29
|
end
|
|
@@ -3,40 +3,23 @@
|
|
|
3
3
|
module XTwitterScraper
|
|
4
4
|
module Models
|
|
5
5
|
module X
|
|
6
|
-
class TweetAuthor < XTwitterScraper::
|
|
7
|
-
# @!attribute id
|
|
8
|
-
#
|
|
9
|
-
# @return [String]
|
|
10
|
-
required :id, String
|
|
11
|
-
|
|
6
|
+
class TweetAuthor < XTwitterScraper::Models::UserProfile
|
|
12
7
|
# @!attribute followers
|
|
13
8
|
#
|
|
14
9
|
# @return [Integer]
|
|
15
10
|
required :followers, Integer
|
|
16
11
|
|
|
17
|
-
# @!attribute username
|
|
18
|
-
#
|
|
19
|
-
# @return [String]
|
|
20
|
-
required :username, String
|
|
21
|
-
|
|
22
12
|
# @!attribute verified
|
|
23
13
|
#
|
|
24
14
|
# @return [Boolean]
|
|
25
15
|
required :verified, XTwitterScraper::Internal::Type::Boolean
|
|
26
16
|
|
|
27
|
-
# @!
|
|
28
|
-
#
|
|
29
|
-
#
|
|
30
|
-
optional :profile_picture, String, api_name: :profilePicture
|
|
31
|
-
|
|
32
|
-
# @!method initialize(id:, followers:, username:, verified:, profile_picture: nil)
|
|
33
|
-
# Author of a tweet with follower count and verification status.
|
|
17
|
+
# @!method initialize(followers:, verified:)
|
|
18
|
+
# Tweet author profile. The lookup route always includes follower count and
|
|
19
|
+
# verification state. Other profile fields appear when available.
|
|
34
20
|
#
|
|
35
|
-
# @param id [String]
|
|
36
21
|
# @param followers [Integer]
|
|
37
|
-
# @param username [String]
|
|
38
22
|
# @param verified [Boolean]
|
|
39
|
-
# @param profile_picture [String]
|
|
40
23
|
end
|
|
41
24
|
end
|
|
42
25
|
end
|