fotolia_rails 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/fotolia_rails.rb +1 -1
- data/lib/fotolia_rails/version.rb +1 -1
- metadata +1 -1
data/lib/fotolia_rails.rb
CHANGED
@@ -9,7 +9,7 @@ module FotoliaRails
|
|
9
9
|
end
|
10
10
|
|
11
11
|
def search_object(id)
|
12
|
-
|
12
|
+
uri = URI.parse("http://api.fotolia.com/Rest/1/media/getMediaData?id=#{id}")
|
13
13
|
http = Net::HTTP.new(uri.host, uri.port)
|
14
14
|
request = Net::HTTP::Get.new(uri.request_uri)
|
15
15
|
request.basic_auth("#{@api_key}", "")
|