plivo 4.55.0 → 4.55.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +9 -0
- data/README.md +1 -1
- data/lib/plivo/resources/calls.rb +7 -0
- data/lib/plivo/resources/messages.rb +20 -7
- 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: c4707f9288fffec0a5a82cb7e3161abb404f6fbe
|
4
|
+
data.tar.gz: b723c7d0fc56abb0c39be198d7c01bb81788dbab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1ad2a8e50667f938af4c6d065a5e2872e87d170070612cd4c832fe2e3e2a4abbe9bd2a8e0e9ed52a4eb8c445cafadfea62f376269568274f407f3f04607a6fec
|
7
|
+
data.tar.gz: ca72e3d8f456ef12bec07696df35afc5d383ace6580caca463adb16a79864c8a4e12be998969d82a458ee8608fa44e946aa89fba4fbadca2cdf66de7219dcfea
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,14 @@
|
|
1
1
|
# Change Log
|
2
2
|
|
3
|
+
## [4.55.2](https://github.com/plivo/plivo-ruby/tree/v4.55.2) (2024-02-28)
|
4
|
+
**Feature - Log Redaction Enhancement**
|
5
|
+
- Added log attribute in GET and List MDR response
|
6
|
+
- Change log field from bool to string in send SMS
|
7
|
+
|
8
|
+
## [4.55.1](https://github.com/plivo/plivo-ruby/tree/v4.55.1) (2024-01-08)
|
9
|
+
**Feature - Added New Param 'type' for Speak Api**
|
10
|
+
- Added new param "type" for speak api
|
11
|
+
|
3
12
|
## [4.55.0](https://github.com/plivo/plivo-ruby/tree/v4.55.0) (2023-11-20)
|
4
13
|
**Feature - Added New Param 'registration_status' for Campaign List**
|
5
14
|
- Added new query param "registration_status" for campaign list
|
data/README.md
CHANGED
@@ -170,6 +170,12 @@ module Plivo
|
|
170
170
|
params[:legs] = options[:legs]
|
171
171
|
end
|
172
172
|
|
173
|
+
if options.key?(:type) &&
|
174
|
+
valid_param?(:type, options[:type],
|
175
|
+
[String, Symbol], true, %w[text ssml])
|
176
|
+
params[:type] = options[:type]
|
177
|
+
end
|
178
|
+
|
173
179
|
%i[loop mix].each do |param|
|
174
180
|
if options.key?(param) &&
|
175
181
|
valid_param?(param, options[param], [TrueClass, FalseClass], true)
|
@@ -620,6 +626,7 @@ module Plivo
|
|
620
626
|
# @option options [String] :legs - The leg on which the music will be played, can be aleg (i.e., A-leg is the first leg of the call or current call), bleg (i.e., B-leg is the second leg of the call),or both (i.e., both legs of the call).
|
621
627
|
# @option options [Boolean] :loop - If set to true, the audio file will play indefinitely.
|
622
628
|
# @option options [Boolean] :mix - If set to true, sounds are mixed with current audio flow.
|
629
|
+
# @option options [String] :type - Indicates the type of the text that needs to be spoken. The payload can either be plain text or SSML.
|
623
630
|
def speak(call_uuid, text, options = nil)
|
624
631
|
valid_param?(:call_uuid, call_uuid, [String, Symbol], true)
|
625
632
|
Call.new(@_client, resource_id: call_uuid).speak(text, options)
|
@@ -45,7 +45,8 @@ module Plivo
|
|
45
45
|
carrier_fees: @carrier_fees,
|
46
46
|
conversation_id: @conversation_id,
|
47
47
|
conversation_origin: @conversation_origin,
|
48
|
-
conversation_expiration_timestamp: @conversation_expiration_timestamp
|
48
|
+
conversation_expiration_timestamp: @conversation_expiration_timestamp,
|
49
|
+
log: @log
|
49
50
|
}.to_s
|
50
51
|
end
|
51
52
|
end
|
@@ -146,9 +147,15 @@ module Plivo
|
|
146
147
|
end
|
147
148
|
end
|
148
149
|
|
149
|
-
if value.key?(:log)
|
150
|
-
|
151
|
-
|
150
|
+
if value.key?(:log)
|
151
|
+
log = value[:log]
|
152
|
+
if log.is_a?(TrueClass) || log.is_a?(FalseClass) # Check if log is boolean
|
153
|
+
params[:log] = log.to_s # Convert boolean to string
|
154
|
+
elsif log.is_a?(String) # Check if log is string
|
155
|
+
params[:log] = log
|
156
|
+
else
|
157
|
+
raise ArgumentError, "Invalid type for log parameter. Expected boolean or string."
|
158
|
+
end
|
152
159
|
end
|
153
160
|
|
154
161
|
if value.key?(:message_expiry) &&
|
@@ -285,9 +292,15 @@ module Plivo
|
|
285
292
|
params[:media_ids] = options[:media_ids]
|
286
293
|
end
|
287
294
|
|
288
|
-
if options.key?(:log)
|
289
|
-
|
290
|
-
|
295
|
+
if options.key?(:log)
|
296
|
+
log = options[:log]
|
297
|
+
if log.is_a?(TrueClass) || log.is_a?(FalseClass) # Check if log is boolean
|
298
|
+
params[:log] = log.to_s # Convert boolean to string
|
299
|
+
elsif log.is_a?(String) # Check if log is string
|
300
|
+
params[:log] = log
|
301
|
+
else
|
302
|
+
raise ArgumentError, "Invalid type for log parameter. Expected boolean or string."
|
303
|
+
end
|
291
304
|
end
|
292
305
|
|
293
306
|
if options.key?(:media_urls) &&
|
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.55.
|
4
|
+
version: 4.55.2
|
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: 2024-02-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|