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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 003ee817aaa95dc181bf7b36909387689f70ffa1ed755878eb7132a0166b0130
4
- data.tar.gz: 3ab136966f544fc25f2431d39a99ac84e94cf5f88c1d496f1dd7b4bd2e45cff2
3
+ metadata.gz: dec75eb2ce6297758dd87c44acd79435578c29bb16f23402d133c2e24d1f6820
4
+ data.tar.gz: 45658c86e6448f1e75948fa150de1bb6133dacefb3d237cf1edc5504ee90591b
5
5
  SHA512:
6
- metadata.gz: d3696c057360e661ee4f632182323a9d99a8af4110be64fce1d1dfd58980c9a13d65dc1b0767df53f17502925526949e1fc17aadc980a4b654479a34a65009bc
7
- data.tar.gz: 874f5d7201a038ddc54437e1d0920b3c0bf77f5d5333c5ccdcd5a756e20154d0942b0920c800669e2adb8ef0d3f65a62b66644a936ed25800bf59d26bd571a93
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.create(item_ids)
219
+ response = catalog_items.delete(item_ids)
216
220
  ```
217
221
 
218
222
  ### Campaigns
@@ -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
- params = { email: email, messageId: message_id }
25
- Iterable.request(conf, '/email/viewInBrowser', params).get
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
  ##
@@ -7,7 +7,7 @@ module Iterable
7
7
  class Response
8
8
  extend Forwardable
9
9
 
10
- def_delegators :@resp, :code, :message, :uri
10
+ def_delegators :@resp, :code, :message, :uri, :[]
11
11
 
12
12
  attr_reader :body
13
13
 
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.0
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
- bWUwHhcNMjIwNTE2MTYzNDEwWhcNMjMwNTE2MTYzNDEwWjBBMRAwDgYDVQQDDAdj
15
+ bWUwHhcNMjMxMTAzMTI0NjI4WhcNMjQxMTAyMTI0NjI4WjBBMRAwDgYDVQQDDAdj
16
16
  b250YWN0MRkwFwYKCZImiZPyLGQBGRYJZWwtY2hhdmV6MRIwEAYKCZImiZPyLGQB
17
- GRYCb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Y3RAZWwtY2hhdmV6Lm1lMA0GCSqGSIb3DQEBCwUAA4IBgQBHNG6m
29
+ qf8zXX/sLG44km0YhTLbjDyUm2p181iVbOQKDp2IVOKRGRFTEhZdXX0cmRTtvmVg
30
+ d47dFqaquB9Y73UB/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-01-18 00:00:00.000000000 Z
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