Class: Onlyfans::Resources::Messages
- Inherits:
-
Object
- Object
- Onlyfans::Resources::Messages
- Defined in:
- lib/onlyfans/resources/messages.rb,
sig/onlyfans/resources/messages.rbs
Instance Method Summary collapse
-
#attach_tags(message_id, account:, rf_guest: nil, rf_partner: nil, rf_tag: nil, request_options: {}) ⇒ Onlyfans::Models::MessageAttachTagsResponse
Some parameter documentations has been truncated, see Models::MessageAttachTagsParams for more details.
-
#initialize(client:) ⇒ Messages
constructor
private
A new instance of Messages.
Constructor Details
#initialize(client:) ⇒ Messages
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 Messages.
48 49 50 |
# File 'lib/onlyfans/resources/messages.rb', line 48 def initialize(client:) @client = client end |
Instance Method Details
#attach_tags(message_id, account:, rf_guest: nil, rf_partner: nil, rf_tag: nil, request_options: {}) ⇒ Onlyfans::Models::MessageAttachTagsResponse
Some parameter documentations has been truncated, see Models::MessageAttachTagsParams for more details.
Attach Tags (Release Forms) to a message that has already been sent. Please
note, that this is a "sync" operation - for example, if you provide empty
rfTag it will remove all existing tags already attached to the message.
30 31 32 33 34 35 36 37 38 39 40 41 42 43 |
# File 'lib/onlyfans/resources/messages.rb', line 30 def (, params) parsed, = Onlyfans::MessageAttachTagsParams.dump_request(params) account = parsed.delete(:account) do raise ArgumentError.new("missing required path argument #{_1}") end @client.request( method: :post, path: ["api/%1$s/messages/%2$s/attach-tags", account, ], body: parsed, model: Onlyfans::Models::MessageAttachTagsResponse, options: ) end |