Module: EzLinkedin::Api::QueryMethods
- Included in:
- Client
- Defined in:
- lib/ezlinkedin/api/query_methods.rb
Instance Method Summary collapse
-
#company(options = {}) ⇒ Mash
Do a company search based on id, email, or universal-name.
-
#connections(options = {}) ⇒ Mash
Retrieve the authenticated user’s connections.
-
#group_memberships(options = {}) ⇒ Mash
Returns the groups the current user is a member of.
-
#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 = {}) ⇒ Mash
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() use_fields = .include?(:fields) make_query(path, , use_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 |
#group_memberships(options = {}) ⇒ Mash
Returns the groups the current user is a member of
65 66 67 68 |
# File 'lib/ezlinkedin/api/query_methods.rb', line 65 def group_memberships(={}) path = "#{person_path()}/group-memberships#{()}" make_query(path, .merge({member: true}), false) 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 |