Class: Telnyx::Resources::Recordings
- Inherits:
-
Object
- Object
- Telnyx::Resources::Recordings
- Defined in:
- lib/telnyx/resources/recordings.rb,
lib/telnyx/resources/recordings/actions.rb
Defined Under Namespace
Classes: Actions
Instance Attribute Summary collapse
Instance Method Summary collapse
-
#delete(recording_id, request_options: {}) ⇒ Telnyx::Models::RecordingDeleteResponse
Permanently deletes a call recording.
-
#initialize(client:) ⇒ Recordings
constructor
private
A new instance of Recordings.
-
#list(filter: nil, page_number: nil, page_size: nil, request_options: {}) ⇒ Telnyx::Internal::DefaultFlatPagination<Telnyx::Models::RecordingResponseData>
Some parameter documentations has been truncated, see Models::RecordingListParams for more details.
-
#retrieve(recording_id, request_options: {}) ⇒ Telnyx::Models::RecordingRetrieveResponse
Retrieves the details of an existing call recording.
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.
83 84 85 86 |
# File 'lib/telnyx/resources/recordings.rb', line 83 def initialize(client:) @client = client @actions = Telnyx::Resources::Recordings::Actions.new(client: client) end |
Instance Attribute Details
#actions ⇒ Telnyx::Resources::Recordings::Actions (readonly)
7 8 9 |
# File 'lib/telnyx/resources/recordings.rb', line 7 def actions @actions end |
Instance Method Details
#delete(recording_id, request_options: {}) ⇒ Telnyx::Models::RecordingDeleteResponse
Permanently deletes a call recording.
71 72 73 74 75 76 77 78 |
# File 'lib/telnyx/resources/recordings.rb', line 71 def delete(recording_id, params = {}) @client.request( method: :delete, path: ["recordings/%1$s", recording_id], model: Telnyx::Models::RecordingDeleteResponse, options: params[:request_options] ) end |
#list(filter: nil, page_number: nil, page_size: nil, request_options: {}) ⇒ Telnyx::Internal::DefaultFlatPagination<Telnyx::Models::RecordingResponseData>
Some parameter documentations has been truncated, see Models::RecordingListParams for more details.
Returns a list of your call recordings.
filter[conference_
48 49 50 51 52 53 54 55 56 57 58 |
# File 'lib/telnyx/resources/recordings.rb', line 48 def list(params = {}) parsed, = Telnyx::RecordingListParams.dump_request(params) @client.request( method: :get, path: "recordings", query: parsed.transform_keys(page_number: "page[number]", page_size: "page[size]"), page: Telnyx::Internal::DefaultFlatPagination, model: Telnyx::RecordingResponseData, options: ) end |
#retrieve(recording_id, request_options: {}) ⇒ Telnyx::Models::RecordingRetrieveResponse
Retrieves the details of an existing call recording.
20 21 22 23 24 25 26 27 |
# File 'lib/telnyx/resources/recordings.rb', line 20 def retrieve(recording_id, params = {}) @client.request( method: :get, path: ["recordings/%1$s", recording_id], model: Telnyx::Models::RecordingRetrieveResponse, options: params[:request_options] ) end |