Class: LinkedIn::Search

Inherits:
APIResource show all
Defined in:
lib/linked_in/search.rb

Overview

Search APIs

Instance Method Summary collapse

Methods inherited from APIResource

#id_to_urn, #initialize, #urn_to_id

Constructor Details

This class inherits a constructor from LinkedIn::APIResource

Instance Method Details

#searchObject #search(keyword_string) ⇒ Object #search(keyword_string, type) ⇒ Object #search(opts) ⇒ Object #search(opts, type) ⇒ Object

Search through People, Companies, and Jobs

To search through people you need to be part of LinkedIn’s Vetted API Access Program.

You can use the same API to search through Companies and Jobs.

Overloads:

  • #searchObject

    Grabs all people in your network

  • #search(keyword_string) ⇒ Object

    Keyword search through people

    Parameters:

    • keywords (String)

      search keywords

  • #search(keyword_string, type) ⇒ Object

    Keyword search through people

    Parameters:

    • keywords (String)

      search keywords

    • type (String)

      either “people”, “company”, or “job”

  • #search(opts) ⇒ Object

    Searches based on various options

    Parameters:

    • opts (Hash)

      search options

  • #search(opts, type) ⇒ Object

    Searches for a type based on various options

    Parameters:

    • opts (Hash)

      search options

    • type (String)

      either “people”, “company”, or “job”

See Also:



48
49
50
51
52
# File 'lib/linked_in/search.rb', line 48

def search(options={}, type='people')
  options, type = prepare_options(options, type)
  path = "/#{type.to_s}-search"
  get(path, options)
end