Sha256: 1453fd94a7e1376a8a9a0f3837d55d83b7c219df677860bee738a10b078794d0
Contents?: true
Size: 1.6 KB
Versions: 4
Compression:
Stored size: 1.6 KB
Contents
module LinkedIn module Api module UpdateMethods def add_share(share) path = "/people/~/shares" defaults = {:visibility => {:code => "anyone"}} post(path, defaults.merge(share).to_json, "Content-Type" => "application/json") end # def share(options={}) # path = "/people/~/shares" # defaults = { :visability => 'anyone' } # post(path, share_to_xml(defaults.merge(options))) # end # # def update_comment(network_key, comment) # path = "/people/~/network/updates/key=#{network_key}/update-comments" # post(path, comment_to_xml(comment)) # end # # def update_network(message) # path = "/people/~/person-activities" # post(path, network_update_to_xml(message)) # end # # def send_message(subject, body, recipient_paths) # path = "/people/~/mailbox" # # message = LinkedIn::Message.new # message.subject = subject # message.body = body # recipients = LinkedIn::Recipients.new # # recipients.recipients = recipient_paths.map do |profile_path| # recipient = LinkedIn::Recipient.new # recipient.person = LinkedIn::Person.new # recipient.person.path = "/people/#{profile_path}" # recipient # end # message.recipients = recipients # post(path, message_to_xml(message)).code # end # # def clear_status # path = "/people/~/current-status" # delete(path).code # end # end end end
Version data entries
4 entries across 4 versions & 3 rubygems