plivo 4.24.0 → 4.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +1 -1
- data/lib/plivo/resources/multipartycalls.rb +16 -16
- data/lib/plivo/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: fbaf4fabdd81296b5818890fc82e5d651ba24e8b
|
|
4
|
+
data.tar.gz: 9943aaacb63c0022e3052533cc951d72f30e2e1e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: affc19347cdbec6fa100c74c058588a9f69c1225c9c496ebf506d05cb10cf2ff917a0b4d53a2c850756d9a3ed93e3df1bdb0954bc0593e8a8e7de5f5b9cba9c0
|
|
7
|
+
data.tar.gz: 3d357b1f45ff1949d6bb2e6d0cc9cdadd775366c62a534d602c5c448ea25d9859c193ffcd17593e6becbbabde923f96912adf63e0a47c1ae615e5a51b6d7211d
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## [4.25.0](https://github.com/plivo/plivo-ruby/tree/v4.25.0) (2022-01-27)
|
|
4
|
+
**Features - MPCStartCallRecording**
|
|
5
|
+
- parameter name change from statusCallback to recordingCallback
|
|
6
|
+
|
|
3
7
|
## [4.24.0](https://github.com/plivo/plivo-ruby/tree/v4.24.0) (2021-12-14)
|
|
4
8
|
**Features - Voice**
|
|
5
9
|
- Routing SDK traffic through Akamai endpoints for all the [Voice APIs](https://www.plivo.com/docs/voice/api/overview/)
|
data/README.md
CHANGED
|
@@ -191,15 +191,15 @@ module Plivo
|
|
|
191
191
|
perform_action_apiresponse(nil, 'DELETE', nil, true)
|
|
192
192
|
end
|
|
193
193
|
|
|
194
|
-
def start_recording(file_format = 'mp3',
|
|
194
|
+
def start_recording(file_format = 'mp3', recording_callback_url = nil, recording_callback_method='POST')
|
|
195
195
|
valid_param?(:file_format, file_format, String, false , %w[mp3 wav])
|
|
196
|
-
valid_url?(:
|
|
197
|
-
valid_param?(:
|
|
196
|
+
valid_url?(:recording_callback_url, recording_callback_url, false) unless recording_callback_url.nil?
|
|
197
|
+
valid_param?(:recording_callback_method, recording_callback_method.upcase,String, false, %w[GET POST])
|
|
198
198
|
|
|
199
199
|
params = {}
|
|
200
200
|
params[:file_format] = file_format.downcase unless file_format.nil?
|
|
201
|
-
params[:
|
|
202
|
-
params[:
|
|
201
|
+
params[:recording_callback_url] = recording_callback_url unless recording_callback_url.nil?
|
|
202
|
+
params[:recording_callback_method] = recording_callback_method.upcase unless recording_callback_method.nil?
|
|
203
203
|
|
|
204
204
|
perform_action_apiresponse('Record', 'POST', params, true)
|
|
205
205
|
end
|
|
@@ -216,9 +216,9 @@ module Plivo
|
|
|
216
216
|
perform_action_apiresponse('Record/Resume', 'POST')
|
|
217
217
|
end
|
|
218
218
|
|
|
219
|
-
def start_participant_recording(member_id, file_format='mp3',
|
|
219
|
+
def start_participant_recording(member_id, file_format='mp3', recording_callback_url=nil, recording_callback_method='POST')
|
|
220
220
|
valid_param?(:member_id, member_id, [String, Integer], true)
|
|
221
|
-
MultiPartyCallParticipant.new(@_client, resource_id: mpc_id[1], member_id: member_id).start_participant_recording(file_format,
|
|
221
|
+
MultiPartyCallParticipant.new(@_client, resource_id: mpc_id[1], member_id: member_id).start_participant_recording(file_format, recording_callback_url, recording_callback_method)
|
|
222
222
|
end
|
|
223
223
|
|
|
224
224
|
def stop_participant_recording(member_id)
|
|
@@ -288,15 +288,15 @@ module Plivo
|
|
|
288
288
|
configure_secondary_resource_uri
|
|
289
289
|
end
|
|
290
290
|
|
|
291
|
-
def start_participant_recording(file_format = 'mp3',
|
|
291
|
+
def start_participant_recording(file_format = 'mp3', recording_callback_url = nil, recording_callback_method='POST')
|
|
292
292
|
valid_param?(:file_format, file_format, String, false , %w[mp3 wav])
|
|
293
|
-
valid_url?(:
|
|
294
|
-
valid_param?(:
|
|
293
|
+
valid_url?(:recording_callback_url, recording_callback_url, false) unless recording_callback_url.nil?
|
|
294
|
+
valid_param?(:recording_callback_method, recording_callback_method.upcase,String, false, %w[GET POST])
|
|
295
295
|
|
|
296
296
|
params = {}
|
|
297
297
|
params[:file_format] = file_format.downcase unless file_format.nil?
|
|
298
|
-
params[:
|
|
299
|
-
params[:
|
|
298
|
+
params[:recording_callback_url] = recording_callback_url unless recording_callback_url.nil?
|
|
299
|
+
params[:recording_callback_method] = recording_callback_method.upcase unless recording_callback_method.nil?
|
|
300
300
|
|
|
301
301
|
perform_action_apiresponse('Record', 'POST', params, true)
|
|
302
302
|
end
|
|
@@ -480,11 +480,11 @@ module Plivo
|
|
|
480
480
|
def start_recording(options = {})
|
|
481
481
|
valid_param?(:options, options, Hash, false)
|
|
482
482
|
options[:file_format] = 'mp3' unless options.key?(:file_format)
|
|
483
|
-
options[:
|
|
483
|
+
options[:recording_callback_method] = 'POST' unless options.key?(:recording_callback_method)
|
|
484
484
|
valid_param?(:uuid, options[:uuid], String, false) unless options[:uuid].nil?
|
|
485
485
|
valid_param?(:friendly_name, options[:friendly_name], String, false) unless options[:friendly_name].nil?
|
|
486
486
|
mpc_id = make_mpc_id(options[:uuid], options[:friendly_name])
|
|
487
|
-
MultiPartyCall.new(@_client, resource_id: mpc_id[1], multi_party_prefix: mpc_id[0]).start_recording(options[:file_format], options[:
|
|
487
|
+
MultiPartyCall.new(@_client, resource_id: mpc_id[1], multi_party_prefix: mpc_id[0]).start_recording(options[:file_format], options[:recording_callback_url], options[:recording_callback_method])
|
|
488
488
|
end
|
|
489
489
|
|
|
490
490
|
def stop_recording(options = {})
|
|
@@ -517,12 +517,12 @@ module Plivo
|
|
|
517
517
|
raise_invalid_request("Member Id is mandatory")
|
|
518
518
|
end
|
|
519
519
|
options[:file_format] = 'mp3' unless options.key?(:file_format)
|
|
520
|
-
options[:
|
|
520
|
+
options[:recording_callback_method] = 'POST' unless options.key?(:recording_callback_method)
|
|
521
521
|
valid_param?(:member_id, options[:member_id], [String, Integer], true)
|
|
522
522
|
valid_param?(:uuid, options[:uuid], String, false) unless options[:uuid].nil?
|
|
523
523
|
valid_param?(:friendly_name, options[:friendly_name], String, false) unless options[:friendly_name].nil?
|
|
524
524
|
mpc_id = make_mpc_id(options[:uuid], options[:friendly_name])
|
|
525
|
-
MultiPartyCallParticipant.new(@_client, resource_id: mpc_id[1], multi_party_prefix: mpc_id[0], member_id: options[:member_id]).start_participant_recording(options[:file_format], options[:
|
|
525
|
+
MultiPartyCallParticipant.new(@_client, resource_id: mpc_id[1], multi_party_prefix: mpc_id[0], member_id: options[:member_id]).start_participant_recording(options[:file_format], options[:recording_callback_url], options[:recording_callback_method])
|
|
526
526
|
end
|
|
527
527
|
|
|
528
528
|
def stop_participant_recording(options = {})
|
data/lib/plivo/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: plivo
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 4.
|
|
4
|
+
version: 4.25.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- The Plivo SDKs Team
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2022-02-01 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|