acw 1.3.2 → 1.3.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: fe9d8bfedad891dc4c137426e6efa8eb9655e940b1709c071f81f89051b0821d
4
- data.tar.gz: 781329947357dfb3db4cdf206646ab337af4b453ee88c952bf5ac6f1b8c23c8a
3
+ metadata.gz: 5056bbd39cf081f2341a38dd4468f6679d4d519e98aba42d11408ec8913dcb66
4
+ data.tar.gz: 4edc0ad34248773e7c1820c8d6022780a517b4995cb4fa5787a4ca3ddcb4ba40
5
5
  SHA512:
6
- metadata.gz: e7df0939dbf9d23df23d7b9e83f3c296776348981c11620e7b3105ce62304cab1f37009f17fc053b3ea9e827ea3bbaad207943ee65f29fa241dd9a4d68f5bd6f
7
- data.tar.gz: 4a174ad13bdaa0b4e8dfc8c8a5ada3850ad0116f6ae039f8ce086c667e0a94c2d0a2cd6eeca1b0fa8a1d69807db83bed76a8667d31ec4522bf5e5f93f967d015
6
+ metadata.gz: 999c8b63d60bd4918fada14a8a75135c5e9a152a61faa4a68c06da850b4d168fa8d618e80332ab90e72413b199de81d36ed61938734a51deef075776e2d539e9
7
+ data.tar.gz: 745760bf88da723f83e72736cbe9946d316ca01f0f2b48778ec43f04167d2240b54f79fc577ea8ecabad4fcd262b0a02b7d62156be0e28f47aecf1f0a3f78f0b
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- acw (1.3.2)
4
+ acw (1.3.3)
5
5
  excon (>= 0.73.0)
6
6
 
7
7
  GEM
@@ -69,6 +69,18 @@ module Acw
69
69
  end
70
70
  end
71
71
 
72
+ def contact_list_subscription(args = {})
73
+ safe_http_call do
74
+ args[:status] = (args[:status] == 'subscribe' ? 1 : 2)
75
+ params = { contactList: args }
76
+ connection.post(
77
+ path: "/api/#{API_VERSION}/contactLists",
78
+ headers: headers(config[:token]),
79
+ body: params.to_json
80
+ )
81
+ end
82
+ end
83
+
72
84
  def create_tag(args = {})
73
85
  safe_http_call do
74
86
  params = { tag: args }
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Acw
4
- VERSION = '1.3.2'
4
+ VERSION = '1.3.3'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: acw
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.2
4
+ version: 1.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anchieta Júnior
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-01-05 00:00:00.000000000 Z
11
+ date: 2021-01-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: excon