Class: XTwitterScraper::Resources::Subscribe
- Inherits:
-
Object
- Object
- XTwitterScraper::Resources::Subscribe
- Defined in:
- lib/x_twitter_scraper/resources/subscribe.rb
Overview
Subscription & billing
Instance Method Summary collapse
-
#create(request_options: {}) ⇒ XTwitterScraper::Models::SubscribeCreateResponse
Get checkout or billing URL.
-
#initialize(client:) ⇒ Subscribe
constructor
private
A new instance of Subscribe.
Constructor Details
#initialize(client:) ⇒ Subscribe
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 Subscribe.
28 29 30 |
# File 'lib/x_twitter_scraper/resources/subscribe.rb', line 28 def initialize(client:) @client = client end |
Instance Method Details
#create(request_options: {}) ⇒ XTwitterScraper::Models::SubscribeCreateResponse
Get checkout or billing URL
16 17 18 19 20 21 22 23 |
# File 'lib/x_twitter_scraper/resources/subscribe.rb', line 16 def create(params = {}) @client.request( method: :post, path: "subscribe", model: XTwitterScraper::Models::SubscribeCreateResponse, options: params[:request_options] ) end |