Stream
Extends \Joomla\Linkedin\ObjectLinkedin API Social Stream class for the Joomla Framework.
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)
since |
1.2.0 |
---|
Arguments
- $options
array
Linkedin options array.- $client
\Joomla\Http\Http
The HTTP client object.- $oauth
\Joomla\Linkedin\OAuth
The OAuth client.
booleanToString
Method to convert boolean to string.
booleanToString(boolean $bool) : string
since |
1.2.0 |
---|
Arguments
- $bool
boolean
The boolean value to convert.
Response
string
String with the converted boolean.
getComments
Method to retrieve all comments for a given network update.
getComments(string $key) : array
since |
1.0 |
---|
Arguments
- $key
string
update/update-key representing an update.
Response
array
The decoded JSON response
getLikes
Method to retrieve the complete list of people who liked an update.
getLikes(string $key) : array
since |
1.0 |
---|
Arguments
- $key
string
update/update-key representing an update.
Response
array
The decoded JSON response
getNetworkStats
Method to get information about the current member's network.
getNetworkStats() : array
since |
1.0 |
---|
Response
array
The decoded JSON response
getNetworkUpdates
Method to get the users network updates.
getNetworkUpdates(string $id = null, boolean $self = true, mixed $type = null, integer $count, integer $start, string $after = null, string $before = null, boolean $hidden = false) : array
since |
1.0 |
---|
Arguments
- $id
string
Member id.- $self
boolean
Used to return member's feed. Omitted to return aggregated network feed.- $type
mixed
String containing any valid Network Update Type from the table or an array of strings to specify more than one Network Update type.- $count
integer
Number of updates to return, with a maximum of 250.- $start
integer
The offset by which to start Network Update pagination.- $after
string
Timestamp after which to retrieve updates.- $before
string
Timestamp before which to retrieve updates.- $hidden
boolean
Whether to display updates from people the member has chosen to "hide" from their update stream.
Response
array
The decoded JSON response
getOption
Get an option from the Object instance.
getOption(string $key) : mixed
since |
1.2.0 |
---|
Arguments
- $key
string
The name of the option to get.
Response
mixed
The option value.
like
Method used to like an update.
like(string $key) : array
since |
1.0 |
---|
Arguments
- $key
string
Update/update-key representing an update.
Response
array
The decoded JSON response
postComment
Method to post a new comment to an existing update.
postComment(string $key, string $comment) : array
since |
1.0 |
---|
Arguments
- $key
string
update/update-key representing an update.- $comment
string
Maximum length of 700 characters
Response
array
The decoded JSON response
postNetworkUpdate
Method to get the users network updates.
postNetworkUpdate(string $body) : array
since |
1.0 |
---|
Arguments
- $body
string
The actual content of the update. You can use HTML to include links to the user name and the content the user created. Other HTML tags are not supported. All body text should be HTML entity escaped and UTF-8 compliant.
Response
array
The decoded JSON response
processLikeUnlike
Method to like or unlike an update.
processLikeUnlike(string $key, boolean $like) : array
since |
1.0 |
---|
Arguments
- $key
string
Update/update-key representing an update.- $like
boolean
True to like update, false otherwise.
Response
array
The decoded JSON response
setOption
Set an option for the Object instance.
setOption(string $key, mixed $value) : \Joomla\Linkedin\AbstractLinkedinObject
since |
1.2.0 |
---|
Arguments
- $key
string
The name of the option to set.- $value
mixed
The option value to set.
Response
\Joomla\Linkedin\AbstractLinkedinObject
This object for method chaining.
unlike
Method used to unlike an update.
unlike(string $key) : array
since |
1.0 |
---|
Arguments
- $key
string
Update/update-key representing an update.
Response
array
The decoded JSON response
Properties
options
Options for the Linkedin object.
since |
1.2.0 |
---|
Type(s)
array
client
The HTTP client object to use in sending HTTP requests.