Module: EzLinkedin::Api::UpdateMethods
- Included in:
- Client
- Defined in:
- lib/ezlinkedin/api/update_methods.rb
Instance Method Summary collapse
-
#post_share(share) ⇒ HTTP::Response?
post a share to Linkedin.
Instance Method Details
#post_share(share) ⇒ HTTP::Response?
post a share to Linkedin
20 21 22 23 24 |
# File 'lib/ezlinkedin/api/update_methods.rb', line 20 def post_share(share) path = "/people/~/shares" defaults = { visibility: { code: 'anyone' } } post(path, defaults.merge(share).to_json, "Content-Type" => "application/json") end |