plivo 4.30.0 → 4.30.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e9dc7434e8982f184b0e1896144431f32fc82a1e
4
- data.tar.gz: 975f64c13a825a1aba8558b821fb2032557648a5
3
+ metadata.gz: cadbccf5ea0d9633436b708272ea94f9b1172af4
4
+ data.tar.gz: a5945cc8d2753848fd7fccfde863d781e34a4427
5
5
  SHA512:
6
- metadata.gz: 24a3cb5257654ae4e8c200cec5ac0291fa407fe669832887258f4e06a7bf9f6715549c4ec0c59f058d6ed9c47d49a387019eae8ee23642725204a54f82bee039
7
- data.tar.gz: 65c9323280aa2390745ee00d16e0505ee82802896d3d8fb4b0ef81f8e8d44d6ccf602fb133c8cdc8cf2e588177c02359b5a57fa755ddf9e1e40f768948cc8e06
6
+ metadata.gz: d5369dbbc7bca78eb67c4e59368c845a1161e5906752bf0c7dbca1feec45cdbc8dd91123f194c5920e1045c10427d242afdb64d69ed65b381594245cfb61f0c4
7
+ data.tar.gz: 9775793ae2d34675569fa9bf7ef38378e3d63776a8a4ca1db967768a4a41e7328a8dae1fa7d081884d57f0c792e53166ef7980d7279334576a8bb5134d318f1e
data/CHANGELOG.md CHANGED
@@ -1,14 +1,23 @@
1
1
  # Change Log
2
2
 
3
- ## [4.30.0](https://github.com/plivo/plivo-go/tree/v4.30.0) (2022-08-26)
3
+ ## [4.30.2](https://github.com/plivo/plivo-ruby/tree/v4.30.2) (2022-09-28)
4
+ **10DLC: Campaign request**
5
+ - Added more attributes to create campaign request
6
+
7
+ ## [4.30.1](https://github.com/plivo/plivo-ruby/tree/v4.30.1) (2022-09-20)
8
+ **stability - faraday upgrade**
9
+ - faraday version upgrade
10
+
11
+
12
+ ## [4.30.0](https://github.com/plivo/plivo-ruby/tree/v4.30.0) (2022-08-26)
4
13
  **Feature - 10DLC APIs**
5
14
  - Added new 10DLC APIs
6
15
 
7
- ## [4.29.0](https://github.com/plivo/plivo-go/tree/v4.29.0) (2022-08-01)
16
+ ## [4.29.0](https://github.com/plivo/plivo-ruby/tree/v4.29.0) (2022-08-01)
8
17
  **Feature - Token Creation**
9
18
  - `JWT Token Creation API` added functionality to create a new JWT token.
10
19
 
11
- ## [4.28.0](https://github.com/plivo/plivo-go/tree/v4.28.0) (2022-07-11)
20
+ ## [4.28.0](https://github.com/plivo/plivo-ruby/tree/v4.28.0) (2022-07-11)
12
21
  **Feature - STIR Attestation**
13
22
  - Add stir attestation param as part of Get CDR and Get live call APIs Response
14
23
 
data/README.md CHANGED
@@ -9,7 +9,7 @@ The Plivo Ruby SDK makes it simpler to integrate communications into your Ruby a
9
9
  Add this line to your application's Gemfile:
10
10
 
11
11
  ```ruby
12
- gem 'plivo', '>= 4.30.0'
12
+ gem 'plivo', '>= 4.30.2'
13
13
  ```
14
14
 
15
15
  And then execute:
@@ -137,7 +137,7 @@ module Plivo
137
137
  # DANGER: Basic auth should always come after headers, else
138
138
  # The headers will replace the basic_auth
139
139
 
140
- faraday.basic_auth(auth_id, auth_token)
140
+ faraday.request(:basic_auth, auth_id, auth_token)
141
141
 
142
142
  faraday.proxy=@proxy_hash if @proxy_hash
143
143
  faraday.response :json, content_type: /\bjson$/
@@ -150,7 +150,7 @@ module Plivo
150
150
  # DANGER: Basic auth should always come after headers, else
151
151
  # The headers will replace the basic_auth
152
152
 
153
- faraday.basic_auth(auth_id, auth_token)
153
+ faraday.request(:basic_auth, auth_id, auth_token)
154
154
 
