Class: Onlyfans::Resources::Search
- Inherits:
-
Object
- Object
- Onlyfans::Resources::Search
- Defined in:
- lib/onlyfans/resources/search.rb
Instance Method Summary collapse
-
#initialize(client:) ⇒ Search
constructor
private
A new instance of Search.
-
#profiles(cursor: nil, filter: nil, instagram: nil, limit: nil, location: nil, max_subscribe_price: nil, min_subscribe_price: nil, query: nil, sort: nil, sort_direction: nil, tiktok: nil, website: nil, request_options: {}) ⇒ Onlyfans::Models::SearchProfilesResponse
Some parameter documentations has been truncated, see Models::SearchProfilesParams for more details.
Constructor Details
#initialize(client:) ⇒ Search
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 Search.
58 59 60 |
# File 'lib/onlyfans/resources/search.rb', line 58 def initialize(client:) @client = client end |
Instance Method Details
#profiles(cursor: nil, filter: nil, instagram: nil, limit: nil, location: nil, max_subscribe_price: nil, min_subscribe_price: nil, query: nil, sort: nil, sort_direction: nil, tiktok: nil, website: nil, request_options: {}) ⇒ Onlyfans::Models::SearchProfilesResponse
Some parameter documentations has been truncated, see Models::SearchProfilesParams for more details.
Full-text search for profiles with filters for pricing, free trials, location, media count and more.
43 44 45 46 47 48 49 50 51 52 53 |
# File 'lib/onlyfans/resources/search.rb', line 43 def profiles(params = {}) parsed, = Onlyfans::SearchProfilesParams.dump_request(params) query = Onlyfans::Internal::Util.encode_query_params(parsed) @client.request( method: :get, path: "api/search", query: query.transform_keys(sort_direction: "sortDirection"), model: Onlyfans::Models::SearchProfilesResponse, options: ) end |