plivo 4.32.0 → 4.34.0
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 +4 -4
- data/CHANGELOG.md +8 -0
- data/README.md +1 -1
- data/lib/plivo/base/resource_interface.rb +8 -0
- data/lib/plivo/resources/brand.rb +8 -0
- data/lib/plivo/resources/campaign.rb +17 -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: de4b78ac5799e5ff9f65d3623021fc4e33292bf8
|
|
4
|
+
data.tar.gz: 4fbef9dc4f1100357020bfdab2e311fd8ba123e0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 15336d49a866cf91315a34668867a7c4dd83691bdf6e4b7d92536f190a849edf0418266af694c039747598e364a4ee881c7390b27ef4df10043425f2c0fee049
|
|
7
|
+
data.tar.gz: 435fa499c6a611525f7fae8f7f95fccc076d1b31931306977524a5da73b7db7bb4f1648b073445904b86441f0a49b6d923b6f1ea4f42b334d54060942a5264ad
|
data/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
# Change Log
|
|
2
|
+
## [4.34.0](https://github.com/plivo/plivo-ruby/tree/v4.34.0) (2022-12-16)
|
|
3
|
+
**10DLC: Update Campaign API**
|
|
4
|
+
- Added Update Campaign API
|
|
5
|
+
|
|
6
|
+
## [4.33.0](https://github.com/plivo/plivo-ruby/tree/v4.33.0) (2022-12-06)
|
|
7
|
+
**10DLC: Delete Campaign and Brand API**
|
|
8
|
+
- Added Delete campaign and brand API
|
|
9
|
+
|
|
2
10
|
## [4.32.0](https://github.com/plivo/plivo-ruby/tree/v4.32.0) (2022-11-03)
|
|
3
11
|
**10DLC: Brand Usecase API**
|
|
4
12
|
- Added Brand Usecase API
|
data/README.md
CHANGED
|
@@ -59,6 +59,14 @@ module Plivo
|
|
|
59
59
|
)
|
|
60
60
|
end
|
|
61
61
|
|
|
62
|
+
def perform_delete(identifier, params = nil)
|
|
63
|
+
valid_param?(:identifier, identifier, [String, Symbol], true)
|
|
64
|
+
Response.new(
|
|
65
|
+
@_client.send_request(@_resource_uri + identifier.to_s + '/', 'DELETE', params, nil, false, is_voice_request: @_is_voice_request),
|
|
66
|
+
@_identifier_string
|
|
67
|
+
)
|
|
68
|
+
end
|
|
69
|
+
|
|
62
70
|
def perform_submit(identifier, params = nil)
|
|
63
71
|
valid_param?(:identifier, identifier, [String, Symbol], true)
|
|
64
72
|
response_json = @_client.send_request(@_resource_uri + identifier.to_s + '/Submit/', 'POST', params, nil, false, is_voice_request: @_is_voice_request)
|
|
@@ -85,6 +85,14 @@ module Plivo
|
|
|
85
85
|
identifier = brand_id + '/usecases'
|
|
86
86
|
perform_action_with_identifier(identifier, 'GET', nil)
|
|
87
87
|
end
|
|
88
|
+
|
|
89
|
+
##
|
|
90
|
+
# Delete Brand
|
|
91
|
+
# @param [String] brand_id
|
|
92
|
+
def delete(brand_id)
|
|
93
|
+
valid_param?(:brand_id, brand_id, [String, Symbol], true)
|
|
94
|
+
perform_delete(brand_id)
|
|
95
|
+
end
|
|
88
96
|
end
|
|
89
97
|
end
|
|
90
98
|
end
|
|
@@ -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)
|
|
@@ -131,6 +141,13 @@ module Plivo
|
|
|
131
141
|
action = campaign_id + '/Number/' + number
|
|
132
142
|
perform_action_with_identifier(action, 'DELETE', nil)
|
|
133
143
|
end
|
|
144
|
+
##
|
|
145
|
+
# Delete Campaign
|
|
146
|
+
# @param [String] campaign_id
|
|
147
|
+
def delete(campaign_id)
|
|
148
|
+
valid_param?(:campaign_id, campaign_id, [String, Symbol], true)
|
|
149
|
+
perform_delete(campaign_id)
|
|
150
|
+
end
|
|
134
151
|
end
|
|
135
152
|
end
|
|
136
153
|
end
|
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.34.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-05 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|