Learn R Programming

Rlinkedin (version 0.2)

submitGroupPost: 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

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.

Details

You must include a minimum of a discussion title, discussion summary, and content title.

See Also

getGroups getGroupPosts

Examples

Run this code
## 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)

Run the code above in your browser using DataLab