Sha256: d4fead916a50132f12ac884cc85e2476e4823b474a2c091f297f6aeae0b033d9
Contents?: true
Size: 362 Bytes
Versions: 6
Compression:
Stored size: 362 Bytes
Contents
require File.join(File.dirname(__FILE__), "..", "lib", "kooaba.rb") # set the query key Kooaba.query_key = <query-key-secret-token> # send the query to the kooaba servers query = Kooaba::Query.new(:image_path => <path-to-image>) response = Kooaba.query(query) # inspect the result puts "Response code: #{response.code}" puts "Response body: #{response.body}"
Version data entries
6 entries across 6 versions & 1 rubygems
Version | Path |
---|---|
kooaba-0.0.7 | examples/query.rb |
kooaba-0.0.6 | examples/query.rb |
kooaba-0.0.5 | examples/query.rb |
kooaba-0.0.4 | examples/query.rb |
kooaba-0.0.3 | examples/query.rb |
kooaba-0.0.2 | examples/query.rb |