send_with_us 4.1.1 → 4.2.0

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
  SHA1:
3
- metadata.gz: 56ee4813e7b1a2c3d113e0bf3fbbc3365f4b5f79
4
- data.tar.gz: 246fcd2b604a0830efd07bf59d57f49b0385a626
3
+ metadata.gz: d5f681312016d5dc49a66353e896e504cda65c4d
4
+ data.tar.gz: da27c29575370c1ad5c2f9ad24b39163edc6042f
5
5
  SHA512:
6
- metadata.gz: b8f6b6e30510edd368e3538f96dc808ddb7befb734cc86756f3cb46f59089476483e312fa158a4bf0d091cdee9423bb39e3e967285cf3654391970a35ff1fa97
7
- data.tar.gz: b2aae2d02b1ed3be7b8422fb5e979936b4e44d1b20f67da12f31fdd6a03b72199be042cce5538b2a9a2eac2d051eecfc3e322b5de8258eaa393e856cf119d833
6
+ metadata.gz: 21dcd5eddb76a0e2994f0f278bd549ce77459dabf8ec651e920ed676d9353fc9209eb28cd347cf6810e00a6cd32fa4e7804a848f2eba2ae6187828777625ae50
7
+ data.tar.gz: 31604cd3f1580e6fdb8e8fdbd998befa2654cf8fc1ce9f859bf24b3e9c646805a09cf85f9c16fa98b8612e4eb6f9513904b72cc83a2a316e25726c7cd998bde9
@@ -1,35 +1,100 @@
1
- 4.1.1 - Fix to encode responses as UTF-8
2
- 4.1.0 - `send_email` now supports already encoded files
3
- 4.0.1 - Remove unused methods
4
- 4.0.0 - Deprecate Logs List API endpoint
5
- 3.1.0 - Add `strict` option to the render call
6
- 3.0.0 - Deprecate and remove Conversions API calls
7
- 2.0.0 - Deprecate Customer Groups API
8
- 1.13.0 - Add support to get customer details
9
- 1.12.0 - Customer logs endpoint added and optional parameters for logs fixed when no options sent
10
- 1.11.5 - Added tags to drip campaign activations
11
- 1.11.4 - Added optional parameters to customer_create
12
- 1.11.3 - Fix bug in customer remove method where arguments were empty
13
- 1.11.2 - Fix bug in logs method where options weren't being respected
14
- 1.11.1 - Fix typo in group method
15
- 1.11.0 - Add template create/update methods as well as group create/update methods
16
- 1.10.2 - Include render parameter on locale
17
- 1.10.1 - Tag support, error base class, logs method
18
- 1.9.0 - Locale support. Introduce send\_email(). Deprecate send\_with().
19
- 1.8.0 - Tags support for send\_with
20
- 1.7.0 -
21
- 1.6.0 -
22
- 1.5.0 -
23
- 1.4.3 - Add customer add/deletion support
24
- 1.1.4 - Add Drips v2.0 support
25
- 1.0.5 - Add attachment support
26
- 1.0.4 - Add drip campaign unsubscribe support
27
- 1.0.3 - Don't allow nil email\_id
28
- 1.0.2 - More sensible error messages
29
- 1.0.0 - Updated for v1\_0 of SWU api. Added emails endpoint.
30
- 0.0.4 - Rewritten to be more gem-like
31
- - Accepts configuration via a Rails-style initializer
32
- - Test coverage
33
- 0.0.3 - No idea
34
- 0.0.2 - Full json post body
35
- 0.0.1 - First Version
1
+ ## 4.2.0
2
+ - add a `log_events` method to get the events list on a Sendwithus log
3
+
4
+ ## 4.1.1
5
+ - Fix to encode responses as UTF-8
6
+
7
+ ## 4.1.0
8
+ - `send_email` now supports already encoded files
9
+
10
+ ## 4.0.1
11
+ - Remove unused methods
12
+
13
+ ## 4.0.0
14
+ - Deprecate Logs List API endpoint
15
+
16
+ ## 3.1.0
17
+ - Add `strict` option to the render call
18
+
19
+ ## 3.0.0
20
+ - Deprecate and remove Conversions API calls
21
+
22
+ ## 2.0.0
23
+ - Deprecate Customer Groups API
24
+
25
+ ## 1.13.0
26
+ - Add support to get customer details
27
+
28
+ ## 1.12.0
29
+ - Customer logs endpoint added and optional parameters for logs fixed when no options sent
30
+
31
+ ## 1.11.5
32
+ - Added tags to drip campaign activations
33
+
34
+ ## 1.11.4
35
+ - Added optional parameters to customer_create
36
+
37
+ ## 1.11.3
38
+ - Fix bug in customer remove method where arguments were empty
39
+
40
+ ## 1.11.2
41
+ - Fix bug in logs method where options weren't being respected
42
+
43
+ ## 1.11.1
44
+ - Fix typo in group method
45
+
46
+ ## 1.11.0
47
+ - Add template create/update methods as well as group create/update methods
48
+
49
+ ## 1.10.2
50
+ - Include render parameter on locale
51
+
52
+ ## 1.10.1
53
+ - Tag support, error base class, logs method
54
+
55
+ ## 1.9.0
56
+ - Locale support. Introduce send\_email(). Deprecate send\_with().
57
+
58
+ ## 1.8.0
59
+ - Tags support for send\_with
60
+
61
+ ## 1.7.0
62
+
63
+ ## 1.6.0
64
+
65
+ ## 1.5.0
66
+
67
+ ## 1.4.3
68
+ - Add customer add/deletion support
69
+
70
+ ## 1.1.4
71
+ - Add Drips v2.0 support
72
+
73
+ ## 1.0.5
74
+ - Add attachment support
75
+
76
+ ## 1.0.4
77
+ - Add drip campaign unsubscribe support
78
+
79
+ ## 1.0.3
80
+ - Don't allow nil email\_id
81
+
82
+ ## 1.0.2
83
+ - More sensible error messages
84
+
85
+ ## 1.0.0
86
+ - Updated for v1\_0 of SWU api. Added emails endpoint.
87
+
88
+ ## 0.0.4
89
+ - Rewritten to be more gem-like
90
+ - Accepts configuration via a Rails-style initializer
91
+ - Test coverage
92
+
93
+ ## 0.0.3
94
+ - No idea
95
+
96
+ ## 0.0.2
97
+ - Full json post body
98
+
99
+ ## 0.0.1
100
+ - First Version
data/README.md CHANGED
@@ -363,6 +363,13 @@ Optional Arguments:
363
363
  obj.customer_email_log('customer@example.com', count: 1)
