lib/linked_in/search.rb
# Retrieve search results of the given object type
#
# Permissions: (for people search only) r_network
#
# @note People Search API is a part of the Vetted API Access Program. You
#   must apply and get approval before using this API
#
# @see http://developer.linkedin.com/documents/people-search-api People Search
# @see http://developer.linkedin.com/documents/job-search-api Job Search
# @see http://developer.linkedin.com/documents/company-search Company Search
#
# @param [Hash] options search input fields
# @param [String] type type of object to return ('people', 'job' or 'company')
# @return [LinkedIn::Mash]
Retrieve search results of the given object type
Permissions: (for people search only) r_network
Retrieve search results of the given object type Permissions : ( for people search only ) r_network
def search(options={}, type='people')
      path = "/#{type.to_s}-search"
      if options.is_a?(Hash)
        fields = options.delete(:fields)
        path += field_selector(fields) if fields
      end
      options = { :keywords => options } if options.is_a?(String)
      options = format_options_for_query(options)
      result_json = get(to_uri(path, options))
      Mash.from_json(result_json)
    end
def search ( options = { } , type = 'people' ) path = "/#{type.to_s}-search" if options . is_a? ( Hash ) fields = options . delete ( :fields ) path += field_selector ( fields ) if fields end options = { :keywords => options } if options . is_a? ( String ) options = format_options_for_query ( options ) result_json = get ( to_uri ( path , options ) ) Mash . from_json ( result_json ) end
Retrieve search results of the given object type
Permissions: (for people search only) r_network
Retrieve search results of the given object type Permissions : ( for people search only ) r_network
None
LinkedIn::Mash
options
<not_specific>
type
<not_specific>
<not_specific>
type type of object to return ('people', 'job' or 'company')
type type of object to return ( ' people ' ' job ' or ' company ' )
note
People Search API is a part of the Vetted API Access Program. You must apply and get approval before using this API
People Search API is a part of the Vetted API Access Program . You must apply and get approval before using this API
see
developer.linkedin.com/documents/people-search-api People Search
developer . linkedin . com / documents / people - search - api People Search
see
developer.linkedin.com/documents/job-search-api Job Search
developer . linkedin . com / documents / job - search - api Job Search
see
developer.linkedin.com/documents/company-search Company Search
developer . linkedin . com / documents / company - search Company Search