plivo 4.7.0 → 4.7.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e900720171e4df2094d35fb616d9ddc8643caad9
4
- data.tar.gz: 5d13064ff1a724d757015c2460acaf427b760d85
3
+ metadata.gz: 27e78b1d3b0da475d5b7bc48985460db5a7fee0b
4
+ data.tar.gz: efd5113cd127bb099449f365c30406fdf35ead96
5
5
  SHA512:
6
- metadata.gz: '0365769457f55e14b67bea6ba143ae7383f3b7da0a1c476237af5e7b2afc14d80c6e1686471b4bda4e41ad07fc0dfc72f2b977df8752977b0db463482c09c223'
7
- data.tar.gz: 289321daf7b17b46954d96a605561f5d7869c449287fe9f7b438af6206fc02134be0a92d09c6cc88fc68467f71a9eb7395d038fc58149d07d8d5a2493a1e0def
6
+ metadata.gz: 99d38e6766b25aa3d0be69122f287df3760b06b177ad06e1efa3d6bf52673154aa39dd901c4463e5bfc68384366cf67c52246dacae56b28a92036697fe8c0f1a
7
+ data.tar.gz: 8b9a013b00f5aae92c63947b2c4f75be3093357e3e2029ea7f971019d2484ccb8dce71d90d1d2cc695d7ce67155b0b0c8b1599aa81353c462027eb5c120b6974
@@ -1,5 +1,8 @@
1
1
  # Change Log
2
2
 
3
+ ## [4.7.1](https://github.com/plivo/plivo-ruby/releases/tag/v4.7.1) (2020-05-06)
4
+ - Fix Send MMS with existing media_ids.
5
+
3
6
  ## [4.7.0](https://github.com/plivo/plivo-ruby/releases/tag/v4.7.0) (2020-04-29)
4
7
  - Add V3 signature helper functions.
5
8
 
data/README.md CHANGED
@@ -8,7 +8,7 @@ The Plivo Ruby SDK makes it simpler to integrate communications into your Ruby a
8
8
  Add this line to your application's Gemfile:
9
9
 
10
10
  ```ruby
11
- gem 'plivo', '>= 4.7.0'
11
+ gem 'plivo', '>= 4.7.1'
12
12
  ```
13
13
 
14
14
  And then execute:
@@ -69,6 +69,7 @@ module Plivo
69
69
  # @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.
70
70
  # @option options [String] :trackable set to false
71
71
  #@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'])
72
+ #@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'])
72
73
 
73
74
  def create(src, dst, text = nil, options = nil, powerpack_uuid = nil)
74
75
  valid_param?(:src, src, [Integer, String, Symbol], false)
@@ -130,6 +131,10 @@ module Plivo
130
131
  valid_param?(:media_urls, options[:media_urls], Array, true)
131
132
  params[:media_urls] = options[:media_urls]
132
133
  end
134
+ if options.key?(:media_ids) &&
135
+ valid_param?(:media_ids, options[:media_ids], Array, true)
136
+ params[:media_ids] = options[:media_ids]
137
+ end
133
138
  perform_create(params)
134
139
  end
135
140
 
@@ -148,6 +153,7 @@ module Plivo
148
153
  # @option options [Int] :offset Denotes the number of value items by which the results should be offset. Eg:- If the result contains a 1000 values and limit is set to 10 and offset is set to 705, then values 706 through 715 are displayed in the results. This parameter is also used for pagination of the results.
149
154
  # @option options [String] :error_code Delivery Response code returned by the carrier attempting the delivery. See Supported error codes {https://www.plivo.com/docs/api/message/#standard-plivo-error-codes}.
150
155
  #@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'])
156
+ #@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'])
151
157
  def list(options = nil)
152
158
  return perform_list if options.nil?
153
159
  valid_param?(:options, options, Hash, true)
@@ -1,3 +1,3 @@
1
1
  module Plivo
2
- VERSION = '4.7.0'.freeze
2
+ VERSION = '4.7.1'.freeze
3
3
  end
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.7.0
4
+ version: 4.7.1
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: 2020-04-29 00:00:00.000000000 Z
11
+ date: 2020-05-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday