lib/racked.rb in racked-0.1.1 vs lib/racked.rb in racked-0.2.0

- old
+ new

@@ -32,12 +32,12 @@ @server = Server.new(MAIL_CFG["server"], MAIL_CFG["version_prefix"], MAIL_CFG["user_key"], MAIL_CFG["secret_hash"]) @server.xml_format end - def get_mailboxes + def get_mailboxes(size=50, offset=0) #get customer list - response = @server.get '/customers/856863/domains/econetmail.com/rs/mailboxes', @server.json_format + response = @server.get '/customers/856863/domains/econetmail.com/rs/mailboxes/?size=#{size}&offset=#{offset}', @server.json_format puts response.inspect # puts response['x-error-message'] # puts response.body response = JSON.parse(response.body ) # puts response.inspect \ No newline at end of file