364
364
  ```
365
365
 
366
+ ### Get events for a single log
367
+ This will retrieve the events and associated data for a specified log.
368
+
369
+ ```ruby
370
+ obj.log_events('log_sld7xWJ3isc23-3')
371
+ ```
372
+
366
373
  ## Errors
367
374
 
368
375
  The following errors may be generated:
@@ -249,6 +249,12 @@ module SendWithUs
249
249
  SendWithUs::ApiRequest.new(@configuration).get(endpoint)
250
250
  end
251
251
 
252
+ def log_events(log_id)
253
+ endpoint = "logs/#{log_id}/events"
254
+
255
+ SendWithUs::ApiRequest.new(@configuration).get(endpoint)
256
+ end
257
+
252
258
  def delete_template(template_id)
253
259
  endpoint = "templates/#{template_id}"
254
260
  SendWithUs::ApiRequest.new(@configuration).delete(endpoint)
@@ -1,3 +1,3 @@
1
1
  module SendWithUs
2
- VERSION = '4.1.1'
2
+ VERSION = '4.2.0'
3
3
  end
@@ -52,6 +52,19 @@ describe SendWithUs::Api do
52
52
  end
53
53
  end
54
54
 
55
+ describe '#log/events' do
56
+ describe 'with log_id' do
57
+ let(:log_id) { 'log_TESTTEST123' }
58
+ before { SendWithUs::ApiRequest.any_instance.expects(:get).with("logs/#{log_id}/events") }
59
+
60
+ it { subject.log_events(log_id) }
61
+ end
62
+
63
+ describe 'without log_id' do
64
+ it { -> { subject.log }.must_raise ArgumentError }
65
+ end
66
+ end
67
+
55
68
  describe '#start_on_drip_campaign' do
56
69
  let(:email) { 'some@email.stub' }
57
70
  let(:drip_campaign_id) { 'dc_SoMeCampaIGnID' }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: send_with_us
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.1.1
4
+ version: 4.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Harris
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2018-07-02 00:00:00.000000000 Z
15
+ date: 2018-11-16 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: rake