Class JLinkedinStream
Linkedin API Social Stream class for the Joomla Platform.
-
JLinkedinObject
-
JLinkedinStream
Methods summary
public
array
|
#
share( string $visibility, string $comment = null, string $title = null, string $url = null, string $image = null, string $description = null, boolean $twitter = false )
Method to add a new share. Note: post must contain comment and/or (title and
url).
Method to add a new share. Note: post must contain comment and/or (title and
url).
Parameters
- $visibility
string - $visibility One of anyone: all members or connections-only: connections only.
- $comment
string - $comment Text of member's comment.
- $title
string - $title Title of shared document.
- $url
string - $url URL for shared content.
- $image
string - $image URL for image of shared content.
- $description
string - $description Description of shared content.
- $twitter
boolean - $twitter True to have LinkedIn pass the status message along to a member's
tethered Twitter account.
Returns
array - The decoded JSON response
Throws
Since
13.1
|
public
array
|
#
reshare( string $visibility, string $id, string $comment = null, boolean $twitter = false )
Method to reshare an existing share.
Method to reshare an existing share.
Parameters
- $visibility
string - $visibility One of anyone: all members or connections-only: connections only.
- $id
string - $id The unique identifier for a share.
- $comment
string - $comment Text of member's comment.
- $twitter
boolean - $twitter True to have LinkedIn pass the status message along to a member's
tethered Twitter account.
Returns
array - The decoded JSON response
Throws
Since
13.1
|
public
array
|
#
getCurrentShare( string $id = null, string $url = null )
Method to get a particular member's current share.
Method to get a particular member's current share.
Parameters
- $id
string - $id Member id of the profile you want.
- $url
string - $url The public profile URL.
Returns
array - The decoded JSON response
Since
13.1
|
public
array
|
#
getShareStream( string $id = null, string $url = null, boolean $self = true )
Method to get a particular member's current share.
Method to get a particular member's current share.
Parameters
- $id
string - $id Member id of the profile you want.
- $url
string - $url The public profile URL.
- $self
boolean - $self Used to return member's feed. Omitted to return aggregated network feed.
Returns
array - The decoded JSON response
Since
13.1
|
public
array
|
#
getNetworkUpdates( string $id = null, boolean $self = true, mixed $type = null, integer $count = 0, integer $start = 0, string $after = null, string $before = null, boolean $hidden = false )
Method to get the users network updates.
Method to get the users network updates.
Parameters
- $id
string - $id Member id.
- $self
boolean - $self Used to return member's feed. Omitted to return aggregated network feed.
- $type
mixed - $type 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 - $count Number of updates to return, with a maximum of 250.
- $start
integer - $start The offset by which to start Network Update pagination.
- $after
string - $after Timestamp after which to retrieve updates.
- $before
string - $before Timestamp before which to retrieve updates.
- $hidden
boolean - $hidden Whether to display updates from people the member has chosen to "hide"
from their update stream.
Returns
array - The decoded JSON response
Since
13.1
|
public
array
|
#
getNetworkStats( )
Method to get information about the current member's network.
Method to get information about the current member's network.
Returns
array - The decoded JSON response
Since
13.1
|
public
array
|
#
postNetworkUpdate( string $body )
Method to get the users network updates.
Method to get the users network updates.
Parameters
- $body
string - $body 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.
Returns
array - The decoded JSON response
Since
13.1
|
public
array
|
#
getLikes( string $key )
Method to retrieve the complete list of people who liked an update.
Method to retrieve the complete list of people who liked an update.
Parameters
- $key
string - $key update/update-key representing an update.
Returns
array - The decoded JSON response
Since
13.1
|
public
array
|
#
like( string $key )
Method used to like an update.
Method used to like an update.
Parameters
- $key
string - $key Update/update-key representing an update.
Returns
array - The decoded JSON response
Since
13.1
|
public
array
|
#
unlike( string $key )
Method used to unlike an update.
Method used to unlike an update.
Parameters
- $key
string - $key Update/update-key representing an update.
Returns
array - The decoded JSON response
Since
13.1
|
__construct()
,
booleanToString()
,
getOption()
,
setOption()
Magic methods summary
Properties summary
$client
,
$oauth
,
$options