Module: LinkedIn::Api::People
- Included in:
- Client
- Defined in:
- lib/linked_in/api/people.rb
Overview
People APIs
Instance Method Summary collapse
-
#connections(options = {}) ⇒ LinkedIn::Mash
Retrieve a list of 1st degree connections for a user who has granted access to his/her account.
-
#new_connections(modified_since, options = {}) ⇒ LinkedIn::Mash
Retrieve a list of the latest set of 1st degree connections for a user.
-
#picture_urls(options = {}) ⇒ Object
Retrieve the picture url http://api.linkedin.com/v1/people/~/picture-urls::(original).
-
#profile(options = {}) ⇒ LinkedIn::Mash
Retrieve a member's LinkedIn profile.
Instance Method Details
#connections(options = {}) ⇒ LinkedIn::Mash
Retrieve a list of 1st degree connections for a user who has granted access to his/her account
Permissions: r_network
34 35 36 37 |
# File 'lib/linked_in/api/people.rb', line 34 def connections(={}) path = "#{person_path()}/connections" simple_query(path, ) end |
#new_connections(modified_since, options = {}) ⇒ LinkedIn::Mash
Retrieve a list of the latest set of 1st degree connections for a user
Permissions: r_network
50 51 52 53 54 |
# File 'lib/linked_in/api/people.rb', line 50 def new_connections(modified_since, ={}) .merge!('modified' => 'new', 'modified-since' => modified_since) path = "#{person_path()}/connections" simple_query(path, ) end |
#picture_urls(options = {}) ⇒ Object
Retrieve the picture url http://api.linkedin.com/v1/people/~/picture-urls::(original)
Permissions: r_network
example for use in code: client.picture_urls(:id => 'id_of_connection')
66 67 68 69 70 |
# File 'lib/linked_in/api/people.rb', line 66 def picture_urls(={}) picture_size = .delete(:picture_size) || 'original' path = "#{picture_urls_path()}::(#{picture_size})" simple_query(path, ) end |
#profile(options = {}) ⇒ LinkedIn::Mash
Retrieve a member's LinkedIn profile.
Permissions: r_basicprofile, r_fullprofile
20 21 22 23 |
# File 'lib/linked_in/api/people.rb', line 20 def profile(={}) path = person_path() simple_query(path, ) end |