JLinkedinCommunications::inviteByEmail
Method used to invite people.
Signature
public function inviteByEmail(string
$email,
[string
$first_name = 'friend',
[string
$last_name = 'friend',
[string
$subject = 'friend',
[string
$body = 'friend',
[string
$connection = 'friend']]]]] )
Parameters
-
$email
- A string containing email of the recipient.
-
$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