Class: LinkedIn::Endpoints::V1
- Inherits:
-
Saddle::TraversalEndpoint
- Object
- Saddle::TraversalEndpoint
- LinkedIn::Endpoints::V1
- Defined in:
- lib/linkedin-client/endpoints/v1.rb
Instance Method Summary collapse
- #get_info_by_fields(fields = LinkedIn::Client.option_fields, opts = {}) ⇒ Object
- #get_profile(id, opts = {}) ⇒ Object
Instance Method Details
#get_info_by_fields(fields = LinkedIn::Client.option_fields, opts = {}) ⇒ Object
14 15 16 |
# File 'lib/linkedin-client/endpoints/v1.rb', line 14 def get_info_by_fields(fields = LinkedIn::Client.option_fields, opts = {}) get_with_format("people/~:(#{fields.join(',')})", {}, opts) end |
#get_profile(id, opts = {}) ⇒ Object
10 11 12 |
# File 'lib/linkedin-client/endpoints/v1.rb', line 10 def get_profile(id, opts = {}) get_with_format("people/id=#{id}", {}, opts) end |