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

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

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:



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

def initialize(client:)
  @client = client
end

Instance Method Details

#delete(ids:, request_options: {}) ⇒ nil

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:

  • (nil)

See Also:



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

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