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

#company_statistics(options = {}) ⇒ Object



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

def company_statistics(options={})
  path = "#{company_path(options)}/company-statistics"
  simple_query(path, options)
end

#company_updates(options = {}) ⇒ Object



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

def company_updates(options={})
  path = "#{company_path(options)}/updates"
  simple_query(path, options)
end

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



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

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

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



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

def company_updates_likes(update_key, options={})
  path = "#{company_path(options)}/updates/key=#{update_key}/likes"
  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



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

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

#group_posts(options) ⇒ Object



71
72
73
74
# File 'lib/linked_in/api/query_methods.rb', line 71

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

#group_profile(options) ⇒ Object



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

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

#job(options = {}) ⇒ Object



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

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

#job_bookmarks(options = {}) ⇒ Object



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

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

#job_suggestions(options = {}) ⇒ Object



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

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

#picture_urls(options = {}) ⇒ Object



91
92
93
94
95
# File 'lib/linked_in/api/query_methods.rb', line 91

def picture_urls(options={})
  picture_size = options.delete(:picture_size) || 'original'
  path = "#{picture_urls_path(options)}::(#{picture_size})"
  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



81
82
83
84
# File 'lib/linked_in/api/query_methods.rb', line 81

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



86
87
88
89
# File 'lib/linked_in/api/query_methods.rb', line 86

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

#shares(options = {}) ⇒ Object



76
77
78
79
# File 'lib/linked_in/api/query_methods.rb', line 76

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