Description Usage Arguments Examples
Work with posts
1 2 3 4 5 | post_get(post_id, ...)
post_create(topic_id, text, ...)
post_wikify(post_id, ...)
|
post_id |
A post id |
... |
Named parameters passed on to |
topic_id |
A topic id |
text |
Text to put in post |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | ## Not run:
# get a post
post_get(90)
post_get(120)
post_get(130)
post_get(155)
cat(post_get(155)$raw)
# create post, create topic first
z <- topic_create("The problems with blue skies",
text = "just saying these things cause I like the sky very much")
zz <- post_create(topic_id = z$topic_id,
text = "There isn't a problem is there?")
topic(z$topic_id)
post_get(zz$id)
# Wikify a post
post_wikify(zz$id)
# cleanup - delete the topic
topic_delete(z$topic_id)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.