Description Usage Arguments Details Examples
Work with categories
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | categories(...)
category(category, page = 1, ...)
category_latest_topics(category, page = 1, ...)
category_top_topics(category, page = 1, ...)
category_new_topics(category, ...)
category_create(
category,
color,
text_color,
description = NULL,
permissions = NULL,
parent_category = NULL,
...
)
|
... |
Named parameters passed on to |
category |
Category name. required |
page |
(integer) a page number for pagination. records per page is fixed at 30 (that is: up to 30). default: 1 |
color |
A color by name or hex string. optional |
text_color |
A color by name or hex string. optional |
description |
Description of the category. optional |
permissions |
Permissions - a list with the group name and permission_type which is an integer: 1 = Full, 2 = Create Post, 3 = Read Only. optional |
parent_category |
x. optional |
Apprently there's no ability to delete categories via the API.
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:
# all categories
categories()
# a specfic category
category("usecases")
category("packages")
# latest topics for a category
category_latest_topics("packages")
out <- category_latest_topics(category="usecases", page = NULL)
out
# top topics for a category
category_top_topics("packages")
# new topics for a category
category_new_topics("packages")
# create a category
category_create("stuff3", "F7941D", "FFFFFF", "My new category")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.