lib/globalsms/report.rb in globalsms-1.0.0 vs lib/globalsms/report.rb in globalsms-1.0.3
- old
+ new
@@ -3,11 +3,11 @@
def initialize(args)
@api_key = args[:api_key]
@api_secret = args[:api_secret]
end
- def message(message_id)
- uri = "/sms/report/#{message_id}?key=#{@api_key}&secret=#{@api_secret}"
+ def message(message_id, limit=250)
+ uri = "/sms/report/#{message_id}?key=#{@api_key}&secret=#{@api_secret}&limit=#{limit}"
get_request(uri)
end
def last_n(limit=1)
uri = "/sms/report/sent?limit=#{limit}&key=#{@api_key}&secret=#{@api_secret}"