Class: Onlyfans::Resources::Me

Inherits:
Object
  • Object
show all
Defined in:
lib/onlyfans/resources/me.rb

Overview

Endpoints for your linked accounts

Instance Method Summary collapse

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.

Parameters:



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)

Parameters:

Returns:

See Also:



38
39
40
41
42
43
44
45
# File 'lib/onlyfans/resources/me.rb', line 38

def get_model_start_date(, params = {})
  @client.request(
    method: :get,
    path: ["api/%1$s/me/model-start-date", ],
    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)

Parameters:

Returns:

See Also:



58
59
60
61
62
63
64
65
# File 'lib/onlyfans/resources/me.rb', line 58

def get_top_percentage(, params = {})
  @client.request(
    method: :get,
    path: ["api/%1$s/me/top-percentage", ],
    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

Parameters:

Returns:

See Also:



18
19
20
21
22
23
24
25
# File 'lib/onlyfans/resources/me.rb', line 18

def retrieve(, params = {})
  @client.request(
    method: :get,
    path: ["api/%1$s/me", ],
    model: Onlyfans::Models::MeRetrieveResponse,
    options: params[:request_options]
  )
end