plivo 4.31.0 → 4.33.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/base/resource_interface.rb +8 -0
- data/lib/plivo/resources/brand.rb +17 -0
- data/lib/plivo/resources/campaign.rb +7 -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: 91e6a46c6cdd2eaba084e75f7de4540798f44329
|
4
|
+
data.tar.gz: e25964de25b70475fb5e18aeead32ad74971f84b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d979a7a052c24b240afbf714b8d741b1308a35f348a56e1bc42261836f90575de0219ee59e0525383e96ceed30af013ed8f9c4d237bb4625737fd7629713af95
|
7
|
+
data.tar.gz: ff1df38d8b84e83ff8d68a8f38127303327410dc8c002e1879577f87a654ce7e676529e987c9d882d4a96b0923b96ffe30a2a4d7a55839cca00a914272fbabc9
|
data/CHANGELOG.md
CHANGED
@@ -1,4 +1,12 @@
|
|
1
1
|
# Change Log
|
2
|
+
## [4.33.0](https://github.com/plivo/plivo-ruby/tree/v4.33.0) (2022-12-06)
|
3
|
+
**10DLC: Delete Campaign and Brand API**
|
4
|
+
- Added Delete campaign and brand API
|
5
|
+
|
6
|
+
## [4.32.0](https://github.com/plivo/plivo-ruby/tree/v4.32.0) (2022-11-03)
|
7
|
+
**10DLC: Brand Usecase API**
|
8
|
+
- Added Brand Usecase API
|
9
|
+
|
2
10
|
## [4.31.0](https://github.com/plivo/plivo-ruby/tree/v4.31.0) (2022-10-14)
|
3
11
|
**Adding new attributes to Account PhoneNumber object**
|
4
12
|
-Added 3 new keys to AccountPhoneNumber object:`tendlc_registration_status`, `tendlc_campaign_id` and `toll_free_sms_verification` (https://www.plivo.com/docs/numbers/api/account-phone-number#the-accountphonenumber-object)
|
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)
|
@@ -76,6 +76,23 @@ module Plivo
|
|
76
76
|
end
|
77
77
|
perform_create(options)
|
78
78
|
end
|
79
|
+
|
80
|
+
##
|
81
|
+
# Get BrandUsecase
|
82
|
+
# @param [String] brand_id
|
83
|
+
def get_usecases(brand_id)
|
84
|
+
valid_param?(:brand_id, brand_id, [String, Symbol], true)
|
85
|
+
identifier = brand_id + '/usecases'
|
86
|
+
perform_action_with_identifier(identifier, 'GET', nil)
|
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
|
79
96
|
end
|
80
97
|
end
|
81
98
|
end
|
@@ -131,6 +131,13 @@ module Plivo
|
|
131
131
|
action = campaign_id + '/Number/' + number
|
132
132
|
perform_action_with_identifier(action, 'DELETE', nil)
|
133
133
|
end
|
134
|
+
##
|
135
|
+
# Delete Campaign
|
136
|
+
# @param [String] campaign_id
|
137
|
+
def delete(campaign_id)
|
138
|
+
valid_param?(:campaign_id, campaign_id, [String, Symbol], true)
|
139
|
+
perform_delete(campaign_id)
|
140
|
+
end
|
134
141
|
end
|
135
142
|
end
|
136
143
|
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.33.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: 2022-
|
11
|
+
date: 2022-12-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|