Class: Telnyx::Resources::Texml::Accounts::Calls::Recordings
- Inherits:
-
Object
- Object
- Telnyx::Resources::Texml::Accounts::Calls::Recordings
- Defined in:
- lib/telnyx/resources/texml/accounts/calls/recordings.rb
Instance Method Summary collapse
-
#initialize(client:) ⇒ Recordings
constructor
private
A new instance of Recordings.
-
#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.
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.
54 55 56 |
# File 'lib/telnyx/resources/texml/accounts/calls/recordings.rb', line 54 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.
26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
# File 'lib/telnyx/resources/texml/accounts/calls/recordings.rb', line 26 def recording_sid_json(recording_sid, params) parsed, = Telnyx::Texml::Accounts::Calls::RecordingRecordingSidJsonParams.dump_request(params) account_sid = 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", account_sid, call_sid, recording_sid ], headers: {"content-type" => "application/x-www-form-urlencoded"}, body: parsed, model: Telnyx::Models::Texml::Accounts::Calls::RecordingRecordingSidJsonResponse, options: ) end |