plivo 4.33.0 → 4.35.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/README.md +1 -1
- data/lib/plivo/resources/campaign.rb +10 -0
- data/lib/plivo/resources/messages.rb +11 -0
- 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: 4075dc6bb995418a806e88b984f8b016d6e0f141
|
4
|
+
data.tar.gz: 9bcdb5380421a73e49b73ea9c96f512f77f7a991
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 612bb679799a48139ec8907873ebd28ba9b54c370dfc60424ea27b5b89f0204b90d0135a86987294342a70edf244c26ad823f35e1e26e69a1d35667944031cb9
|
7
|
+
data.tar.gz: 2467bacadfbd13bd45da25d0b5104552d033b76a38a54de058322dce285cbe9a9431122ea0697ddc9f0ee5fb7975417d2099823401b8cc7d48138e5a46cb049c
|
data/CHANGELOG.md
CHANGED
@@ -1,4 +1,12 @@
|
|
1
1
|
# Change Log
|
2
|
+
## [4.35.0](https://github.com/plivo/plivo-ruby/tree/v4.35.0) (2022-01-18)
|
3
|
+
**Adding new attribute - 'message_expiry' in Send Message API**
|
4
|
+
- Added new attribute - message_expiry in Send Message API
|
5
|
+
|
6
|
+
## [4.34.0](https://github.com/plivo/plivo-ruby/tree/v4.34.0) (2022-12-16)
|
7
|
+
**10DLC: Update Campaign API**
|
8
|
+
- Added Update Campaign API
|
9
|
+
|
2
10
|
## [4.33.0](https://github.com/plivo/plivo-ruby/tree/v4.33.0) (2022-12-06)
|
3
11
|
**10DLC: Delete Campaign and Brand API**
|
4
12
|
- Added Delete campaign and brand API
|
data/README.md
CHANGED
@@ -86,6 +86,16 @@ module Plivo
|
|
86
86
|
perform_create(options)
|
87
87
|
end
|
88
88
|
##
|
89
|
+
# Update Camapign
|
90
|
+
def update(campaign_id, options=nil)
|
91
|
+
valid_param?(:options, options, Hash, true)
|
92
|
+
if not campaign_id
|
93
|
+
raise_invalid_request("campaign_id must be provided")
|
94
|
+
end
|
95
|
+
action = campaign_id
|
96
|
+
perform_action_with_identifier(action, 'POST', options)
|
97
|
+
end
|
98
|
+
##
|
89
99
|
# campaign number link
|
90
100
|
#
|
91
101
|
def number_link(options=nil)
|
@@ -69,6 +69,7 @@ module Plivo
|
|
69
69
|
# @option options [String] :method The method used to call the url. Defaults to POST.
|
70
70
|
# @option options [String] :log If set to false, the content of this message will not be logged on the Plivo infrastructure and the dst value will be masked (e.g., 141XXXXX528). Default is set to true.
|
71
71
|
# @option options [String] :trackable set to false
|
72
|
+
# @option options[Int]: message_expiry, int value
|
72
73
|
# @option options[List]: media_urls Minimum one media url should be present in Media urls list to send mms. Maximum allowd 10 media urls inside the list (e.g, media_urls : ['https//example.com/test.jpg', 'https://example.com/abcd.gif'])
|
73
74
|
# @option options[List]: media_ids Minimum one media ids should be present in Media ids list to send mms. Maximum allowd 10 media ids inside the list (e.g, media_ids : ['1fs211ba-355b-11ea-bbc9-02121c1190q7'])
|
74
75
|
|
@@ -122,6 +123,11 @@ module Plivo
|
|
122
123
|
if value.key?(:log) &&
|
123
124
|
valid_param?(:log, value[:log], [TrueClass, FalseClass], true)
|
124
125
|
params[:log] = value[:log]
|
126
|
+
end
|
127
|
+
|
128
|
+
if value.key?(:message_expiry) &&
|
129
|
+
valid_param?(:message_expiry, value[:message_expiry], [Integer, Integer], true)
|
130
|
+
params[:message_expiry] = value[:message_expiry]
|
125
131
|
end
|
126
132
|
|
127
133
|
if value.key?(:trackable) &&
|
@@ -219,6 +225,11 @@ module Plivo
|
|
219
225
|
params[:media_ids] = options[:media_ids]
|
220
226
|
end
|
221
227
|
|
228
|
+
if options.key?(:message_expiry) &&
|
229
|
+
valid_param?(:message_expiry, options[:message_expiry], [Integer, Integer], true)
|
230
|
+
params[:message_expiry] = options[:message_expiry]
|
231
|
+
end
|
232
|
+
|
222
233
|
if options.key?(:trackable) &&
|
223
234
|
valid_param?(:trackable, options[:trackable], [TrueClass, FalseClass], true)
|
224
235
|
params[:trackable] = options[:trackable]
|
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.35.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: 2023-01-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|