Module: LinkedIn::Search
- Included in:
- Client
- Defined in:
- lib/linked_in/search.rb
Instance Method Summary collapse
-
#search(options = {}, type = 'people') ⇒ LinkedIn::Mash
Retrieve search results of the given object type.
Instance Method Details
#search(options = {}, type = 'people') ⇒ LinkedIn::Mash
Note:
People Search API is a part of the Vetted API Access Program. You must apply and get approval before using this API
Retrieve search results of the given object type
Permissions: (for people search only) r_network
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/linked_in/search.rb', line 19 def search(={}, type='people') path = "/#{type.to_s}-search" if .is_a?(Hash) fields = .delete(:fields) path += field_selector(fields) if fields end = { :keywords => } if .is_a?(String) = () result_json = get(to_uri(path, )) Mash.from_json(result_json) end |