Module: EzLinkedin::Api::QueryMethods
- Included in:
- Client
- Defined in:
- lib/ezlinkedin/api/query_methods.rb
Instance Method Summary collapse
-
#company(options = {}) ⇒ type
Do a company search based on id, email, or universal-name.
-
#connections(options = {}) ⇒ Mash
Retrieve the authenticated user’s connections.
-
#network_updates(options = {}) ⇒ Mash
Retrieve the user’s social feed.
-
#profile(options = {}) ⇒ Mash
Retrieve a certain profile depending on the options passed in.
Instance Method Details
#company(options = {}) ⇒ type
Do a company search based on id, email, or universal-name
52 53 54 55 56 |
# File 'lib/ezlinkedin/api/query_methods.rb', line 52 def company(={}) path = company_path() fields = .include?(:fields) make_query(path, , fields) end |
#connections(options = {}) ⇒ Mash
Retrieve the authenticated user’s connections
24 25 26 27 |
# File 'lib/ezlinkedin/api/query_methods.rb', line 24 def connections(={}) path = "#{person_path()}/connections" make_query(path, , true) end |
#network_updates(options = {}) ⇒ Mash
Retrieve the user’s social feed
38 39 40 41 |
# File 'lib/ezlinkedin/api/query_methods.rb', line 38 def network_updates(={}) path = "#{person_path()}/network/updates" make_query(path, , false) end |
#profile(options = {}) ⇒ Mash
Retrieve a certain profile depending on the options passed in.
13 14 15 16 |
# File 'lib/ezlinkedin/api/query_methods.rb', line 13 def profile(={}) path = person_path() make_query(path, , true) end |