Spring Social LinkedIn

org.springframework.social.linkedin.api
Interface CommunicationOperations


public interface CommunicationOperations

Operations related to sending messages and sending connect invitations to other users on LinkedIn

Author:
Robert Drysdale

Method Summary
 void connectTo(java.lang.String subject, java.lang.String body, java.lang.String recipientId, ConnectionAuthorization connectionAuthorization)
          Send a connect invitation message to recipientId.
 void connectTo(java.lang.String subject, java.lang.String body, java.lang.String email, java.lang.String firstName, java.lang.String lastName)
          Send a connect invitation message to and email (for users not on LinkedIn)
 void sendMessage(java.lang.String subject, java.lang.String body, java.util.List<java.lang.String> recipientIds)
          Send a textual message to a list of recipientIds Requires id from LinkedInProfile object
 void sendMessage(java.lang.String subject, java.lang.String body, java.lang.String... recipientIds)
          Send a textual message to recipientId(s) Requires id from LinkedInProfile object
 

Method Detail

sendMessage

void sendMessage(java.lang.String subject,
                 java.lang.String body,
                 java.util.List<java.lang.String> recipientIds)
Send a textual message to a list of recipientIds Requires id from LinkedInProfile object

Parameters:
subject - The subject of message
body - The body or text of message (does not support html)
recipientIds - List of ids

sendMessage

void sendMessage(java.lang.String subject,
                 java.lang.String body,
                 java.lang.String... recipientIds)
Send a textual message to recipientId(s) Requires id from LinkedInProfile object

Parameters:
subject - The subject of message
body - The body or text of message (does not support html)
recipientIds - One of more ids

connectTo

void connectTo(java.lang.String subject,
               java.lang.String body,
               java.lang.String recipientId,
               ConnectionAuthorization connectionAuthorization)
Send a connect invitation message to recipientId. When sending a connection invitation for a LinkedIn profile by ID, you must also provide a ConnectionAuthorization object. This object is available from a LinkedInProfile object after doing a search.

Parameters:
subject - The subject of message
body - The body or text of message (does not support html)
recipientId - Id of recipient
connectionAuthorization - authorization required to create a connection the connection.

connectTo

void connectTo(java.lang.String subject,
               java.lang.String body,
               java.lang.String email,
               java.lang.String firstName,
               java.lang.String lastName)
Send a connect invitation message to and email (for users not on LinkedIn)

Parameters:
subject - The subject of message
body - The body or text of message (does not support html)
email - Email address of recipient
firstName - First Name of recipient
lastName - Last Name of recipient

Spring Social LinkedIn