Class: XTwitterScraper::Resources::Compose
- Inherits:
-
Object
- Object
- XTwitterScraper::Resources::Compose
- Defined in:
- lib/x_twitter_scraper/resources/compose.rb,
sig/x_twitter_scraper/resources/compose.rbs
Overview
AI tweet composition, drafts, writing styles, and radar
Instance Method Summary collapse
-
#create(body:, request_options: {}) ⇒ XTwitterScraper::Models::ComposeCreateResponse::ComposePrepareResult, ...
Run one step of Xquik's three-step writing workflow.
-
#initialize(client:) ⇒ Compose
constructor
private
A new instance of Compose.
Constructor Details
#initialize(client:) ⇒ Compose
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 Compose.
38 39 40 |
# File 'lib/x_twitter_scraper/resources/compose.rb', line 38 def initialize(client:) @client = client end |
Instance Method Details
#create(body:, request_options: {}) ⇒ XTwitterScraper::Models::ComposeCreateResponse::ComposePrepareResult, ...
Run one step of Xquik's three-step writing workflow. Compose returns questions and editorial rules. Refine returns goal-specific guidance. Score applies deterministic text checks. It does not predict reach or expose X ranking weights.
24 25 26 27 28 29 30 31 32 33 |
# File 'lib/x_twitter_scraper/resources/compose.rb', line 24 def create(params) parsed, = XTwitterScraper::ComposeCreateParams.dump_request(params) @client.request( method: :post, path: "compose", body: parsed[:body], model: XTwitterScraper::Models::ComposeCreateResponse, options: ) end |