iterable-api-client 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/README.md +5 -1
- data/lib/iterable/email.rb +7 -3
- data/lib/iterable/response.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +23 -23
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dec75eb2ce6297758dd87c44acd79435578c29bb16f23402d133c2e24d1f6820
|
4
|
+
data.tar.gz: 45658c86e6448f1e75948fa150de1bb6133dacefb3d237cf1edc5504ee90591b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9dc86fb5a431fddc281eefb86e0ed597b535dad112e03ef53de5027dd723015d8f1ac791d1ba93c1086aef2cd382d619dafaca348147ada3e7d091ed30afc353
|
7
|
+
data.tar.gz: 8428f4dfd4bec851b1ed30ee7161dfa7f26848f4c210046fb29f8485a002a06c016473366774720f79855179b27f3e8f57793dfcb3203db82956dcef4d50cfd4
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/README.md
CHANGED
@@ -81,6 +81,10 @@ response.body
|
|
81
81
|
# HTTP message
|
82
82
|
response.message
|
83
83
|
|
84
|
+
# Headers of response
|
85
|
+
response['Content-Type']
|
86
|
+
# => 'application/json; charset=utf-8'
|
87
|
+
|
84
88
|
# The URI used to make the request for the response
|
85
89
|
reponse.uri
|
86
90
|
```
|
@@ -212,7 +216,7 @@ Endpoint: `DELETE /catalogs/{catalogName}/items`
|
|
212
216
|
catalog = 'my-catalog'
|
213
217
|
catalog_items = Iterable::BulkCatalogItems.new(catalog)
|
214
218
|
item_ids = ['12345', '12346', '12347']
|
215
|
-
response = catalog_items.
|
219
|
+
response = catalog_items.delete(item_ids)
|
216
220
|
```
|
217
221
|
|
218
222
|
### Campaigns
|
data/lib/iterable/email.rb
CHANGED
@@ -18,11 +18,15 @@ module Iterable
|
|
18
18
|
#
|
19
19
|
# @param email [String] Email of user who received the message to view
|
20
20
|
# @param message_id [String|Integer] Message id for message sent
|
21
|
+
# @param attrs [Hash] Hash of attributes to pass like dataFields with the requst
|
21
22
|
#
|
22
23
|
# @return [Iterable::Response] A response object
|
23
|
-
def view(email, message_id)
|
24
|
-
|
25
|
-
|
24
|
+
def view(email, message_id, attrs = {})
|
25
|
+
attrs['email'] = email
|
26
|
+
attrs['messageId'] = message_id
|
27
|
+
attrs.compact!
|
28
|
+
|
29
|
+
Iterable.request(conf, '/email/viewInBrowser', attrs).get
|
26
30
|
end
|
27
31
|
|
28
32
|
##
|
data/lib/iterable/response.rb
CHANGED
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: iterable-api-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chavez
|
@@ -12,30 +12,30 @@ cert_chain:
|
|
12
12
|
-----BEGIN CERTIFICATE-----
|
13
13
|
MIIEeDCCAuCgAwIBAgIBATANBgkqhkiG9w0BAQsFADBBMRAwDgYDVQQDDAdjb250
|
14
14
|
YWN0MRkwFwYKCZImiZPyLGQBGRYJZWwtY2hhdmV6MRIwEAYKCZImiZPyLGQBGRYC
|
15
|
-
|
15
|
+
bWUwHhcNMjMxMTAzMTI0NjI4WhcNMjQxMTAyMTI0NjI4WjBBMRAwDgYDVQQDDAdj
|
16
16
|
b250YWN0MRkwFwYKCZImiZPyLGQBGRYJZWwtY2hhdmV6MRIwEAYKCZImiZPyLGQB
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
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UB/s/bUcmbCwMAkgtSZ1wS2yHUQZEVEyZ9IVJxRp6a/dXccue3
|
31
|
+
U7nins2YnMVIgz7f5+TBv6w6IoUy7A+vcGwVCjU5cJ0E1zuuCtMnTxmgLc8RnTBS
|
32
|
+
bfpibGhHkmdDHkEGDAi+bBrx2ebptW7pQeDtaRVrEW3MKfJNes1oJJKfdxb2xtkf
|
33
|
+
n63D/wE5M63E3iHSvJVHBNPkpa942SxwN836Ce8/P8E57ylGlVdFmQ1uRIvizdki
|
34
|
+
2FdLmUSM6E2v7Y8eKZD7hmo1Um4eI5POl0XfSaC3FAgG/QJ1P4CaGYaKjT98dOw2
|
35
|
+
JWT1CLPse7JUSW9NGp9hbZqX+FdmVho8u3BpQwtAvZB2dIiRLcaqEqxBRnt4jHCq
|
36
|
+
vGIdgu0GJEzPUTqCcDfDQUuNIvjN04ZHfnA5Q3m/I6jypQHs9LNqpo1BQzk=
|
37
37
|
-----END CERTIFICATE-----
|
38
|
-
date: 2023-
|
38
|
+
date: 2023-11-03 00:00:00.000000000 Z
|
39
39
|
dependencies:
|
40
40
|
- !ruby/object:Gem::Dependency
|
41
41
|
name: multi_json
|
metadata.gz.sig
CHANGED
Binary file
|