JLinkedinCommunications::inviteById
Method used to invite people.
Signature
public function inviteById(string
$id,
[string
$first_name = 'friend',
[string
$last_name = 'friend',
[string
$subject = 'friend',
[string
$body = 'friend',
[string
$connection = 'friend']]]]] )
Parameters
-
$id
- Member id.
-
$first_name
- A string containing frist name of the recipient.
-
$last_name
- A string containing last name of the recipient.
-
$subject
- The subject of the message that will be sent to the recipient
-
$body
- A text of the message.
-
$connection
- Only connecting as a 'friend' is supported presently.
Returns
- array
- The decoded JSON response