Skip to content
This repository has been archived by the owner on May 14, 2023. It is now read-only.

Is the Global Index API available in this gem? #9

Closed
LucasCioffi opened this issue Dec 20, 2017 · 1 comment
Closed

Is the Global Index API available in this gem? #9

LucasCioffi opened this issue Dec 20, 2017 · 1 comment

Comments

@LucasCioffi
Copy link

LucasCioffi commented Dec 20, 2017

Diffbot has a "global index" API in beta where you can search for news by keyword: https://www.diffbot.com/dev/docs/global-index/

Am I correct in assuming it's not covered in the gem at this time? The interesting thing is that I did see Diffbot::Search return a result. I'm just not sure if there's a method that will execute the search.

> x = Diffbot::Search.new(ENV['DIFFBOT_TOKEN'])
=> #<Search:0x00007fcde2a51ad8 @current_user="my_token_is_shown_here", @query=nil, @sections=[], @params={}, @options={}>
> x.query = 'Apple Inc'
=> "Apple Inc"
> x # note that @query is now set below
=> #<Search:0x00007fcde2a51ad8 @current_user="my_token_is_shown_here", @query="Apple Inc", @sections=[], @params={}, @options={}>
> x.methods.sort
=> [:!, :!=, :!~, :<=>, :==, :===, :=~, :__binding__, :__id__, :__send__, :`, :acts_like?, :admin?, :articles, :as_json, :blank?, :bullet_key, :byebug, :categories, :class, :class_eval, :clone, :companies, :current_user, :current_user=, :customers, :dclone, :debugger, :deep_dup, :define_singleton_method, :display, :dup, :duplicable?, :enum_for, :eql?, :equal?, :extend, :freeze, :friendly_id?, :frozen?, :gem, :hash, :html_safe?, :in?, :inspect, :instance_eval, :instance_exec, :instance_of?, :instance_values, :instance_variable_defined?, :instance_variable_get, :instance_variable_names, :instance_variable_set, :instance_variables, :is_a?, :is_haml?, :itself, :kind_of?, :load_dependency, :mappings, :method, :methods, :nil?, :object_id, :options, :options=, :params, :params=, :presence, :presence_in, :present?, :pretty_inspect, :pretty_print, :pretty_print_cycle, :pretty_print_inspect, :pretty_print_instance_variables, :primary_key_value, :private_methods, :protected_methods, :pry, :psych_to_yaml, :public_method, :public_methods, :public_send, :query, :query=, :remove_instance_variable, :require_dependency, :require_or_load, :respond_to?, :results, :section, :section=, :sections, :sections=, :send, :singleton_class, :singleton_method, :singleton_methods, :solr_search?, :suppress_warnings, :taint, :tainted?, :tap, :to_enum, :to_json, :to_param, :to_query, :to_ruby, :to_s, :to_v8, :to_yaml, :to_yaml_properties, :trust, :try, :try!, :unfriendly_id?, :unloadable, :untaint, :untrust, :untrusted?, :users, :vendor_consultants, :vendor_products, :vendors, :with_options]
@greshny
Copy link
Collaborator

greshny commented Dec 20, 2017

Hi Lucas
You’re correct. It’s not implemented here.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants