email-opened 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/email-opened/version.rb +1 -1
- data/lib/email-opened.rb +3 -1
- metadata +1 -1
data/lib/email-opened/version.rb
CHANGED
data/lib/email-opened.rb
CHANGED
@@ -27,7 +27,9 @@ class EmailOpened
|
|
27
27
|
|
28
28
|
def send(*message)
|
29
29
|
url = "http://app.emailopened.com/#{@eo_api_key}/api/v1/messages"
|
30
|
-
|
30
|
+
to = message[:to]
|
31
|
+
token = message[:token]
|
32
|
+
response = RestClient.post url, { accept: :json, "to[]": to, token: token }
|
31
33
|
puts response
|
32
34
|
end
|
33
35
|
end
|