lib/testingbot/api.rb in testingbot-0.1.4 vs lib/testingbot/api.rb in testingbot-0.1.5

- old
+ new

@@ -2,11 +2,11 @@ module TestingBot class Api VERSION = 1 - API_URL = "http://api.testingbot.com" + API_URL = "https://api.testingbot.com" attr_reader :config def initialize(opts = {}) @config = TestingBot::Config.new(opts) @@ -24,11 +24,11 @@ response = put("/user", new_params) response["success"] end def get_tests(offset = 0, count = 10) - get("/tests") + get("/tests?offset=#{offset}&count=#{count}") end def get_single_test(test_id) get("/tests/#{test_id}") end @@ -107,6 +107,6 @@ http = Net::HTTP.new(url.host, url.port) http.basic_auth @config[:client_key], @config[:client_secret] response = http.post(url.path, params.map { |k, v| "#{k.to_s}=#{v}" }.join("&")) end end -end \ No newline at end of file +end