powered by
Work with badges
badges(url = NULL, key = NULL, user = NULL, ...)badges_user(username, url = NULL, key = NULL, user = NULL, ...)badge_create(name, badge_type_id, description = NULL, allow_title = NULL, multiple_grant = NULL, icon = NULL, listable = NULL, target_posts = NULL, enabled = NULL, auto_revoke = NULL, badge_grouping_id = NULL, show_posts = NULL, image = NULL, long_description = NULL, url = NULL, key = NULL, user = NULL, ...)
badges_user(username, url = NULL, key = NULL, user = NULL, ...)
badge_create(name, badge_type_id, description = NULL, allow_title = NULL, multiple_grant = NULL, icon = NULL, listable = NULL, target_posts = NULL, enabled = NULL, auto_revoke = NULL, badge_grouping_id = NULL, show_posts = NULL, image = NULL, long_description = NULL, url = NULL, key = NULL, user = NULL, ...)
Base url for a Discourse installation. See disc_setup
disc_setup
Your api key on the Discourse installation. See disc_setup
Your user name on the Discourse installation. See disc_setup
Named parameters passed on to HttpClient
HttpClient
A current user name. required
(character) A badge name to be created. required
(integer) A badge type id. one of 1 (gold), 2 (silver), or 3 (bronze). required
(character) A description(character) . optional
(logical) Allow a title. optional
(character) multiple grant. optional
(character) icon. optional
(logical) listable. optional
(character) . optional
(logical) enabled or not. optional
(character) auto revoke. optional
(character) badge grouping id. optional
(logical) show posts. optional
(character) an image. optional
(character) long description. optional
# NOT RUN { # all badges badges() # specific badge by name badges_user("sckott") # create a badge (res <- badge_create(name = "funnestbadge", badge_type_id = 3)) # }
Run the code above in your browser using DataLab