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 +4 -4
- data/lib/maxemail_api/subscriptions.rb +4 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a79346ee235125dd91050bdcda3b8af33d7227c6
|
4
|
+
data.tar.gz: f46dd31a4c622c1fd90d55d7616c536be2ea8472
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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'
|