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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 606070046bb7d420278f8016104051f8ebfb3cda
4
- data.tar.gz: 365eb4acf62fcbffa1f0ef649aa8ba4676726e36
3
+ metadata.gz: e9064c62f724b62e2aeea109723c81030fe138ef
4
+ data.tar.gz: 8a0348e73d6792c79034d23cb1e7e90748304183
5
5
  SHA512:
6
- metadata.gz: 7eed6b78d2112388c6c6b63169c28875a0b312682a97b25beba7e0e00f55659720894b53c162bdb87c896cb65d5030d07608eaae3cb987b31aa5c112ce7d184b
7
- data.tar.gz: da6d8623e7a30512ab5890aed8ce1953b4d864a28c50184b49e61e828981664d0529e88bbd68a7672ff752ee72fbaaf20077108d68fd623fe95620c496462400
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
@@ -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.50.0'
12
+ gem 'plivo', '>= 4.51.0'
13
13
  ```
14
14
 
15
15
  And then execute:
@@ -36,8 +36,9 @@ module Plivo
36
36
  ##
37
37
  # List all Campaign
38
38
  # @param [Hash] options
39
- # @option options [String] :brand
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 brand limit offset].each do |param|
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
@@ -1,3 +1,3 @@
1
1
  module Plivo
2
- VERSION = "4.50.0".freeze
2
+ VERSION = "4.51.0".freeze
3
3
  end
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.50.0
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-13 00:00:00.000000000 Z
11
+ date: 2023-10-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday