submitGroupPost: Create a Group Discussion Post

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/submitGroupPost.R

Description

submitGroupPost will create a group discussion post in one of the groups you belong to, specified by a Group Id.

Usage

1
2
3
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

getGroups getGroupPosts

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
## 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)

Rlinkedin documentation built on May 29, 2017, 3:06 p.m.

Search within the Rlinkedin package
Search all R packages, documentation and source code