maxemail_api 2.0.10 → 2.0.11
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 -0
- 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: 62ce3af0d5a834e12b83023cc5b15ebfbc8a2692feb1ecc92b403c3eda75e22a
|
4
|
+
data.tar.gz: b71143959aae4517b4dd896ce00580c15b50e284c82bec98395c9aa26ca1b4ab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2de2fa8ee63953e2c71f95471ab110268caf18cf1fc19230149c659f21012765f39101c5faed87f8b66a61b52ab96aa6650d9e60a8d3d47c6fc161efa1b21b79
|
7
|
+
data.tar.gz: 90f14c289fb0ca9f20df1a319a72e1fee80d7eed00d35855d379e9e35e710af8e0c561ee1b11691b6ec575bed27bd3ba6efe85d6ce873d1e6668032929500a82
|
data/lib/maxemail_api/shared.rb
CHANGED
@@ -2,12 +2,12 @@ module MaxemailApiShared
|
|
2
2
|
class << self
|
3
3
|
def send_request(params:, method:)
|
4
4
|
puts 'MaxemailApiResponse params and Method:'
|
5
|
-
puts "
|
5
|
+
puts "form_params: #{params}"
|
6
6
|
puts "method: #{method}"
|
7
7
|
puts 'END MaxemailApiResponse params and Method:'
|
8
8
|
response = HTTP.headers(authentication_header)
|
9
9
|
.post("#{ENV['MAXEMAIL_API_URL']}#{method}",
|
10
|
-
|
10
|
+
form: params)
|
11
11
|
puts 'MaxemailApiResponse:'
|
12
12
|
puts response
|
13
13
|
puts 'END MaxemailApiResponse :'
|
@@ -1,6 +1,7 @@
|
|
1
1
|
module MaxemailApiTriggered
|
2
2
|
extend self
|
3
3
|
include MaxemailApiShared
|
4
|
+
|
4
5
|
def send(folder_name: nil, email_name: nil, email_id: nil, email_address:, profile_data:)
|
5
6
|
email_id = MaxemailApiTriggered.find_email_id(folder_name: folder_name, email_name: email_name) if email_id.nil?
|
6
7
|
MaxemailApiTriggered.send_triggered(email_address: email_address, email_id: email_id, profile_data: profile_data)
|