maxemail_api 2.0.0 → 2.0.1
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 +5 -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: edd501253b75b15d28dd0f84d550f02870d9644e
|
4
|
+
data.tar.gz: d2611b6d2eef9ef4421bdecfccd05a969ba67124
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5b2d9c69c4d07e55a1a67e535d2a13ff1f93ccc2da04a0167b2b490256155cfa2cd0a1dc0cb663313be7f233cbb3f74923bd50122c7c9af45344ff638ad7c8aa
|
7
|
+
data.tar.gz: 01cb9e5e9a56fb47282920a8b5dc2cfe180f439dee40f612f1319cdc53ea86c408d7024f77ccdb93d7fa303720a29f18a227b3ab1ea7b22a4482ec25d33e0098
|
@@ -39,6 +39,11 @@ module MaxemailApiSubscriptions
|
|
39
39
|
MaxemailApiShared.send_request(params: { method: 'fetchLists', listID: list_id, recipientId: recipient_id }, method: 'recipient')
|
40
40
|
end
|
41
41
|
|
42
|
+
def update_subscription_email(old_email_address:nil, recipient_id: nil, new_email_address:)
|
43
|
+
recipient_id = find_recipient_id(email_address: old_email_address) if recipient_id.nil?
|
44
|
+
MaxemailApiShared.send_request(params: { method: 'update', data: { email_address: new_email_address }.to_json, recipientId: recipient_id }, method: 'recipient')
|
45
|
+
end
|
46
|
+
|
42
47
|
def find_recipient_id(email_address: nil)
|
43
48
|
MaxemailApiShared.send_request(params: { method: 'findByEmailAddress', emailAddress: email_address }, method: 'recipient')
|
44
49
|
end
|