Method: Graphcommons::API.get
- Defined in:
- lib/graphcommons.rb
.get(endpoint, options = {}) ⇒ Object
Handles GET requests, returns API response as ruby hash.
56 57 58 59 60 |
# File 'lib/graphcommons.rb', line 56 def self.get endpoint, = {} uri = self._gd(endpoint, ) puts "GET #{uri}" if Graphcommons.verbose RestClient.get(uri,:authentication=>@@apikey,:content_type=>"application/json") {|data| self._respond data, uri, } end |