Module: LinkedIn::Api::QueryMethods

Included in:
Client
Defined in:
lib/linked_in/api/query_methods.rb

Instance Method Summary collapse

Instance Method Details

#company(options = {}) ⇒ Object



21
22
23
24
# File 'lib/linked_in/api/query_methods.rb', line 21

def company(options = {})
  path   = company_path(options)
  simple_query(path, options)
end

#connections(options = {}) ⇒ Object



11
12
13
14
# File 'lib/linked_in/api/query_methods.rb', line 11

def connections(options={})
  path = "#{person_path(options)}/connections"
  simple_query(path, options)
end

#group_memberships(options = {}) ⇒ Object



41
42
43
44
# File 'lib/linked_in/api/query_methods.rb', line 41

def group_memberships(options = {})
  path = "#{person_path(options)}/group-memberships"
  simple_query(path, options)
end

#group_posts(options) ⇒ Object



51
52
53
54
# File 'lib/linked_in/api/query_methods.rb', line 51

def group_posts(options)
  path = "#{group_path(options)}/posts"
  simple_query(path, options)
end

#group_profile(options) ⇒ Object



46
47
48
49
# File 'lib/linked_in/api/query_methods.rb', line 46

def group_profile(options)
  path = group_path(options)
  simple_query(path, options)
end

#job(options = {}) ⇒ Object



26
27
28
29
# File 'lib/linked_in/api/query_methods.rb', line 26

def job(options = {})
  path = jobs_path(options)
  simple_query(path, options)
end

#job_bookmarks(options = {}) ⇒ Object



31
32
33
34
# File 'lib/linked_in/api/query_methods.rb', line 31

def job_bookmarks(options = {})
  path = "#{person_path(options)}/job-bookmarks"
  simple_query(path, options)
end

#job_suggestions(options = {}) ⇒ Object



36
37
38
39
# File 'lib/linked_in/api/query_methods.rb', line 36

def job_suggestions(options = {})
  path = "#{person_path(options)}/suggestions/job-suggestions"
  simple_query(path, options)
end

#network_updates(options = {}) ⇒ Object



16
17
18
19
# File 'lib/linked_in/api/query_methods.rb', line 16

def network_updates(options={})
  path = "#{person_path(options)}/network/updates"
  simple_query(path, options)
end

#profile(options = {}) ⇒ Object



6
7
8
9
# File 'lib/linked_in/api/query_methods.rb', line 6

def profile(options={})
  path = person_path(options)
  simple_query(path, options)
end

#share_comments(update_key, options = {}) ⇒ Object



61
62
63
64
# File 'lib/linked_in/api/query_methods.rb', line 61

def share_comments(update_key, options={})
  path = "#{person_path(options)}/network/updates/key=#{update_key}/update-comments"
  simple_query(path, options)
end

#share_likes(update_key, options = {}) ⇒ Object



66
67
68
69
# File 'lib/linked_in/api/query_methods.rb', line 66

def share_likes(update_key, options={})
  path = "#{person_path(options)}/network/updates/key=#{update_key}/likes"
  simple_query(path, options)
end

#shares(options = {}) ⇒ Object



56
57
58
59
# File 'lib/linked_in/api/query_methods.rb', line 56

def shares(options={})
  path = "#{person_path(options)}/network/updates"
  simple_query(path, {:type => "SHAR", :scope => "self"}.merge(options))
end