module LinkedIn::Api::ShareAndSocialStream
Share and Social Stream APIs
@see developer.linkedin.com/docs/share-on-linkedin Share API
The following API actions do not have corresponding methods in this module
* GET Network Statistics * POST Post Network Update
[(contribute here)](github.com/hexgnu/linkedin)
Public Instance Methods
Retrieve the authenticated users network updates
Permissions: rw_nus
@see developer.linkedin.com/documents/get-network-updates-and-statistics-api @see developer.linkedin.com/documents/network-update-types Network Update Types
@macro person_path_options @option options [String] :scope @option options [String] :type @option options [String] :count @option options [String] :start @option options [String] :after @option options [String] :before @option options [String] :show-hidden-members @return [LinkedIn::Mash]
# File lib/linked_in/api/share_and_social_stream.rb, line 33 def network_updates(options={}) path = "#{person_path(options)}/network/updates" simple_query(path, options) end
Create a comment on an update from the authenticated user
@see developer.linkedin.com/documents/commenting-reading-comments-and-likes-network-updates
@param [String] update_key a update/update-key representing a
particular network update
@param [String] comment The text of the comment @return [void]
# File lib/linked_in/api/share_and_social_stream.rb, line 105 def update_comment(update_key, comment) path = "/people/~/network/updates/key=#{update_key}/update-comments" body = {'comment' => comment} post(path, MultiJson.dump(body), "Content-Type" => "application/json") end