lib/createsend/campaign.rb in createsend-2.4.0 vs lib/createsend/campaign.rb in createsend-2.5.0
- old
+ new
@@ -136,11 +136,11 @@
response = get 'recipients', options
Hashie::Mash.new(response)
end
# Retrieves the opens for this campaign.
- def opens(date, page=1, page_size=1000, order_field="date",
+ def opens(date="", page=1, page_size=1000, order_field="date",
order_direction="asc")
options = { :query => {
:date => date,
:page => page,
:pagesize => page_size,
@@ -149,11 +149,11 @@
response = get "opens", options
Hashie::Mash.new(response)
end
# Retrieves the subscriber clicks for this campaign.
- def clicks(date, page=1, page_size=1000, order_field="date",
+ def clicks(date="", page=1, page_size=1000, order_field="date",
order_direction="asc")
options = { :query => {
:date => date,
:page => page,
:pagesize => page_size,
@@ -162,11 +162,11 @@
response = get "clicks", options
Hashie::Mash.new(response)
end
# Retrieves the unsubscribes for this campaign.
- def unsubscribes(date, page=1, page_size=1000, order_field="date",
+ def unsubscribes(date="", page=1, page_size=1000, order_field="date",
order_direction="asc")
options = { :query => {
:date => date,
:page => page,
:pagesize => page_size,
@@ -175,11 +175,11 @@
response = get "unsubscribes", options
Hashie::Mash.new(response)
end
# Retrieves the spam complaints for this campaign.
- def spam(date, page=1, page_size=1000, order_field="date",
+ def spam(date="", page=1, page_size=1000, order_field="date",
order_direction="asc")
options = { :query => {
:date => date,
:page => page,
:pagesize => page_size,
@@ -188,10 +188,10 @@
response = get "spam", options
Hashie::Mash.new(response)
end
# Retrieves the bounces for this campaign.
- def bounces(date="1900-01-01", page=1, page_size=1000, order_field="date",
+ def bounces(date="", page=1, page_size=1000, order_field="date",
order_direction="asc")
options = { :query => {
:date => date,
:page => page,
:pagesize => page_size,
\ No newline at end of file