Sha256: db1a46cda4e10da238cab99fe8c55aabd8f361cef4a192a2d121a001eb754e5a
Contents?: true
Size: 1.52 KB
Versions: 4
Compression:
Stored size: 1.52 KB
Contents
module LinkedIn module Api module UpdateMethods # def update_status(text) # path = "/people/~/current-status" # put(path, status_to_xml(text)) # 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 & 1 rubygems