Communications

Extends \Joomla\Linkedin\Object

Linkedin API Social Communications class for the Joomla Framework.

deprecated
since

1.0

deprecated

The joomla/linkedin package is deprecated

Methods

__construct

Constructor.

__construct(array $options = array(), \Joomla\Http\Http $client = null, \Joomla\Linkedin\OAuth $oauth = null) 
inherited
since

1.2.0

Arguments

$options

arrayLinkedin options array.

$client

\Joomla\Http\HttpThe HTTP client object.

$oauth

\Joomla\Linkedin\OAuthThe OAuth client.

booleanToString

Method to convert boolean to string.

booleanToString(boolean $bool) : string
inherited
since

1.2.0

Arguments

$bool

booleanThe boolean value to convert.

Response

stringString with the converted boolean.

getOption

Get an option from the Object instance.

getOption(string $key) : mixed
inherited
since

1.2.0

Arguments

$key

stringThe name of the option to get.

Response

mixedThe option value.

inviteByEmail

Method used to invite people.

inviteByEmail(string $email, string $firstName, string $lastName, string $subject, string $body, string $connection = 'friend') : array
since

1.0

Arguments

$email

stringA string containing email of the recipient.

$firstName

stringA string containing frist name of the recipient.

$lastName

stringA string containing last name of the recipient.

$subject

stringThe subject of the message that will be sent to the recipient

$body

stringA text of the message.

$connection

stringOnly connecting as a 'friend' is supported presently.

Response

arrayThe 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

1.0

throws

\DomainException

Arguments

$id

stringMember id.

$firstName

stringA string containing frist name of the recipient.

$lastName

stringA string containing last name of the recipient.

$subject

stringThe subject of the message that will be sent to the recipient

$body

stringA text of the message.

$connection

stringOnly connecting as a 'friend' is supported presently.

Response

arrayThe 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

1.0

Arguments

$recipient

mixedA string containing the member id or an array of ids.

$subject

stringThe subject of the message that will be sent to the recipient

$body

stringA text of the message.

Response

arrayThe decoded JSON response

setOption

Set an option for the Object instance.

setOption(string $key, mixed $value) : \Joomla\Linkedin\AbstractLinkedinObject
inherited
since

1.2.0

Arguments

$key

stringThe name of the option to set.

$value

mixedThe option value to set.

Response

\Joomla\Linkedin\AbstractLinkedinObjectThis object for method chaining.

Properties

options

Options for the Linkedin object.

inherited
since

1.2.0

Type(s)

array

client

The HTTP client object to use in sending HTTP requests.

inherited
since

1.2.0

Type(s)

\Joomla\Http\Http

oauth

The OAuth client.

inherited
since

1.2.0

Type(s)

\Joomla\Linkedin\OAuth