Description Usage Arguments See Also Examples
Creates a post on the authenticated user's profile or a given publication.
1 2 3 4 5 6 | medium_create_post(title, contentFormat = c("markdown", "html"),
content = "", tags = c("R", "rstats"), canonicalUrl = NULL,
publishStatus = c("draft", "public", "unlisted"),
license = c("all-rights-reserved", "cc-40-by", "cc-40-by-sa", "cc-40-by-nd",
"cc-40-by-nc", "cc-40-by-nc-nd", "cc-40-by-nc-sa", "cc-40-zero",
"public-domain"), notifyFollowers = FALSE, publicationId = NULL)
|
title |
The title of the post. Note that this title is used for SEO and when rendering the post as a listing,
but will not appear in the actual post. For that, the title must be specified in the |
contentFormat |
The format of the |
content |
The body of the post, in a valid, semantic, HTML fragment, or Markdown. Further markups may be supported in the future. For a full list of accepted HTML tags, see here. If you want your title to appear on the post page, you must also include it as part of the post content. |
tags |
Tags to classify the post. Only the first three will be used. Tags longer than 25 characters will be ignored. |
canonicalUrl |
The original home of this content, if it was originally published elsewhere. |
publishStatus |
The status of the post. Valid values are |
license |
The license of the post. Valid values are |
notifyFollowers |
Whether to notifyFollowers that the user has published. |
publicationId |
Publication ID. |
https://github.com/Medium/medium-api-docs#33-posts
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | ## Not run:
content <- "
# test
1. test1
2. test2
```r
this <- is(test)
```
"
medium_create_post("test", content = content)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.