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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/acw/client.rb +12 -0
- data/lib/acw/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5056bbd39cf081f2341a38dd4468f6679d4d519e98aba42d11408ec8913dcb66
|
4
|
+
data.tar.gz: 4edc0ad34248773e7c1820c8d6022780a517b4995cb4fa5787a4ca3ddcb4ba40
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 999c8b63d60bd4918fada14a8a75135c5e9a152a61faa4a68c06da850b4d168fa8d618e80332ab90e72413b199de81d36ed61938734a51deef075776e2d539e9
|
7
|
+
data.tar.gz: 745760bf88da723f83e72736cbe9946d316ca01f0f2b48778ec43f04167d2240b54f79fc577ea8ecabad4fcd262b0a02b7d62156be0e28f47aecf1f0a3f78f0b
|
data/Gemfile.lock
CHANGED
data/lib/acw/client.rb
CHANGED
@@ -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 }
|
data/lib/acw/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2021-01-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: excon
|