submitShare function

Share an update to your network's activity feed

Share an update to your network's activity feed

submitShare will post a network update to the newsfeed of your connections. You can select the visibility of your post to be seen either by 'anyone' or 'connections-only'.

submitShare(token, comment = NULL, content_title = NULL, content_desc = NULL, content_url = NULL, content_img = NULL, visibility = "anyone")

Arguments

  • token: Authorization token.
  • comment: Headline of your post.
  • content_title: Title of your post.
  • content_desc: Description of your post.
  • content_url: Url to content you'd like to share. This is required if you specify either content_title or content_desc.
  • content_img: Url to an image you would like to include in your post, optional.
  • visibility: Choose the visibility of the post. The choices are 'anyone' or 'connections-only'.

Returns

Shares an update to your networks's activity feed.

Details

If either content_title or content_desc is specified, you must also include a content_url for the post.

Examples

## Not run: comment <- "Test connecting to the LinkedIn API via R" title <- "Im creating an R package to connect to the LinkedIn API, this is a test post from R!" url <- "https://github.com/mpiccirilli" desc <- "Dev version of access to LinkedIn API via R. Collaboration is welcomed!" submitShare(token = in.auth, comment=comment, content_tile=title, content_url=url, content_desc=desc) ## End(Not run)

Author(s)

Michael Piccirilli michael.r.piccirilli@gmail.com

See Also

submitGroupPost

  • Maintainer: Michael Piccirilli
  • License: GPL-2
  • Last published: 2016-10-30