JLinkedinStream::share
Method to add a new share. Note: post must contain comment and/or (title and url).
Signature
public function share(string
$visibility,
[string
$comment = null,
[string
$title = null,
[string
$url = null,
[string
$image = null,
[string
$description = null,
[boolean
$twitter = false]]]]]] )
Parameters
-
$visibility
- One of anyone: all members or connections-only: connections only.
-
$comment
- Text of member's comment.
-
$title
- Title of shared document.
-
$url
- URL for shared content.
-
$image
- URL for image of shared content.
-
$description
- Description of shared content.
-
$twitter
- True to have LinkedIn pass the status message along to a member's tethered Twitter account.
Returns
- array
- The decoded JSON response
Errors/Exceptions
-
RuntimeException