Class: Onlyfans::Resources::Me
- Inherits:
-
Object
- Object
- Onlyfans::Resources::Me
- Defined in:
- lib/onlyfans/resources/me.rb
Overview
Endpoints for your linked accounts
Instance Method Summary collapse
-
#get_model_start_date(account, request_options: {}) ⇒ Onlyfans::Models::MeGetModelStartDateResponse
Get the start date of the model (the date+time monetization was enabled).
-
#get_top_percentage(account, request_options: {}) ⇒ Onlyfans::Models::MeGetTopPercentageResponse
Get the top percentage of the model (e.g., top 0.02% of all creators).
-
#initialize(client:) ⇒ Me
constructor
private
A new instance of Me.
-
#retrieve(account, request_options: {}) ⇒ Onlyfans::Models::MeRetrieveResponse
Get OnlyFans Profile details for the currently used Account.
Constructor Details
#initialize(client:) ⇒ Me
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 Me.
70 71 72 |
# File 'lib/onlyfans/resources/me.rb', line 70 def initialize(client:) @client = client end |
Instance Method Details
#get_model_start_date(account, request_options: {}) ⇒ Onlyfans::Models::MeGetModelStartDateResponse
Get the start date of the model (the date+time monetization was enabled)
38 39 40 41 42 43 44 45 |
# File 'lib/onlyfans/resources/me.rb', line 38 def get_model_start_date(account, params = {}) @client.request( method: :get, path: ["api/%1$s/me/model-start-date", account], model: Onlyfans::Models::MeGetModelStartDateResponse, options: params[:request_options] ) end |
#get_top_percentage(account, request_options: {}) ⇒ Onlyfans::Models::MeGetTopPercentageResponse
Get the top percentage of the model (e.g., top 0.02% of all creators)
58 59 60 61 62 63 64 65 |
# File 'lib/onlyfans/resources/me.rb', line 58 def get_top_percentage(account, params = {}) @client.request( method: :get, path: ["api/%1$s/me/top-percentage", account], model: Onlyfans::Models::MeGetTopPercentageResponse, options: params[:request_options] ) end |
#retrieve(account, request_options: {}) ⇒ Onlyfans::Models::MeRetrieveResponse
Get OnlyFans Profile details for the currently used Account
18 19 20 21 22 23 24 25 |
# File 'lib/onlyfans/resources/me.rb', line 18 def retrieve(account, params = {}) @client.request( method: :get, path: ["api/%1$s/me", account], model: Onlyfans::Models::MeRetrieveResponse, options: params[:request_options] ) end |