155
155
  faraday.proxy=@proxy_hash if @proxy_hash
156
156
  faraday.response :json, content_type: /\bjson$/
@@ -163,7 +163,7 @@ module Plivo
163
163
  # DANGER: Basic auth should always come after headers, else
164
164
  # The headers will replace the basic_auth
165
165
 
166
- faraday.basic_auth(auth_id, auth_token)
166
+ faraday.request(:basic_auth, auth_id, auth_token)
167
167
 
168
168
  faraday.proxy=@proxy_hash if @proxy_hash
169
169
  faraday.response :json, content_type: /\bjson$/
@@ -176,7 +176,7 @@ module Plivo
176
176
  # DANGER: Basic auth should always come after headers, else
177
177
  # The headers will replace the basic_auth
178
178
 
179
- faraday.basic_auth(auth_id, auth_token)
179
+ faraday.request(:basic_auth, auth_id, auth_token)
180
180
 
181
181
  faraday.proxy=@proxy_hash if @proxy_hash
182
182
  faraday.response :json, content_type: /\bjson$/
@@ -189,7 +189,7 @@ module Plivo
189
189
  # DANGER: Basic auth should always come after headers, else
190
190
  # The headers will replace the basic_auth
191
191
 
192
- faraday.basic_auth(auth_id, auth_token)
192
+ faraday.request(:basic_auth, auth_id, auth_token)
193
193
 
194
194
  faraday.proxy=@proxy_hash if @proxy_hash
195
195
  faraday.response :json, content_type: /\bjson$/
@@ -202,7 +202,7 @@ module Plivo
202
202
  # DANGER: Basic auth should always come after headers, else
203
203
  # The headers will replace the basic_auth
204
204
 
205
- faraday.basic_auth(auth_id, auth_token)
205
+ faraday.request(:basic_auth, auth_id, auth_token)
206
206
 
207
207
  faraday.proxy=@proxy_hash if @proxy_hash
208
208
  faraday.response :json, content_type: /\bjson$/
@@ -255,7 +255,7 @@ module Plivo
255
255
 
256
256
  faraday.request :multipart
257
257
  faraday.request :url_encoded
258
- faraday.basic_auth(auth_id, auth_token)
258
+ faraday.request(:basic_auth, auth_id, auth_token)
259
259
 
260
260
  faraday.proxy=@proxy_hash if @proxy_hash
261
261
  faraday.response :json, content_type: /\bjson$/
@@ -74,6 +74,15 @@ module Plivo
74
74
  if not options[:usecase]
75
75
  raise_invalid_request("usecase must be provided")
76
76
  end
77
+ if not options[:message_flow]
78
+ raise_invalid_request("message_flow must be provided")
79
+ end
80
+ if not options[:help_message]
81
+ raise_invalid_request("help_message must be provided")
82
+ end
83
+ if not options[:optout_message]
84
+ raise_invalid_request("optout_message must be provided")
85
+ end
77
86
  perform_create(options)
78
87
  end
79
88
  ##
data/lib/plivo/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Plivo
2
- VERSION = "4.30.0".freeze
2
+ VERSION = "4.30.2".freeze
3
3
  end
data/plivo.gemspec CHANGED
@@ -31,8 +31,8 @@ Gem::Specification.new do |spec|
31
31
 
32
32
  spec.required_ruby_version = '>= 2.0.0'
33
33
 
34
- spec.add_dependency 'faraday', '~> 1.0.1'
35
- spec.add_dependency 'faraday_middleware', '~> 1.0.0'
34
+ spec.add_dependency 'faraday', '~> 1.0'
35
+ spec.add_dependency 'faraday_middleware', '~> 1.0'
36
36
  spec.add_dependency 'htmlentities'
37
37
  spec.add_dependency 'jwt'
38
38
 
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.30.0
4
+ version: 4.30.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: 2022-08-26 00:00:00.000000000 Z
11
+ date: 2022-09-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 1.0.1
19
+ version: '1.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 1.0.1
26
+ version: '1.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: faraday_middleware
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 1.0.0
33
+ version: '1.0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 1.0.0
40
+ version: '1.0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: htmlentities
43
43
  requirement: !ruby/object:Gem::Requirement