submitGroupPost {Rlinkedin} | R Documentation |
Create a Group Discussion Post
Description
submitGroupPost
will create a group discussion post in one of the
groups you belong to, specified by a Group Id.
Usage
submitGroupPost(token, group_id, disc_title = NULL, disc_summary = NULL,
content_title = NULL, content_url = NULL, content_img = NULL,
content_desc = NULL, partner = 0)
Arguments
token |
Authorization token. |
group_id |
Numeric Group ID. |
disc_title |
Group discussion title, required. |
disc_summary |
Group discussion summary, required. |
content_title |
Title for content, required. |
content_url |
Url for content, optional. |
content_img |
Url for an image, optional. |
content_desc |
Description of content, optional. |
partner |
Indicate whether you belong to the Partnership Program. Values: 0 or 1 |
Details
You must include a minimum of a discussion title, discussion summary, and content title.
Value
There are two possible responses to a successful submittal.
One, your post has been created and is visibile immediately. In this case you have most likely posted to an unmoderated group.
Two, your post has been accepted by the API but is pending approval by the group moderator, in which case you will not see your post until it has bene approved.
Author(s)
Michael Piccirilli michael.r.piccirilli@gmail.com
See Also
Examples
## Not run:
my.groups <- getGroups(in.auth)
id <- my.groups$group_id[1]
disc.title <- "Test connecting to the LinkedIn API via R"
disc.summary <- "Im creating an R package to connect to the LinkedIn API,
+ this is a test post from R!"
url <- "https://github.com/mpiccirilli"
content.desc <- "Dev version of access to LinkedIn API via R.
+ Collaboration is welcomed!"
submitGroupPost(in.auth, group_id=id, disc_title=disc.title,
disc_summary=disc.summary, content_url=url, content_desc=content.desc)
## End(Not run)