send_with_us 1.12.1 → 1.13.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: 6ea35997a63c666abeca822b04e7c92d22ed2abb
4
- data.tar.gz: ee9b8fbc4acdaa994e52ad70cfa1d5219ad1170b
3
+ metadata.gz: cd68ba634d4a5e56d9191ea1d8db8180cf47aa79
4
+ data.tar.gz: 5cea81fa62102ca3698e846c4ea00aef8d3e1230
5
5
  SHA512:
6
- metadata.gz: 97ace58aa32e22b31808ed726265f89541a3f1f0acc78a1a2a5cbb73f4654bf02bf07b2b2d074b600cec0f57acb34603a88f56730d5e84bd2202d27335861667
7
- data.tar.gz: d20decfa15439ad6197380a6019bf4ef9ea6d41350d70ecd07cca37f420c5a6de5fc5ad5fa7157e54d30842f759349b4a5c54926a4dbd2f287399fc6d00f1519
6
+ metadata.gz: c6df92e12c6d1d3191fe042d8d18d115c38722084ad7125684e925fd5f4cbccd2eadecbb216a674d5de03a5de80e32e1356d3ce6b739970172fcb8d32d918c14
7
+ data.tar.gz: 715b5bf40c68b413141012c82b0f70e0ba5333345289cb7aed64c2c4de51a886f158c48d30eb11b98dc6bcc74df57a8a46c4090446a8be31e57b7d1b0c6dcd53
@@ -0,0 +1,7 @@
1
+ ### Client version
2
+
3
+ ### Expected behaviour
4
+
5
+ ### Actual behaviour
6
+
7
+ ### Steps to reproduce
@@ -1,11 +1,13 @@
1
- 1.11.5 - added tags to drip campaign activations
2
- 1.11.4 - added optional parameters to customer_create
3
- 1.11.3 - fix bug in customer remove method where arguments were empty
4
- 1.11.2 - fix bug in logs method where options weren't being respected
5
- 1.11.1 - fix typo in group method
6
- 1.11.0 - add template create/update methods as well as group create/update methods
7
- 1.10.2 - include render parameter on locale
8
- 1.10.1 - tag support, error base class, logs method
1
+ 1.13.0 - Add support to get customer details
2
+ 1.12.0 - Customer logs endpoint added and optional parameters for logs fixed when no options sent
3
+ 1.11.5 - Added tags to drip campaign activations
4
+ 1.11.4 - Added optional parameters to customer_create
5
+ 1.11.3 - Fix bug in customer remove method where arguments were empty
6
+ 1.11.2 - Fix bug in logs method where options weren't being respected
7
+ 1.11.1 - Fix typo in group method
8
+ 1.11.0 - Add template create/update methods as well as group create/update methods
9
+ 1.10.2 - Include render parameter on locale
10
+ 1.10.1 - Tag support, error base class, logs method
9
11
  1.9.0 - Locale support. Introduce send\_email(). Deprecate send\_with().
10
12
  1.8.0 - Tags support for send\_with
11
13
  1.7.0 -
data/README.md CHANGED
@@ -264,6 +264,12 @@ end
264
264
 
265
265
  ## Customers
266
266
 
267
+ ### Get a Customer
268
+
269
+ ```ruby
270
+ customer = obj.customer_get("visha@example.com")
271
+ ```
272
+
267
273
  ### Create/Update a Customer
268
274
 
269
275
  ```ruby
@@ -248,6 +248,10 @@ module SendWithUs
248
248
  SendWithUs::ApiRequest.new(@configuration).post(endpoint, payload)
249
249
  end
250
250
 
251
+ def customer_get(email)
252
+ SendWithUs::ApiRequest.new(@configuration).get("customers/#{email}")
253
+ end
254
+
251
255
  def customer_create(email, data = {}, locale = nil, groups = [])
252
256
  payload = {email: email}
253
257
 
@@ -1,3 +1,3 @@
1
1
  module SendWithUs
2
- VERSION = '1.12.1'
2
+ VERSION = '1.13.0'
3
3
  end
@@ -94,4 +94,11 @@ describe SendWithUs::Api do
94
94
  it { subject.start_on_drip_campaign(email, drip_campaign_id, {}, locale, tags) }
95
95
  end
96
96
  end
97
+
98
+ describe '#customer_get' do
99
+ let(:email) {'customer@example.com'}
100
+ before { SendWithUs::ApiRequest.any_instance.expects(:get).with("customers/#{email}") }
101
+
102
+ it { subject.customer_get(email) }
103
+ end
97
104
  end
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: 1.12.1
4
+ version: 1.13.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: 2016-07-29 00:00:00.000000000 Z
15
+ date: 2016-09-28 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: rake
@@ -63,6 +63,7 @@ executables: []
63
63
  extensions: []
64
64
  extra_rdoc_files: []
65
65
  files:
66
+ - ".github/ISSUE_TEMPLATE"
66
67
  - ".gitignore"
67
68
  - ".travis.yml"
68
69
  - CHANGELOG.md