Learn R Programming

discgolf (version 0.2.0)

dg_search: Search

Description

Search

Usage

dg_search(query = NULL, order = NULL, status = NULL, category = NULL,
  username = NULL, group = NULL, badge = NULL, in_ = NULL,
  posts_count = NULL, min_age = NULL, max_age = NULL, url = NULL,
  key = NULL, user = NULL, ...)

Arguments

query

(character) Query terms. Required.

order

(character) One of views, latest, likes

status

(character) One of open, closed, archived, noreplies, or single_user

category

(character) Category to search for

username

(character) User name

group

(character) Groupo name

badge

(character) Badge name

in_

(character) One of likes, posted, watching, tracking, private, bookmarks, first

posts_count

(integer) Number of posts per topic

min_age

(integer) Minimum age

max_age

(integer) Maximum age

url

Base url for a Discourse installation. See disc_setup

key

Your api key on the Discourse installation. See disc_setup

user

Your user name on the Discourse installation. See disc_setup

...

Named parameters passed on to HttpClient

Examples

Run this code
# NOT RUN {
dg_search(query = "poo")
dg_search(posts_count = 1)
dg_search(in_ = "posted")
dg_search(status = "open")
# }

Run the code above in your browser using DataLab