Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to request a specific company update with all associated data #36

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions lib/linked_in/api.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ def initialize(access_token=nil)
:company_statistics,
:company_historical_follow_statistics,
:company_historical_status_update_statistics,
:company_update,
:company_updates_likes,
:company_updates_comments

Expand Down
13 changes: 13 additions & 0 deletions lib/linked_in/companies.rb
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,19 @@ def company_historical_status_update_statistics(options = {})
get(path, options)
end

# Retrieve a specific company update:
#
# @see http://developer.linkedin.com/reading-company-shares
#
# @param [String] update_key a update/update-key representing a
# particular company update
# @macro company_path_options
# @return [LinkedIn::Mash]
def company_update(update_key, options={})
path = "#{company_path(options)}/updates/key=#{update_key}"
get(path, options)
end

# Retrieve comments on a particular company update:
#
# @see http://developer.linkedin.com/reading-company-shares
Expand Down