maxemail_api 2.0.7 → 2.0.8
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/shared.rb +2 -2
- data/lib/maxemail_api/triggered.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f19c87348dbe9c80cb5c91fb2778c8119d8292a59dd12afd6c57e908cdc15901
|
4
|
+
data.tar.gz: de7abb4b8d1ddeecf2f55b8cbcb96b0d91a8b1c280132f9fbc3ff6a66ee38cc5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7be4009b3d9e5e01e9e99ed0e2ee9ed796a32dcdb3925641697c98f86f458272b72e2033a5e9950da7ba9bce20e521e4b7f9d3100fabc3d368a623d9998b1045
|
7
|
+
data.tar.gz: facc02714d7d10c1f681aab87f2aff7ca463f6d9eb9900a0d33384e36eec3ab6919d0c49ea0cbac39d8426ea000bb776bd063b397b643ec05891e7d8663924b5
|
data/lib/maxemail_api/shared.rb
CHANGED
@@ -6,8 +6,8 @@ module MaxemailApiShared
|
|
6
6
|
puts "method: #{method}"
|
7
7
|
puts 'END MaxemailApiResponse params and Method:'
|
8
8
|
response = HTTP.headers(authentication_header)
|
9
|
-
.
|
10
|
-
|
9
|
+
.post("#{ENV['MAXEMAIL_API_URL']}#{method}",
|
10
|
+
params: params)
|
11
11
|
puts 'MaxemailApiResponse:'
|
12
12
|
puts response
|
13
13
|
puts 'END MaxemailApiResponse :'
|
@@ -7,7 +7,7 @@ module MaxemailApiTriggered
|
|
7
7
|
MaxemailApiTriggered.send_triggered(email_address: email_address, email_id: email_id, profile_data: profile_data)
|
8
8
|
end
|
9
9
|
|
10
|
-
def trigger_folder(folder_id:, email_address:, profile_data:
|
10
|
+
def trigger_folder(folder_id:, email_address:, profile_data:)
|
11
11
|
return MaxemailApiResponse.new(data: {}, success: false, message: 'Folder not found') if folder_id.nil?
|
12
12
|
return MaxemailApiResponse.new(data: {}, success: false, message: 'Invalid Profile data') unless valid_profile_data?(profile_data)
|
13
13
|
return MaxemailApiResponse.new(data: {}, success: false, message: 'Invalid Email address') unless valid_email?(email_address)
|