plivo 4.30.0 → 4.30.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 +12 -3
- data/README.md +1 -1
- data/lib/plivo/base_client.rb +7 -7
- data/lib/plivo/resources/campaign.rb +9 -0
- data/lib/plivo/version.rb +1 -1
- data/plivo.gemspec +2 -2
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cadbccf5ea0d9633436b708272ea94f9b1172af4
|
4
|
+
data.tar.gz: a5945cc8d2753848fd7fccfde863d781e34a4427
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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-
|
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-
|
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
data/lib/plivo/base_client.rb
CHANGED
@@ -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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
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
|
35
|
-
spec.add_dependency 'faraday_middleware', '~> 1.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.
|
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-
|
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
|
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
|
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
|
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
|
40
|
+
version: '1.0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: htmlentities
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|