Module: LinkedIn::Api::UpdateMethods

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

Instance Method Summary collapse

Instance Method Details

#add_share(share) ⇒ Object



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

def add_share(share)
  path = "/people/~/shares"
  defaults = {:visibility => {:code => "anyone"}}
  post(path, defaults.merge(share).to_json, "Content-Type" => "application/json")
end