JLinkedinCommunications
Extends \JLinkedinObjectLinkedin API Social Communications class for the Joomla Platform.
since |
3.2.0 |
---|---|
package |
Joomla.Platform |
Methods
__construct
Constructor.
__construct(\Joomla\Registry\Registry $options = null, \JHttp $client = null, \JLinkedinOAuth $oauth = null)
since |
3.2.0 |
---|
Arguments
- $options
\Joomla\Registry\Registry
Linkedin options object.- $client
\JHttp
The HTTP client object.- $oauth
\JLinkedinOAuth
The OAuth client.
booleanToString
Method to convert boolean to string.
booleanToString(boolean $bool) : string
since |
3.2.0 |
---|
Arguments
- $bool
boolean
The boolean value to convert.
Response
string
String with the converted boolean.
getOption
Get an option from the JLinkedinObject instance.
getOption(string $key) : mixed
since |
3.2.0 |
---|
Arguments
- $key
string
The name of the option to get.
Response
mixed
The option value.
inviteByEmail
Method used to invite people.
inviteByEmail(string $email, string $firstName, string $lastName, string $subject, string $body, string $connection = 'friend') : array
since |
3.2.0 |
---|
Arguments
string
A string containing email of the recipient.- $firstName
string
A string containing first name of the recipient.- $lastName
string
A string containing last name of the recipient.- $subject
string
The subject of the message that will be sent to the recipient- $body
string
A text of the message.- $connection
string
Only connecting as a 'friend' is supported presently.
Response
array
The decoded JSON response
inviteById
Method used to invite people.
inviteById(string $id, string $firstName, string $lastName, string $subject, string $body, string $connection = 'friend') : array
since |
3.2.0 |
---|
Arguments
- $id
string
Member id.- $firstName
string
A string containing first name of the recipient.- $lastName
string
A string containing last name of the recipient.- $subject
string
The subject of the message that will be sent to the recipient- $body
string
A text of the message.- $connection
string
Only connecting as a 'friend' is supported presently.
Response
array
The decoded JSON response
sendMessage
Method used to send messages via LinkedIn between two or more individuals connected to the member sending the message.
sendMessage(mixed $recipient, string $subject, string $body) : array
.
since |
3.2.0 |
---|
Arguments
- $recipient
mixed
A string containing the member id or an array of ids.- $subject
string
The subject of the message that will be sent to the recipient- $body
string
A text of the message.
Response
array
The decoded JSON response
setOption
Set an option for the JLinkedinObject instance.
setOption(string $key, mixed $value) : \JLinkedinObject
since |
3.2.0 |
---|
Arguments
- $key
string
The name of the option to set.- $value
mixed
The option value to set.
Response
\JLinkedinObject
This object for method chaining.
Properties
client
The HTTP client object to use in sending HTTP requests.
since |
3.2.0 |
---|
Type(s)
\JHttp
oauth
The OAuth client.
since |
3.2.0 |
---|
Type(s)
\JLinkedinOAuth