lib/shodan/clients/query.rb in shodanx-0.2.0 vs lib/shodan/clients/query.rb in shodanx-0.2.1
- old
+ new
@@ -5,24 +5,24 @@
module Shodan
module Clients
class Query < Base
# Use this method to obtain a list of search queries that users have saved in Shodan.
def list(**params)
- get("/shodan/query", params)
+ get("/shodan/query", **params)
end
# Use this method to search the directory of search queries that users have saved in Shodan.
def search(query, **params)
params[:query] = query
params = turn_into_query(params)
- get("/shodan/query/search", params)
+ get("/shodan/query/search", **params)
end
# Use this method to obtain a list of popular tags for the saved search queries in Shodan.
def tags(size = 10)
params = {}
params[:size] = size
- get("/shodan/query/tags", params)
+ get("/shodan/query/tags", **params)
end
end
end
end