Module: LinkedIn::API::People

Defined in:
lib/linkedin/api/people.rb

Instance Method Summary collapse

Instance Method Details

#connections(selector = '~', **opts) ⇒ Object



8
9
10
# File 'lib/linkedin/api/people.rb', line 8

def connections(selector = '~', **opts)
  execute 'people', opts.merge(selector: selector, path: 'connections')
end

#people_search(query, **opts) ⇒ Object



12
13
14
15
# File 'lib/linkedin/api/people.rb', line 12

def people_search(query, **opts)
  wrapped_fields = opts[:fields].blank? ? nil : { people: opts[:fields] }
  execute 'people-search', opts.merge(params: query, fields: wrapped_fields)
end

#profile(selector = '~', **opts) ⇒ Object



4
5
6
# File 'lib/linkedin/api/people.rb', line 4

def profile(selector = '~', **opts)
  execute 'people', { selector: selector }.merge(opts)
end