All URIs are relative to https://api.daily.co/v1
Method | HTTP request | Description |
---|---|---|
delete_recording | DELETE /recordings/{recording_id} | recordings/:id |
get_recording_info | GET /recordings/{recording_id} | recordings/:id |
get_recording_link | GET /recordings/{recording_id}/access-link | recordings/:id/access-link |
list_recordings | GET /recordings | /recordings |
Object delete_recording(recording_id)
recordings/:id
Delete a recording
require 'time'
require 'daily-ruby'
# setup authorization
Daily.configure do |config|
# Configure API key authorization: sec0
config.api_key['sec0'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
# config.api_key_prefix['sec0'] = 'Bearer'
end
api_instance = Daily::RecordingsApi.new
recording_id = 'recording_id_example' # String |
begin
# recordings/:id
result = api_instance.delete_recording(recording_id)
p result
rescue Daily::ApiError => e
puts "Error when calling RecordingsApi->delete_recording: #{e}"
end
This returns an Array which contains the response data, status code and headers.
<Array(Object, Integer, Hash)> delete_recording_with_http_info(recording_id)
begin
# recordings/:id
data, status_code, headers = api_instance.delete_recording_with_http_info(recording_id)
p status_code # => 2xx
p headers # => { ... }
p data # => Object
rescue Daily::ApiError => e
puts "Error when calling RecordingsApi->delete_recording_with_http_info: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
recording_id | String |
Object
- Content-Type: Not defined
- Accept: application/json
get_recording_info(recording_id)
recordings/:id
Get info about a recording
require 'time'
require 'daily-ruby'
# setup authorization
Daily.configure do |config|
# Configure API key authorization: sec0
config.api_key['sec0'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
# config.api_key_prefix['sec0'] = 'Bearer'
end
api_instance = Daily::RecordingsApi.new
recording_id = 'recording_id_example' # String |
begin
# recordings/:id
result = api_instance.get_recording_info(recording_id)
p result
rescue Daily::ApiError => e
puts "Error when calling RecordingsApi->get_recording_info: #{e}"
end
This returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> get_recording_info_with_http_info(recording_id)
begin
# recordings/:id
data, status_code, headers = api_instance.get_recording_info_with_http_info(recording_id)
p status_code # => 2xx
p headers # => { ... }
p data # => <GetRecordingInfo200Response>
rescue Daily::ApiError => e
puts "Error when calling RecordingsApi->get_recording_info_with_http_info: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
recording_id | String |
- Content-Type: Not defined
- Accept: application/json
get_recording_link(recording_id)
recordings/:id/access-link
Generate an access link for a recording
require 'time'
require 'daily-ruby'
# setup authorization
Daily.configure do |config|
# Configure API key authorization: sec0
config.api_key['sec0'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
# config.api_key_prefix['sec0'] = 'Bearer'
end
api_instance = Daily::RecordingsApi.new
recording_id = 'recording_id_example' # String |
begin
# recordings/:id/access-link
result = api_instance.get_recording_link(recording_id)
p result
rescue Daily::ApiError => e
puts "Error when calling RecordingsApi->get_recording_link: #{e}"
end
This returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> get_recording_link_with_http_info(recording_id)
begin
# recordings/:id/access-link
data, status_code, headers = api_instance.get_recording_link_with_http_info(recording_id)
p status_code # => 2xx
p headers # => { ... }
p data # => <GetRecordingLink200Response>
rescue Daily::ApiError => e
puts "Error when calling RecordingsApi->get_recording_link_with_http_info: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
recording_id | String |
- Content-Type: Not defined
- Accept: application/json
list_recordings(opts)
/recordings
List recordings
require 'time'
require 'daily-ruby'
# setup authorization
Daily.configure do |config|
# Configure API key authorization: sec0
config.api_key['sec0'] = 'YOUR API KEY'
# Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
# config.api_key_prefix['sec0'] = 'Bearer'
end
api_instance = Daily::RecordingsApi.new
opts = {
limit: 56, # Integer |
ending_before: 'ending_before_example', # String |
starting_after: 'starting_after_example', # String |
room_name: 'room_name_example' # String |
}
begin
# /recordings
result = api_instance.list_recordings(opts)
p result
rescue Daily::ApiError => e
puts "Error when calling RecordingsApi->list_recordings: #{e}"
end
This returns an Array which contains the response data, status code and headers.
<Array(, Integer, Hash)> list_recordings_with_http_info(opts)
begin
# /recordings
data, status_code, headers = api_instance.list_recordings_with_http_info(opts)
p status_code # => 2xx
p headers # => { ... }
p data # => <ListRecordings200Response>
rescue Daily::ApiError => e
puts "Error when calling RecordingsApi->list_recordings_with_http_info: #{e}"
end
Name | Type | Description | Notes |
---|---|---|---|
limit | Integer | [optional] | |
ending_before | String | [optional] | |
starting_after | String | [optional] | |
room_name | String | [optional] |
- Content-Type: Not defined
- Accept: application/json