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 +4 -4
- data/CHANGELOG.md +100 -35
- data/README.md +7 -0
- data/lib/send_with_us/api.rb +6 -0
- data/lib/send_with_us/version.rb +1 -1
- data/test/lib/send_with_us/api_test.rb +13 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d5f681312016d5dc49a66353e896e504cda65c4d
|
4
|
+
data.tar.gz: da27c29575370c1ad5c2f9ad24b39163edc6042f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 21dcd5eddb76a0e2994f0f278bd549ce77459dabf8ec651e920ed676d9353fc9209eb28cd347cf6810e00a6cd32fa4e7804a848f2eba2ae6187828777625ae50
|
7
|
+
data.tar.gz: 31604cd3f1580e6fdb8e8fdbd998befa2654cf8fc1ce9f859bf24b3e9c646805a09cf85f9c16fa98b8612e4eb6f9513904b72cc83a2a316e25726c7cd998bde9
|
data/CHANGELOG.md
CHANGED
@@ -1,35 +1,100 @@
|
|
1
|
-
4.
|
2
|
-
|
3
|
-
|
4
|
-
4.
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
1.
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
1.0
|
26
|
-
|
27
|
-
|
28
|
-
1.0
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
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:
|
data/lib/send_with_us/api.rb
CHANGED
@@ -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)
|
data/lib/send_with_us/version.rb
CHANGED
@@ -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.
|
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-
|
15
|
+
date: 2018-11-16 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: rake
|