Class: Telnyx::Resources::Texml::Accounts::Calls::Recordings

Inherits:
Object
  • Object
show all
Defined in:
lib/telnyx/resources/texml/accounts/calls/recordings.rb

Overview

TeXML REST Commands

Instance Method Summary collapse

Constructor Details

#initialize(client:) ⇒ Recordings

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

Parameters:



55
56
57
# File 'lib/telnyx/resources/texml/accounts/calls/recordings.rb', line 55

def initialize(client:)
  @client = client
end

Instance Method Details

#recording_sid_json(recording_sid, account_sid:, call_sid:, status: nil, request_options: {}) ⇒ Telnyx::Models::Texml::Accounts::Calls::RecordingRecordingSidJsonResponse

Updates recording resource for particular call.

Parameters:

Returns:

See Also:



27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# File 'lib/telnyx/resources/texml/accounts/calls/recordings.rb', line 27

def recording_sid_json(recording_sid, params)
  parsed, options = Telnyx::Texml::Accounts::Calls::RecordingRecordingSidJsonParams.dump_request(params)
   =
    parsed.delete(:account_sid) do
      raise ArgumentError.new("missing required path argument #{_1}")
    end
  call_sid =
    parsed.delete(:call_sid) do
      raise ArgumentError.new("missing required path argument #{_1}")
    end
  @client.request(
    method: :post,
    path: [
      "texml/Accounts/%1$s/Calls/%2$s/Recordings/%3$s.json",
      ,
      call_sid,
      recording_sid
    ],
    headers: {"content-type" => "application/x-www-form-urlencoded"},
    body: parsed,
    model: Telnyx::Models::Texml::Accounts::Calls::RecordingRecordingSidJsonResponse,
    options: options
  )
end