dropio 1.7 → 1.7.1
Sign up to get free protection for your applications and to get access to all the features.
- data/History.rdoc +5 -0
- data/Readme.rdoc +4 -0
- data/dropio.gemspec +1 -1
- data/lib/dropio/api.rb +2 -2
- data/lib/dropio.rb +1 -1
- metadata +1 -1
data/History.rdoc
CHANGED
data/Readme.rdoc
CHANGED
@@ -6,6 +6,10 @@ Before using the Dropio library, the application must set an API key. This key
|
|
6
6
|
|
7
7
|
Dropio::Config.api_key = "83a05513ddddb73e75c9d8146c115f7fd8e90de6"
|
8
8
|
|
9
|
+
You can also get debug information through STDERR by doing:
|
10
|
+
|
11
|
+
Dropio::Config.debug = true
|
12
|
+
|
9
13
|
|
10
14
|
== The Drop object
|
11
15
|
|
data/dropio.gemspec
CHANGED
data/lib/dropio/api.rb
CHANGED
@@ -169,8 +169,8 @@ class Dropio::Api
|
|
169
169
|
self.class.post("/drops/#{drop_name}/subscriptions", :body => { :token => token, :type => "pingback", :url => url}.merge(events))
|
170
170
|
end
|
171
171
|
|
172
|
-
def create_email_subscription(drop_name, emails,
|
173
|
-
params = {:token => token, :type => "email", :emails => emails, :welcome_from => welcome_from , :welcome_subject => welcome_subject, :welcome_message => welcome_message }.merge(events)
|
172
|
+
def create_email_subscription(drop_name, emails, message = nil, welcome_message = nil, welcome_subject = nil, welcome_from = nil, events = {}, token = nil)
|
173
|
+
params = {:token => token, :type => "email", :emails => emails, :message => message, :welcome_from => welcome_from , :welcome_subject => welcome_subject, :welcome_message => welcome_message }.merge(events)
|
174
174
|
self.class.post("/drops/#{drop_name}/subscriptions", :body => params)
|
175
175
|
end
|
176
176
|
|
data/lib/dropio.rb
CHANGED