Class: XTwitterScraper::Resources::X::AccountConnectionAttempts

Inherits:
Object
  • Object
show all
Defined in:
lib/x_twitter_scraper/resources/x/account_connection_attempts.rb,
sig/x_twitter_scraper/resources/x/account_connection_attempts.rbs

Overview

Connected X account management

Instance Method Summary collapse

Constructor Details

#initialize(client:) ⇒ AccountConnectionAttempts

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 AccountConnectionAttempts.

Parameters:



31
32
33
# File 'lib/x_twitter_scraper/resources/x/account_connection_attempts.rb', line 31

def initialize(client:)
  @client = client
end

Instance Method Details

#retrieve(id, request_options: {}) ⇒ XTwitterScraper::Models::X::AccountConnectionAttemptRetrieveResponse::Pending, ...

Get X account connection status



19
20
21
22
23
24
25
26
# File 'lib/x_twitter_scraper/resources/x/account_connection_attempts.rb', line 19

def retrieve(id, params = {})
  @client.request(
    method: :get,
    path: ["x/account-connection-attempts/%1$s", id],
    model: XTwitterScraper::Models::X::AccountConnectionAttemptRetrieveResponse,
    options: params[:request_options]
  )
end