class

DuckDuckGo::Client

Inherits Reference < Object

Constructors

new(config : Config = Config.new, adapter : HTTP::Adapter | Nil = nil)
Source

Instance methods

adapter
Source
config
Source
query(query : String, params : Params = Params.new) : InstantAnswer

Query the Instant Answer API

Source
secure_query(query : String, params : Params = Params.new) : InstantAnswer

Query with HTTPS (convenience method)

Source