plivo 4.50.0 → 4.51.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 +5 -0
- data/README.md +1 -1
- data/lib/plivo/resources/campaign.rb +16 -2
- 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: e9064c62f724b62e2aeea109723c81030fe138ef
|
|
4
|
+
data.tar.gz: 8a0348e73d6792c79034d23cb1e7e90748304183
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7f2331bc3b7eb435076f747b19e54a30662051b534baff258c5dbaba40baf6ae659f1d7abd073c5529e3fad97ec4aca3018896bd63aa7d7003759171a75fc798
|
|
7
|
+
data.tar.gz: cae52fb1615526472e629ca5455c12f4b38b06f9d8332f709487e1f5f2e3e213005981a9fd4a4b57a5285e6c4c3065614c7f5bf4b5e94f29ca9996f202d096a5
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## [4.51.0](https://github.com/plivo/plivo-ruby/tree/v4.51.0) (2023-10-16)
|
|
4
|
+
**Introducing campaign_source & import partner camapign API**
|
|
5
|
+
- New field campaign_source introduced
|
|
6
|
+
- Import partner campaign API added
|
|
7
|
+
|
|
3
8
|
## [4.50.0](https://github.com/plivo/plivo-ruby/tree/v4.50.0) (2023-10-13)
|
|
4
9
|
**Feature - WhatsApp message support**
|
|
5
10
|
- Added new params `template` and new message_type `whatsapp` to [send message API](https://www.plivo.com/docs/sms/api/message#send-a-message)
|
data/README.md
CHANGED
|
@@ -36,8 +36,9 @@ module Plivo
|
|
|
36
36
|
##
|
|
37
37
|
# List all Campaign
|
|
38
38
|
# @param [Hash] options
|
|
39
|
-
# @option options [String] :
|
|
39
|
+
# @option options [String] :brand_id
|
|
40
40
|
# @option options [Status] :usecase
|
|
41
|
+
# @option options [String] :campaign_source
|
|
41
42
|
# @option options [Status] :limit
|
|
42
43
|
# @option options [Status] :offset
|
|
43
44
|
# @return [Hash]
|
|
@@ -45,7 +46,7 @@ module Plivo
|
|
|
45
46
|
return perform_list_without_object if options.nil?
|
|
46
47
|
|
|
47
48
|
params = {}
|
|
48
|
-
%i[usecase
|
|
49
|
+
%i[usecase brand_id campaign_source limit offset].each do |param|
|
|
49
50
|
if options.key?(param) && valid_param?(param, options[param],
|
|
50
51
|
[String, Integer], true)
|
|
51
52
|
params[param] = options[param]
|
|
@@ -96,6 +97,19 @@ module Plivo
|
|
|
96
97
|
perform_action_with_identifier(action, 'POST', options)
|
|
97
98
|
end
|
|
98
99
|
##
|
|
100
|
+
|
|
101
|
+
#import campaign
|
|
102
|
+
def import(options=nil)
|
|
103
|
+
valid_param?(:options, options, Hash, true)
|
|
104
|
+
if not options[:campaign_id]
|
|
105
|
+
raise_invalid_request("campaign_id must be provided")
|
|
106
|
+
end
|
|
107
|
+
if not options[:campaign_alias]
|
|
108
|
+
raise_invalid_request("campaign_alias must be provided")
|
|
109
|
+
end
|
|
110
|
+
action = 'Import'
|
|
111
|
+
perform_action_with_identifier(action, 'POST', options)
|
|
112
|
+
end
|
|
99
113
|
# campaign number link
|
|
100
114
|
#
|
|
101
115
|
def number_link(options=nil)
|
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.51.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: 2023-10-
|
|
11
|
+
date: 2023-10-16 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|