LinkedIn::share
Post a share.
Create a new or reshare another user's shared content. Full details from LinkedIn on this functionality can be found here: http://developer.linkedin.com/docs/DOC-1212 $action values: ('new', 'reshare') $content format: $action = 'new'; $content => ('comment' => 'xxx', 'title' => 'xxx', 'submitted-url' => 'xxx', 'submitted-image-url' => 'xxx', 'description' => 'xxx') $action = 'reshare'; $content => ('comment' => 'xxx', 'id' => 'xxx')
Signature
public function share(string
$action,
string
$content,
[boolean
$private = TRUE,
[boolean
$twitter = FALSE]] )
Parameters
$action
— string
The sharing action to perform.$content
— string
The share content.$private
— boolean
[OPTIONAL] Should we restrict this shared item to connections only?$twitter
— boolean
[OPTIONAL] Also update the teathered Twitter account.
Returns
- array
Array containing retrieval success, LinkedIn response.