Module: LinkedIn::API::Messaging

Defined in:
lib/linkedin/api/messaging.rb

Instance Method Summary collapse

Instance Method Details

#message(subject, message, recipient_selectors, **opts) ⇒ Object



4
5
6
7
8
9
# File 'lib/linkedin/api/messaging.rb', line 4

def message(subject, message, recipient_selectors, **opts)
  message_body = build_message_body selectors: [recipient_selectors].flatten,
                                    subject: subject, message: message

  execute 'people/~/mailbox', opts.merge(method: :post, body: message_body)
end