dawanda-dawanda_client 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/dawanda/request.rb +1 -5
- metadata +1 -1
data/lib/dawanda/request.rb
CHANGED
|
@@ -8,9 +8,7 @@ module Dawanda
|
|
|
8
8
|
|
|
9
9
|
# The base URL for API requests
|
|
10
10
|
def self.base_url
|
|
11
|
-
url = "http://#{Dawanda.country}.
|
|
12
|
-
puts url
|
|
13
|
-
url
|
|
11
|
+
url = "http://#{Dawanda.country}.dawanda.com/api/v1"
|
|
14
12
|
end
|
|
15
13
|
|
|
16
14
|
# Perform a GET request for the resource with optional parameters - returns
|
|
@@ -18,9 +16,7 @@ module Dawanda
|
|
|
18
16
|
def self.get(resource_path, parameters = {})
|
|
19
17
|
parameters = {:format => 'json'}.update(parameters)
|
|
20
18
|
request = Request.new(resource_path, parameters)
|
|
21
|
-
puts request.inspect
|
|
22
19
|
response = Response.new(request.get)
|
|
23
|
-
puts response.inspect
|
|
24
20
|
response
|
|
25
21
|
end
|
|
26
22
|
|