li_posts_write | R Documentation |
Post to LinkedIn
li_posts_write(author, body, dry_run = FALSE)
author |
Character. URN. Either yours (see |
body |
Character. The body of the post as you would like it to appear. |
dry_run |
Logical. TRUE to show what would be sent to the server without actually sending it. |
A string of the URN for the post id.
# Dry-run
id <- li_posts_write(
author = ro_urn, # Post on behalf of rOpenSci
body = "Testing out the LinkedIn API via R and httr2!",
dry_run = TRUE)
## Not run:
# Real post
id <- li_posts_write(
author = ro_urn, # Post on behalf of rOpenSci
body = "Testing out the LinkedIn API via R and httr2!")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.