Fork me on GitHub

Community API

Recent Comments

Required Params
  • force-replies
Usage
nyt.community.recent(args, callback)
Example
nyt.community.recent({‘force-replies’:’0’}, console.log)

Random Comments

Required Params
Usage
nyt.community.random(args, callback)
Example
nyt.community.random({}, console.log)

Comments by Date

Required Params
  • YYYYMMDD
Usage
nyt.community.byDate(args, callback)
Example
nyt.community.byDate({‘YYYYMMDD’:’20120107’}, console.log)

Comments by User ID

Required Params
  • user-ID
Usage
nyt.community.byUser(args, callback)
Example
nyt.community.byUser({‘user-ID’:’<id>’}, console.log)

Comments by URL

Required Params
  • url-to-match
Usage
nyt.community.byURL(args, callback)
Example

nyt.community.byURL({‘url-to-match’:’<url>’}, console.log)
````</url>})