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
|
@@ -10,18 +10,24 @@ module XTwitterScraper
|
|
|
10
10
|
required :article, -> { XTwitterScraper::Models::XGetArticleResponse::Article }
|
|
11
11
|
|
|
12
12
|
# @!attribute author
|
|
13
|
-
#
|
|
13
|
+
# X Article author profile fields returned when available.
|
|
14
14
|
#
|
|
15
|
-
# @return [XTwitterScraper::Models::
|
|
16
|
-
optional :author, -> { XTwitterScraper::
|
|
15
|
+
# @return [XTwitterScraper::Models::XGetArticleResponse::Author, nil]
|
|
16
|
+
optional :author, -> { XTwitterScraper::Models::XGetArticleResponse::Author }
|
|
17
17
|
|
|
18
18
|
# @!method initialize(article:, author: nil)
|
|
19
19
|
# @param article [XTwitterScraper::Models::XGetArticleResponse::Article]
|
|
20
20
|
#
|
|
21
|
-
# @param author [XTwitterScraper::Models::
|
|
21
|
+
# @param author [XTwitterScraper::Models::XGetArticleResponse::Author] X Article author profile fields returned when available.
|
|
22
22
|
|
|
23
23
|
# @see XTwitterScraper::Models::XGetArticleResponse#article
|
|
24
24
|
class Article < XTwitterScraper::Internal::Type::BaseModel
|
|
25
|
+
# @!attribute body_text
|
|
26
|
+
# Plain text joined from all article blocks
|
|
27
|
+
#
|
|
28
|
+
# @return [String, nil]
|
|
29
|
+
optional :body_text, String, api_name: :bodyText
|
|
30
|
+
|
|
25
31
|
# @!attribute contents
|
|
26
32
|
#
|
|
27
33
|
# @return [Array<XTwitterScraper::Models::XGetArticleResponse::Article::Content>, nil]
|
|
@@ -68,15 +74,25 @@ module XTwitterScraper
|
|
|
68
74
|
# @return [Integer, nil]
|
|
69
75
|
optional :view_count, Integer, api_name: :viewCount
|
|
70
76
|
|
|
71
|
-
# @!method initialize(contents: nil, cover_image_url: nil, created_at: nil, like_count: nil, preview_text: nil, quote_count: nil, reply_count: nil, title: nil, view_count: nil)
|
|
77
|
+
# @!method initialize(body_text: nil, contents: nil, cover_image_url: nil, created_at: nil, like_count: nil, preview_text: nil, quote_count: nil, reply_count: nil, title: nil, view_count: nil)
|
|
78
|
+
# @param body_text [String] Plain text joined from all article blocks
|
|
79
|
+
#
|
|
72
80
|
# @param contents [Array<XTwitterScraper::Models::XGetArticleResponse::Article::Content>]
|
|
81
|
+
#
|
|
73
82
|
# @param cover_image_url [String]
|
|
83
|
+
#
|
|
74
84
|
# @param created_at [String]
|
|
85
|
+
#
|
|
75
86
|
# @param like_count [Integer]
|
|
87
|
+
#
|
|
76
88
|
# @param preview_text [String]
|
|
89
|
+
#
|
|
77
90
|
# @param quote_count [Integer]
|
|
91
|
+
#
|
|
78
92
|
# @param reply_count [Integer]
|
|
93
|
+
#
|
|
79
94
|
# @param title [String]
|
|
95
|
+
#
|
|
80
96
|
# @param view_count [Integer]
|
|
81
97
|
|
|
82
98
|
class Content < XTwitterScraper::Internal::Type::BaseModel
|
|
@@ -85,20 +101,35 @@ module XTwitterScraper
|
|
|
85
101
|
# @return [Integer, nil]
|
|
86
102
|
optional :height, Integer
|
|
87
103
|
|
|
104
|
+
# @!attribute inline_style_ranges
|
|
105
|
+
# Inline text formatting ranges
|
|
106
|
+
#
|
|
107
|
+
# @return [Array<XTwitterScraper::Models::XGetArticleResponse::Article::Content::InlineStyleRange>, nil]
|
|
108
|
+
optional :inline_style_ranges,
|
|
109
|
+
-> { XTwitterScraper::Internal::Type::ArrayOf[XTwitterScraper::Models::XGetArticleResponse::Article::Content::InlineStyleRange] },
|
|
110
|
+
api_name: :inlineStyleRanges
|
|
111
|
+
|
|
112
|
+
# @!attribute preview_url
|
|
113
|
+
# Preview image URL for media blocks
|
|
114
|
+
#
|
|
115
|
+
# @return [String, nil]
|
|
116
|
+
optional :preview_url, String, api_name: :previewUrl
|
|
117
|
+
|
|
88
118
|
# @!attribute text
|
|
89
119
|
#
|
|
90
120
|
# @return [String, nil]
|
|
91
121
|
optional :text, String
|
|
92
122
|
|
|
93
123
|
# @!attribute type
|
|
94
|
-
# Block type:
|
|
95
|
-
#
|
|
124
|
+
# Block type: paragraph, header-one, header-two, header-three, header-four,
|
|
125
|
+
# header-five, header-six, unordered-list-item, ordered-list-item, blockquote,
|
|
126
|
+
# code-block, media, divider
|
|
96
127
|
#
|
|
97
128
|
# @return [String, nil]
|
|
98
129
|
optional :type, String
|
|
99
130
|
|
|
100
131
|
# @!attribute url
|
|
101
|
-
# Media URL for
|
|
132
|
+
# Media URL for media blocks
|
|
102
133
|
#
|
|
103
134
|
# @return [String, nil]
|
|
104
135
|
optional :url, String
|
|
@@ -108,22 +139,169 @@ module XTwitterScraper
|
|
|
108
139
|
# @return [Integer, nil]
|
|
109
140
|
optional :width, Integer
|
|
110
141
|
|
|
111
|
-
# @!method initialize(height: nil, text: nil, type: nil, url: nil, width: nil)
|
|
142
|
+
# @!method initialize(height: nil, inline_style_ranges: nil, preview_url: nil, text: nil, type: nil, url: nil, width: nil)
|
|
112
143
|
# Some parameter documentations has been truncated, see
|
|
113
144
|
# {XTwitterScraper::Models::XGetArticleResponse::Article::Content} for more
|
|
114
145
|
# details.
|
|
115
146
|
#
|
|
116
147
|
# @param height [Integer]
|
|
117
148
|
#
|
|
149
|
+
# @param inline_style_ranges [Array<XTwitterScraper::Models::XGetArticleResponse::Article::Content::InlineStyleRange>] Inline text formatting ranges
|
|
150
|
+
#
|
|
151
|
+
# @param preview_url [String] Preview image URL for media blocks
|
|
152
|
+
#
|
|
118
153
|
# @param text [String]
|
|
119
154
|
#
|
|
120
|
-
# @param type [String] Block type:
|
|
155
|
+
# @param type [String] Block type: paragraph, header-one, header-two, header-three, header-four, header
|
|
121
156
|
#
|
|
122
|
-
# @param url [String] Media URL for
|
|
157
|
+
# @param url [String] Media URL for media blocks
|
|
123
158
|
#
|
|
124
159
|
# @param width [Integer]
|
|
160
|
+
|
|
161
|
+
class InlineStyleRange < XTwitterScraper::Internal::Type::BaseModel
|
|
162
|
+
# @!attribute length
|
|
163
|
+
#
|
|
164
|
+
# @return [Integer, nil]
|
|
165
|
+
optional :length, Integer
|
|
166
|
+
|
|
167
|
+
# @!attribute offset
|
|
168
|
+
#
|
|
169
|
+
# @return [Integer, nil]
|
|
170
|
+
optional :offset, Integer
|
|
171
|
+
|
|
172
|
+
# @!attribute style
|
|
173
|
+
#
|
|
174
|
+
# @return [String, nil]
|
|
175
|
+
optional :style, String
|
|
176
|
+
|
|
177
|
+
# @!method initialize(length: nil, offset: nil, style: nil)
|
|
178
|
+
# @param length [Integer]
|
|
179
|
+
# @param offset [Integer]
|
|
180
|
+
# @param style [String]
|
|
181
|
+
end
|
|
125
182
|
end
|
|
126
183
|
end
|
|
184
|
+
|
|
185
|
+
# @see XTwitterScraper::Models::XGetArticleResponse#author
|
|
186
|
+
class Author < XTwitterScraper::Internal::Type::BaseModel
|
|
187
|
+
# @!attribute id
|
|
188
|
+
#
|
|
189
|
+
# @return [String]
|
|
190
|
+
required :id, String
|
|
191
|
+
|
|
192
|
+
# @!attribute name
|
|
193
|
+
#
|
|
194
|
+
# @return [String]
|
|
195
|
+
required :name, String
|
|
196
|
+
|
|
197
|
+
# @!attribute username
|
|
198
|
+
#
|
|
199
|
+
# @return [String]
|
|
200
|
+
required :username, String
|
|
201
|
+
|
|
202
|
+
# @!attribute can_dm
|
|
203
|
+
#
|
|
204
|
+
# @return [Boolean, nil]
|
|
205
|
+
optional :can_dm, XTwitterScraper::Internal::Type::Boolean, api_name: :canDm
|
|
206
|
+
|
|
207
|
+
# @!attribute created_at
|
|
208
|
+
#
|
|
209
|
+
# @return [String, nil]
|
|
210
|
+
optional :created_at, String, api_name: :createdAt
|
|
211
|
+
|
|
212
|
+
# @!attribute description
|
|
213
|
+
#
|
|
214
|
+
# @return [String, nil]
|
|
215
|
+
optional :description, String
|
|
216
|
+
|
|
217
|
+
# @!attribute favourites_count
|
|
218
|
+
#
|
|
219
|
+
# @return [Integer, nil]
|
|
220
|
+
optional :favourites_count, Integer, api_name: :favouritesCount
|
|
221
|
+
|
|
222
|
+
# @!attribute followers_count
|
|
223
|
+
#
|
|
224
|
+
# @return [Integer, nil]
|
|
225
|
+
optional :followers_count, Integer, api_name: :followersCount
|
|
226
|
+
|
|
227
|
+
# @!attribute following_count
|
|
228
|
+
#
|
|
229
|
+
# @return [Integer, nil]
|
|
230
|
+
optional :following_count, Integer, api_name: :followingCount
|
|
231
|
+
|
|
232
|
+
# @!attribute is_blue_verified
|
|
233
|
+
#
|
|
234
|
+
# @return [Boolean, nil]
|
|
235
|
+
optional :is_blue_verified, XTwitterScraper::Internal::Type::Boolean, api_name: :isBlueVerified
|
|
236
|
+
|
|
237
|
+
# @!attribute is_translator
|
|
238
|
+
#
|
|
239
|
+
# @return [Boolean, nil]
|
|
240
|
+
optional :is_translator, XTwitterScraper::Internal::Type::Boolean, api_name: :isTranslator
|
|
241
|
+
|
|
242
|
+
# @!attribute is_verified
|
|
243
|
+
#
|
|
244
|
+
# @return [Boolean, nil]
|
|
245
|
+
optional :is_verified, XTwitterScraper::Internal::Type::Boolean, api_name: :isVerified
|
|
246
|
+
|
|
247
|
+
# @!attribute location
|
|
248
|
+
#
|
|
249
|
+
# @return [String, nil]
|
|
250
|
+
optional :location, String
|
|
251
|
+
|
|
252
|
+
# @!attribute media_count
|
|
253
|
+
#
|
|
254
|
+
# @return [Integer, nil]
|
|
255
|
+
optional :media_count, Integer, api_name: :mediaCount
|
|
256
|
+
|
|
257
|
+
# @!attribute profile_banner_url
|
|
258
|
+
#
|
|
259
|
+
# @return [String, nil]
|
|
260
|
+
optional :profile_banner_url, String, api_name: :profileBannerUrl
|
|
261
|
+
|
|
262
|
+
# @!attribute profile_picture
|
|
263
|
+
#
|
|
264
|
+
# @return [String, nil]
|
|
265
|
+
optional :profile_picture, String, api_name: :profilePicture
|
|
266
|
+
|
|
267
|
+
# @!attribute protected
|
|
268
|
+
#
|
|
269
|
+
# @return [Boolean, nil]
|
|
270
|
+
optional :protected, XTwitterScraper::Internal::Type::Boolean
|
|
271
|
+
|
|
272
|
+
# @!attribute statuses_count
|
|
273
|
+
#
|
|
274
|
+
# @return [Integer, nil]
|
|
275
|
+
optional :statuses_count, Integer, api_name: :statusesCount
|
|
276
|
+
|
|
277
|
+
# @!attribute url
|
|
278
|
+
#
|
|
279
|
+
# @return [String, nil]
|
|
280
|
+
optional :url, String
|
|
281
|
+
|
|
282
|
+
# @!method initialize(id:, name:, username:, can_dm: nil, created_at: nil, description: nil, favourites_count: nil, followers_count: nil, following_count: nil, is_blue_verified: nil, is_translator: nil, is_verified: nil, location: nil, media_count: nil, profile_banner_url: nil, profile_picture: nil, protected: nil, statuses_count: nil, url: nil)
|
|
283
|
+
# X Article author profile fields returned when available.
|
|
284
|
+
#
|
|
285
|
+
# @param id [String]
|
|
286
|
+
# @param name [String]
|
|
287
|
+
# @param username [String]
|
|
288
|
+
# @param can_dm [Boolean]
|
|
289
|
+
# @param created_at [String]
|
|
290
|
+
# @param description [String]
|
|
291
|
+
# @param favourites_count [Integer]
|
|
292
|
+
# @param followers_count [Integer]
|
|
293
|
+
# @param following_count [Integer]
|
|
294
|
+
# @param is_blue_verified [Boolean]
|
|
295
|
+
# @param is_translator [Boolean]
|
|
296
|
+
# @param is_verified [Boolean]
|
|
297
|
+
# @param location [String]
|
|
298
|
+
# @param media_count [Integer]
|
|
299
|
+
# @param profile_banner_url [String]
|
|
300
|
+
# @param profile_picture [String]
|
|
301
|
+
# @param protected [Boolean]
|
|
302
|
+
# @param statuses_count [Integer]
|
|
303
|
+
# @param url [String]
|
|
304
|
+
end
|
|
127
305
|
end
|
|
128
306
|
end
|
|
129
307
|
end
|
|
@@ -14,7 +14,7 @@ module XTwitterScraper
|
|
|
14
14
|
optional :cursor, String
|
|
15
15
|
|
|
16
16
|
# @!attribute seen_tweet_ids
|
|
17
|
-
# Comma-separated tweet IDs to exclude from results
|
|
17
|
+
# Comma-separated tweet IDs to exclude from results. Empty entries are ignored.
|
|
18
18
|
#
|
|
19
19
|
# @return [String, nil]
|
|
20
20
|
optional :seen_tweet_ids, String
|
|
@@ -22,7 +22,7 @@ module XTwitterScraper
|
|
|
22
22
|
# @!method initialize(cursor: nil, seen_tweet_ids: nil, request_options: {})
|
|
23
23
|
# @param cursor [String] Pagination cursor for timeline
|
|
24
24
|
#
|
|
25
|
-
# @param seen_tweet_ids [String] Comma-separated tweet IDs to exclude from results
|
|
25
|
+
# @param seen_tweet_ids [String] Comma-separated tweet IDs to exclude from results. Empty entries are ignored.
|
|
26
26
|
#
|
|
27
27
|
# @param request_options [XTwitterScraper::RequestOptions, Hash{Symbol=>Object}]
|
|
28
28
|
end
|
|
@@ -14,7 +14,7 @@ module XTwitterScraper
|
|
|
14
14
|
optional :cursor, String
|
|
15
15
|
|
|
16
16
|
# @!attribute type
|
|
17
|
-
# Notification type filter
|
|
17
|
+
# Notification type filter. Unrecognized values fall back to All.
|
|
18
18
|
#
|
|
19
19
|
# @return [Symbol, XTwitterScraper::Models::XGetNotificationsParams::Type, nil]
|
|
20
20
|
optional :type, enum: -> { XTwitterScraper::XGetNotificationsParams::Type }
|
|
@@ -22,11 +22,11 @@ module XTwitterScraper
|
|
|
22
22
|
# @!method initialize(cursor: nil, type: nil, request_options: {})
|
|
23
23
|
# @param cursor [String] Pagination cursor for notifications
|
|
24
24
|
#
|
|
25
|
-
# @param type [Symbol, XTwitterScraper::Models::XGetNotificationsParams::Type] Notification type filter
|
|
25
|
+
# @param type [Symbol, XTwitterScraper::Models::XGetNotificationsParams::Type] Notification type filter. Unrecognized values fall back to All.
|
|
26
26
|
#
|
|
27
27
|
# @param request_options [XTwitterScraper::RequestOptions, Hash{Symbol=>Object}]
|
|
28
28
|
|
|
29
|
-
# Notification type filter
|
|
29
|
+
# Notification type filter. Unrecognized values fall back to All.
|
|
30
30
|
module Type
|
|
31
31
|
extend XTwitterScraper::Internal::Type::Enum
|
|
32
32
|
|
|
@@ -7,7 +7,23 @@ module XTwitterScraper
|
|
|
7
7
|
extend XTwitterScraper::Internal::Type::RequestParameters::Converter
|
|
8
8
|
include XTwitterScraper::Internal::Type::RequestParameters
|
|
9
9
|
|
|
10
|
-
# @!
|
|
10
|
+
# @!attribute count
|
|
11
|
+
# Number of trending topics to return (1-50, default 30)
|
|
12
|
+
#
|
|
13
|
+
# @return [Integer, nil]
|
|
14
|
+
optional :count, Integer
|
|
15
|
+
|
|
16
|
+
# @!attribute woeid
|
|
17
|
+
# Region WOEID (1=Worldwide, 23424977=US, 23424975=UK, 23424969=Turkey)
|
|
18
|
+
#
|
|
19
|
+
# @return [Integer, nil]
|
|
20
|
+
optional :woeid, Integer
|
|
21
|
+
|
|
22
|
+
# @!method initialize(count: nil, woeid: nil, request_options: {})
|
|
23
|
+
# @param count [Integer] Number of trending topics to return (1-50, default 30)
|
|
24
|
+
#
|
|
25
|
+
# @param woeid [Integer] Region WOEID (1=Worldwide, 23424977=US, 23424975=UK, 23424969=Turkey)
|
|
26
|
+
#
|
|
11
27
|
# @param request_options [XTwitterScraper::RequestOptions, Hash{Symbol=>Object}]
|
|
12
28
|
end
|
|
13
29
|
end
|
|
@@ -48,18 +48,16 @@ module XTwitterScraper
|
|
|
48
48
|
|
|
49
49
|
AccountUpdateLocaleParams = XTwitterScraper::Models::AccountUpdateLocaleParams
|
|
50
50
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
APIKeyCreateParams = XTwitterScraper::Models::APIKeyCreateParams
|
|
54
|
-
|
|
55
|
-
APIKeyListParams = XTwitterScraper::Models::APIKeyListParams
|
|
51
|
+
ComposeCreateParams = XTwitterScraper::Models::ComposeCreateParams
|
|
56
52
|
|
|
57
|
-
|
|
53
|
+
ContentDisclosure = XTwitterScraper::Models::ContentDisclosure
|
|
58
54
|
|
|
59
|
-
|
|
55
|
+
CreditRedirectTopupCheckoutParams = XTwitterScraper::Models::CreditRedirectTopupCheckoutParams
|
|
60
56
|
|
|
61
57
|
CreditRetrieveBalanceParams = XTwitterScraper::Models::CreditRetrieveBalanceParams
|
|
62
58
|
|
|
59
|
+
CreditRetrieveTopupStatusParams = XTwitterScraper::Models::CreditRetrieveTopupStatusParams
|
|
60
|
+
|
|
63
61
|
CreditTopupBalanceParams = XTwitterScraper::Models::CreditTopupBalanceParams
|
|
64
62
|
|
|
65
63
|
Delivery = XTwitterScraper::Models::Delivery
|
|
@@ -88,6 +86,8 @@ module XTwitterScraper
|
|
|
88
86
|
|
|
89
87
|
DrawRunParams = XTwitterScraper::Models::DrawRunParams
|
|
90
88
|
|
|
89
|
+
EmbeddedTweet = XTwitterScraper::Models::EmbeddedTweet
|
|
90
|
+
|
|
91
91
|
Error = XTwitterScraper::Models::Error
|
|
92
92
|
|
|
93
93
|
Event = XTwitterScraper::Models::Event
|
|
@@ -112,23 +112,13 @@ module XTwitterScraper
|
|
|
112
112
|
|
|
113
113
|
ExtractionRunParams = XTwitterScraper::Models::ExtractionRunParams
|
|
114
114
|
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
IntegrationCreateParams = XTwitterScraper::Models::IntegrationCreateParams
|
|
118
|
-
|
|
119
|
-
IntegrationDeleteParams = XTwitterScraper::Models::IntegrationDeleteParams
|
|
115
|
+
GuestWalletAmount = XTwitterScraper::Models::GuestWalletAmount
|
|
120
116
|
|
|
121
|
-
|
|
117
|
+
GuestWalletCreateParams = XTwitterScraper::Models::GuestWalletCreateParams
|
|
122
118
|
|
|
123
|
-
|
|
119
|
+
GuestWalletRetrieveStatusParams = XTwitterScraper::Models::GuestWalletRetrieveStatusParams
|
|
124
120
|
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
IntegrationRetrieveParams = XTwitterScraper::Models::IntegrationRetrieveParams
|
|
128
|
-
|
|
129
|
-
IntegrationSendTestParams = XTwitterScraper::Models::IntegrationSendTestParams
|
|
130
|
-
|
|
131
|
-
IntegrationUpdateParams = XTwitterScraper::Models::IntegrationUpdateParams
|
|
121
|
+
GuestWalletTopupParams = XTwitterScraper::Models::GuestWalletTopupParams
|
|
132
122
|
|
|
133
123
|
Monitor = XTwitterScraper::Models::Monitor
|
|
134
124
|
|
|
@@ -140,6 +130,8 @@ module XTwitterScraper
|
|
|
140
130
|
|
|
141
131
|
MonitorRetrieveParams = XTwitterScraper::Models::MonitorRetrieveParams
|
|
142
132
|
|
|
133
|
+
Monitors = XTwitterScraper::Models::Monitors
|
|
134
|
+
|
|
143
135
|
MonitorUpdateParams = XTwitterScraper::Models::MonitorUpdateParams
|
|
144
136
|
|
|
145
137
|
PaginatedTweets = XTwitterScraper::Models::PaginatedTweets
|
|
@@ -150,6 +142,8 @@ module XTwitterScraper
|
|
|
150
142
|
|
|
151
143
|
RadarRetrieveTrendingTopicsParams = XTwitterScraper::Models::RadarRetrieveTrendingTopicsParams
|
|
152
144
|
|
|
145
|
+
SearchTweet = XTwitterScraper::Models::SearchTweet
|
|
146
|
+
|
|
153
147
|
StyleAnalyzeParams = XTwitterScraper::Models::StyleAnalyzeParams
|
|
154
148
|
|
|
155
149
|
StyleCompareParams = XTwitterScraper::Models::StyleCompareParams
|
|
@@ -174,6 +168,10 @@ module XTwitterScraper
|
|
|
174
168
|
|
|
175
169
|
TrendListParams = XTwitterScraper::Models::TrendListParams
|
|
176
170
|
|
|
171
|
+
TweetMedia = XTwitterScraper::Models::TweetMedia
|
|
172
|
+
|
|
173
|
+
UserProfile = XTwitterScraper::Models::UserProfile
|
|
174
|
+
|
|
177
175
|
Webhook = XTwitterScraper::Models::Webhook
|
|
178
176
|
|
|
179
177
|
WebhookCreateParams = XTwitterScraper::Models::WebhookCreateParams
|
|
@@ -184,6 +182,8 @@ module XTwitterScraper
|
|
|
184
182
|
|
|
185
183
|
WebhookListParams = XTwitterScraper::Models::WebhookListParams
|
|
186
184
|
|
|
185
|
+
WebhookResumeParams = XTwitterScraper::Models::WebhookResumeParams
|
|
186
|
+
|
|
187
187
|
WebhookTestParams = XTwitterScraper::Models::WebhookTestParams
|
|
188
188
|
|
|
189
189
|
WebhookUpdateParams = XTwitterScraper::Models::WebhookUpdateParams
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
module XTwitterScraper
|
|
4
4
|
module Resources
|
|
5
|
-
# Account info
|
|
5
|
+
# Account info and settings
|
|
6
6
|
class Account
|
|
7
7
|
# Get account info
|
|
8
8
|
#
|
|
@@ -18,7 +18,6 @@ module XTwitterScraper
|
|
|
18
18
|
method: :get,
|
|
19
19
|
path: "account",
|
|
20
20
|
model: XTwitterScraper::Models::AccountRetrieveResponse,
|
|
21
|
-
security: {auth_api_key: true},
|
|
22
21
|
options: params[:request_options]
|
|
23
22
|
)
|
|
24
23
|
end
|
|
@@ -62,7 +61,6 @@ module XTwitterScraper
|
|
|
62
61
|
path: "account",
|
|
63
62
|
body: parsed,
|
|
64
63
|
model: XTwitterScraper::Models::AccountUpdateLocaleResponse,
|
|
65
|
-
security: {auth_api_key: true},
|
|
66
64
|
options: options
|
|
67
65
|
)
|
|
68
66
|
end
|
|
@@ -2,8 +2,32 @@
|
|
|
2
2
|
|
|
3
3
|
module XTwitterScraper
|
|
4
4
|
module Resources
|
|
5
|
-
# Subscription
|
|
5
|
+
# Subscription, billing, and credits
|
|
6
6
|
class Credits
|
|
7
|
+
# Redirect to an active top-up payment page
|
|
8
|
+
#
|
|
9
|
+
# @overload redirect_topup_checkout(session_id:, request_options: {})
|
|
10
|
+
#
|
|
11
|
+
# @param session_id [String] Billing session ID returned by the top-up billing flow.
|
|
12
|
+
#
|
|
13
|
+
# @param request_options [XTwitterScraper::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
14
|
+
#
|
|
15
|
+
# @return [nil]
|
|
16
|
+
#
|
|
17
|
+
# @see XTwitterScraper::Models::CreditRedirectTopupCheckoutParams
|
|
18
|
+
def redirect_topup_checkout(params)
|
|
19
|
+
parsed, options = XTwitterScraper::CreditRedirectTopupCheckoutParams.dump_request(params)
|
|
20
|
+
query = XTwitterScraper::Internal::Util.encode_query_params(parsed)
|
|
21
|
+
@client.request(
|
|
22
|
+
method: :get,
|
|
23
|
+
path: "credits/topup/redirect",
|
|
24
|
+
query: query,
|
|
25
|
+
model: NilClass,
|
|
26
|
+
security: {},
|
|
27
|
+
options: options
|
|
28
|
+
)
|
|
29
|
+
end
|
|
30
|
+
|
|
7
31
|
# Get credits balance
|
|
8
32
|
#
|
|
9
33
|
# @overload retrieve_balance(request_options: {})
|
|
@@ -22,11 +46,37 @@ module XTwitterScraper
|
|
|
22
46
|
)
|
|
23
47
|
end
|
|
24
48
|
|
|
25
|
-
#
|
|
49
|
+
# Get top-up billing status
|
|
50
|
+
#
|
|
51
|
+
# @overload retrieve_topup_status(session_id:, request_options: {})
|
|
52
|
+
#
|
|
53
|
+
# @param session_id [String] Billing session ID returned by the top-up billing flow.
|
|
54
|
+
#
|
|
55
|
+
# @param request_options [XTwitterScraper::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
56
|
+
#
|
|
57
|
+
# @return [XTwitterScraper::Models::CreditRetrieveTopupStatusResponse]
|
|
58
|
+
#
|
|
59
|
+
# @see XTwitterScraper::Models::CreditRetrieveTopupStatusParams
|
|
60
|
+
def retrieve_topup_status(params)
|
|
61
|
+
parsed, options = XTwitterScraper::CreditRetrieveTopupStatusParams.dump_request(params)
|
|
62
|
+
query = XTwitterScraper::Internal::Util.encode_query_params(parsed)
|
|
63
|
+
@client.request(
|
|
64
|
+
method: :get,
|
|
65
|
+
path: "credits/topup/status",
|
|
66
|
+
query: query,
|
|
67
|
+
model: XTwitterScraper::Models::CreditRetrieveTopupStatusResponse,
|
|
68
|
+
options: options
|
|
69
|
+
)
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
# Create a Stripe Checkout session only after the user confirms. The request never
|
|
73
|
+
# completes payment or adds credits by itself.
|
|
74
|
+
#
|
|
75
|
+
# @overload topup_balance(dollars:, locale: nil, request_options: {})
|
|
26
76
|
#
|
|
27
|
-
# @
|
|
77
|
+
# @param dollars [Integer] Amount to top up in US dollars. Minimum 10.
|
|
28
78
|
#
|
|
29
|
-
# @param
|
|
79
|
+
# @param locale [String] Optional checkout locale. Defaults to en.
|
|
30
80
|
#
|
|
31
81
|
# @param request_options [XTwitterScraper::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
32
82
|
#
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
module XTwitterScraper
|
|
4
4
|
module Resources
|
|
5
|
-
#
|
|
5
|
+
# AI tweet composition, drafts, writing styles, and radar
|
|
6
6
|
class Drafts
|
|
7
7
|
# Save a tweet draft
|
|
8
8
|
#
|
|
@@ -31,7 +31,7 @@ module XTwitterScraper
|
|
|
31
31
|
#
|
|
32
32
|
# @overload retrieve(id, request_options: {})
|
|
33
33
|
#
|
|
34
|
-
# @param id [String] Resource ID
|
|
34
|
+
# @param id [String] Resource ID returned by the matching create or list endpoint.
|
|
35
35
|
#
|
|
36
36
|
# @param request_options [XTwitterScraper::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
37
37
|
#
|
|
@@ -47,13 +47,16 @@ module XTwitterScraper
|
|
|
47
47
|
)
|
|
48
48
|
end
|
|
49
49
|
|
|
50
|
+
# Some parameter documentations has been truncated, see
|
|
51
|
+
# {XTwitterScraper::Models::DraftListParams} for more details.
|
|
52
|
+
#
|
|
50
53
|
# List saved drafts
|
|
51
54
|
#
|
|
52
55
|
# @overload list(after_cursor: nil, limit: nil, request_options: {})
|
|
53
56
|
#
|
|
54
57
|
# @param after_cursor [String] Cursor for pagination
|
|
55
58
|
#
|
|
56
|
-
# @param limit [Integer] Maximum number of items to return (1-100, default 50)
|
|
59
|
+
# @param limit [Integer] Maximum number of items to return (1-100, default 50). For paid per-result endpo
|
|
57
60
|
#
|
|
58
61
|
# @param request_options [XTwitterScraper::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
59
62
|
#
|
|
@@ -76,7 +79,7 @@ module XTwitterScraper
|
|
|
76
79
|
#
|
|
77
80
|
# @overload delete(id, request_options: {})
|
|
78
81
|
#
|
|
79
|
-
# @param id [String] Resource ID
|
|
82
|
+
# @param id [String] Resource ID returned by the matching create or list endpoint.
|
|
80
83
|
#
|
|
81
84
|
# @param request_options [XTwitterScraper::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
82
85
|
#
|
|
@@ -8,7 +8,7 @@ module XTwitterScraper
|
|
|
8
8
|
#
|
|
9
9
|
# @overload retrieve(id, request_options: {})
|
|
10
10
|
#
|
|
11
|
-
# @param id [String]
|
|
11
|
+
# @param id [String] Draw public ID returned by create and list draw responses.
|
|
12
12
|
#
|
|
13
13
|
# @param request_options [XTwitterScraper::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
14
14
|
#
|
|
@@ -24,13 +24,16 @@ module XTwitterScraper
|
|
|
24
24
|
)
|
|
25
25
|
end
|
|
26
26
|
|
|
27
|
+
# Some parameter documentations has been truncated, see
|
|
28
|
+
# {XTwitterScraper::Models::DrawListParams} for more details.
|
|
29
|
+
#
|
|
27
30
|
# List draws
|
|
28
31
|
#
|
|
29
|
-
# @overload list(
|
|
32
|
+
# @overload list(cursor: nil, limit: nil, request_options: {})
|
|
30
33
|
#
|
|
31
|
-
# @param
|
|
34
|
+
# @param cursor [String] Cursor for keyset pagination from prior response next_cursor
|
|
32
35
|
#
|
|
33
|
-
# @param limit [Integer] Maximum number of items to return (1-100, default 50)
|
|
36
|
+
# @param limit [Integer] Maximum number of items to return (1-100, default 50). For paid per-result endpo
|
|
34
37
|
#
|
|
35
38
|
# @param request_options [XTwitterScraper::RequestOptions, Hash{Symbol=>Object}, nil]
|
|
36
39
|
#
|
|
@@ -51,9 +54,9 @@ module XTwitterScraper
|
|
|
51
54
|
|
|
52
55
|
# Export draw data
|
|
53
56
|
#
|
|
54
|
-
# @overload export(id, format_
|
|
57
|
+
# @overload export(id, format_:, type: nil, request_options: {})
|
|
55
58
|
#
|
|
56
|
-
# @param id [String]
|
|
59
|
+
# @param id [String] Draw public ID returned by create and list draw responses.
|
|
57
60
|
#
|
|
58
61
|
# @param format_ [Symbol, XTwitterScraper::Models::DrawExportParams::Format] Export output format
|
|
59
62
|
#
|
|
@@ -64,7 +67,7 @@ module XTwitterScraper
|
|
|
64
67
|
# @return [StringIO]
|
|
65
68
|
#
|
|
66
69
|
# @see XTwitterScraper::Models::DrawExportParams
|
|
67
|
-
def export(id, params
|
|
70
|
+
def export(id, params)
|
|
68
71
|
parsed, options = XTwitterScraper::DrawExportParams.dump_request(params)
|
|
69
72
|
query = XTwitterScraper::Internal::Util.encode_query_params(parsed)
|
|
70
73
|
@client.request(
|
|
@@ -77,7 +80,10 @@ module XTwitterScraper
|
|
|
77
80
|
)
|
|
78
81
|
end
|
|
79
82
|
|
|
80
|
-
#
|
|
83
|
+
# Runs a giveaway draw from a source tweet. The draw first checks the minimum
|
|
84
|
+
# credits needed to inspect the source tweet and at least one candidate. Remaining
|
|
85
|
+
# credits cap how many replies and retweeters can be inspected before filters and
|
|
86
|
+
# winner selection run.
|
|
81
87
|
#
|
|
82
88
|
# @overload run(tweet_url:, backup_count: nil, filter_account_age_days: nil, filter_language: nil, filter_min_followers: nil, must_follow_username: nil, must_retweet: nil, required_hashtags: nil, required_keywords: nil, required_mentions: nil, unique_authors_only: nil, winner_count: nil, request_options: {})
|
|
83
89
|
#
|