class LinkedIn::People

People APIs

@see developer.linkedin.com/documents/people People API @see developer.linkedin.com/documents/profile-fields Profile Fields @see developer.linkedin.com/documents/field-selectors Field Selectors @see developer.linkedin.com/documents/accessing-out-network-profiles Accessing Out of Network Profiles

Public Instance Methods

connections(id={}, options={}) click to toggle source

Retrieve a list of 1st degree connections for a user who has granted access to his/her account

Permissions: r_network

@see developer.linkedin.com/documents/connections-api @macro profile_args

# File lib/linked_in/people.rb, line 49
def connections(id={}, options={})
  options = parse_id(id, options)
  path = "#{profile_path(options, false)}/connections"
  get(path, options)
end
new_connections(since, options={}) click to toggle source

Retrieve a list of the latest set of 1st degree connections for a user

Permissions: r_network

@see developer.linkedin.com/documents/connections-api

@param [String, Fixnum, Time] modified_since timestamp in unix time

miliseconds indicating since when you want to retrieve new
connections

@param [Hash] opts profile options @macro profile_options @return [LinkedIn::Mash]

# File lib/linked_in/people.rb, line 68
def new_connections(since, options={})
  since = parse_modified_since(since)
  options.merge!('modified' => 'new', 'modified-since' => since)
  path = "#{profile_path(options, false)}/connections"
  get(path, options)
end
picture_urls(options={}) click to toggle source

Retrieve the picture url api.linkedin.com/v1/people/~/picture-urls::(original)

Permissions: r_network

@options [String] :id, the id of the person for whom you want the profile picture @options [String] :picture_size, default: 'original' @options [String] :secure, default: 'false', options: ['false','true']

example for use in code: client.picture_urls(:id => 'id_of_connection')

# File lib/linked_in/people.rb, line 85
def picture_urls(options={})
  picture_size = options.delete(:picture_size) || 'original'
  path = "#{profile_path(options)}/picture-urls::(#{picture_size})"
  get(path, options)
end
profile(id={}, options={}) click to toggle source

Retrieve a member's LinkedIn profile.

Required permissions: r_basicprofile, r_fullprofile

@see developer.linkedin.com/documents/profile-api @macro profile_args @macro multi_profile_options

# File lib/linked_in/people.rb, line 36
def profile(id={}, options={})
  options = parse_id(id, options)
  path = profile_path(options)
  get(path, options)
end
skills(id={}, options={}) click to toggle source

Retrieve the skills

Permissions: r_fullprofile

# File lib/linked_in/people.rb, line 94
def skills(id={}, options={})
  options = parse_id(id, options)
  path = "#{profile_path(options, false)}/skills"
  get(path, options)
end