threads: Disqus Threads API

Description Usage Arguments Details Examples

View source: R/threads.R

Description

threads() is a function to access the disqus threads api. It is built as a comfortable wrapper for listTemplate() a disqusR function underlying most of the retrieving (GET) functions of the disqus API. It will return an object of class dq_thread, containing the content retrieved. By default threads() will return a json object.

Usage

1
threads(option, type = "json", limit = 25, ...)

Arguments

option

option default NULL

type

json or rss default json

limit

integer limit 1 to 100

...

options: close, create, details, list, listHot, listPopular, listPosts, open, remove, restore, set, subscribe, unsubscribe, update, vote

GET functions: details list listHot listPopular listPosts set subscribe update

POST functions: close, create open remove restore unsubscribe vote -1, 0, 1

Details

threads() requires at least one option.

For a full documentation and all currently possible options please see https://disqus.com/api/docs/threads/.

As of June 2015 following options are available.

Examples

1
2
3
4
5
6
7
8
## Not run: 
# lists threads of forum=politico in RSS-type
threads("list", forum="politico", type="rss")

# list a few disqus threads
threads("list")

## End(Not run)

JanMarvin/disqusR documentation built on May 6, 2019, 10:11 a.m.