maxemail_api 2.0.2 → 2.0.3

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: b03b6b489afedf7072b13a1b275b3872c0779bf6
4
- data.tar.gz: 11a8f8f64a661af1351c5ace19af839b27120d9b
3
+ metadata.gz: a79346ee235125dd91050bdcda3b8af33d7227c6
4
+ data.tar.gz: f46dd31a4c622c1fd90d55d7616c536be2ea8472
5
5
  SHA512:
6
- metadata.gz: 859b2580af904cd93c19cd815d7fb6dc5a4e743de0fa674e82bc3d2717d0fb9f8c14d9e03d6ad1cbf68c8aef5099b90a63409c4b9826291ae17c84eb461f7367
7
- data.tar.gz: b8b97c92c93f15e45333a964dbd433b65bce774cef835da6f84b1aa4ce30b1821519e0aa6cd819a7d2be0902786501d80597ff1571fa7ab3f09339f2987755c0
6
+ metadata.gz: 740560a2f1eb2e656d8d37251a6c3746749f02da3d2a4d793342d31948f962ce64685b01fd252787180cc71cf33c3702c16effcee95734e8cb32579bc816e821
7
+ data.tar.gz: 71471456d3215bc86a4d97ad51b5542402b530aa2ad150f4f85db04396b8a287c2d38cf8fba90c36a5e7989c3cc177c875f7d06a44b95bb0e5285d0040ca2c50
@@ -47,6 +47,10 @@ module MaxemailApiSubscriptions
47
47
  MaxemailApiShared.send_request(params: { method: 'update', data: { email_address: new_email_address }.to_json, recipientId: recipient_id }, method: 'recipient')
48
48
  end
49
49
 
50
+ def update_recipient(email_address:, data:)
51
+ MaxemailApiShared.send_request(params: { method: 'updateByEmailAddress', emailAddress: email_address, data: data }, method: 'recipient')
52
+ end
53
+
50
54
  def find_recipient_id(email_address: nil)
51
55
  response = MaxemailApiShared.send_request(params: { method: 'findByEmailAddress', emailAddress: email_address }, method: 'recipient').to_s
52
56
  return nil if response == 'null'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: maxemail_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.2
4
+ version: 2.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Murray Catto