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.
@@ -1,3 +1,3 @@
1
1
  class EmailOpened
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
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
- response = RestClient.post url, { accept: :json, message: message }
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: email-opened
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: