Module: ImageSearcher::API
- Includes:
- HTTParty
- Defined in:
- lib/image_searcher/api.rb
Constant Summary collapse
- BASE_URI =
"http://api.ababeen.com/api/images.php"
Class Method Summary collapse
Class Method Details
.get_json(url) ⇒ Object
7 8 9 10 |
# File 'lib/image_searcher/api.rb', line 7 def self.get_json(url) response = HTTParty.get(url) JSON.parse(response.body) end |