Class: Telnyx::Resources::Recordings::Actions

Inherits:
Object
  • Object
show all
Defined in:
lib/telnyx/resources/recordings/actions.rb

Overview

Call Recordings operations.

Instance Method Summary collapse

Constructor Details

#initialize(client:) ⇒ Actions

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 Actions.

Parameters:



33
34
35
# File 'lib/telnyx/resources/recordings/actions.rb', line 33

def initialize(client:)
  @client = client
end

Instance Method Details

#delete(ids:, request_options: {}) ⇒ Telnyx::Models::Recordings::ActionDeleteResponse

Permanently deletes a list of call recordings.

Parameters:

  • ids (Array<String>)

    List of call recording IDs to delete.

  • request_options (Telnyx::RequestOptions, Hash{Symbol=>Object}, nil)

Returns:

See Also:



19
20
21
22
23
24
25
26
27
28
# File 'lib/telnyx/resources/recordings/actions.rb', line 19

def delete(params)
  parsed, options = Telnyx::Recordings::ActionDeleteParams.dump_request(params)
  @client.request(
    method: :post,
    path: "recordings/actions/delete",
    body: parsed,
    model: Telnyx::Models::Recordings::ActionDeleteResponse,
    options: options
  )
end