Sha256: 59f4947f5d44d305f0c8a363b64667c1f8b76d8c9663bb9e68dde52658c43aa4
Contents?: true
Size: 507 Bytes
Versions: 26
Compression:
Stored size: 507 Bytes
Contents
require 'dogapi' module Dogapi class V1 # for namespacing class SearchService < Dogapi::APIService API_VERSION = "v1" def search(query) begin params = { :api_key => @api_key, :application_key => @application_key, :q => query } request(Net::HTTP::Get, "/api/#{API_VERSION}/search", params, nil, false) rescue Exception => e suppress_error_if_silent e end end end end end
Version data entries
26 entries across 26 versions & 1 rubygems