Class: XTwitterScraper::Resources::X::AccountConnectionChallenges
- Inherits:
-
Object
- Object
- XTwitterScraper::Resources::X::AccountConnectionChallenges
- Defined in:
- lib/x_twitter_scraper/resources/x/account_connection_challenges.rb,
sig/x_twitter_scraper/resources/x/account_connection_challenges.rbs
Overview
Connected X account management
Instance Method Summary collapse
-
#initialize(client:) ⇒ AccountConnectionChallenges
constructor
private
A new instance of AccountConnectionChallenges.
-
#submit(id, email_code:, request_options: {}) ⇒ XTwitterScraper::Models::X::AccountConnectionChallengeSubmitResponse
Submit X account email verification code.
Constructor Details
#initialize(client:) ⇒ AccountConnectionChallenges
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of AccountConnectionChallenges.
35 36 37 |
# File 'lib/x_twitter_scraper/resources/x/account_connection_challenges.rb', line 35 def initialize(client:) @client = client end |
Instance Method Details
#submit(id, email_code:, request_options: {}) ⇒ XTwitterScraper::Models::X::AccountConnectionChallengeSubmitResponse
Submit X account email verification code
21 22 23 24 25 26 27 28 29 30 |
# File 'lib/x_twitter_scraper/resources/x/account_connection_challenges.rb', line 21 def submit(id, params) parsed, = XTwitterScraper::X::AccountConnectionChallengeSubmitParams.dump_request(params) @client.request( method: :post, path: ["x/account-connection-challenges/%1$s/submit", id], body: parsed, model: XTwitterScraper::Models::X::AccountConnectionChallengeSubmitResponse, options: ) end |