Class: Telnyx::Resources::Texml::Accounts::Calls::Streams

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

Overview

TeXML REST Commands

Instance Method Summary collapse

Constructor Details

#initialize(client:) ⇒ Streams

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

Parameters:



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

def initialize(client:)
  @client = client
end

Instance Method Details

#streaming_sid_json(streaming_sid, account_sid:, call_sid:, status: nil, request_options: {}) ⇒ Telnyx::Models::Texml::Accounts::Calls::StreamStreamingSidJsonResponse

Updates streaming 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/streams.rb', line 27

def streaming_sid_json(streaming_sid, params)
  parsed, options = Telnyx::Texml::Accounts::Calls::StreamStreamingSidJsonParams.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/Streams/%3$s.json",
      ,
      call_sid,
      streaming_sid
    ],
    headers: {"content-type" => "application/x-www-form-urlencoded"},
    body: parsed,
    model: Telnyx::Models::Texml::Accounts::Calls::StreamStreamingSidJsonResponse,
    options: options
  )
end