6.0.0 • Published 5 years ago
@datafire/nytimes_community v6.0.0
@datafire/nytimes_community
Client library for Community API
Installation and Usage
npm install --save @datafire/nytimes_community
let nytimes_community = require('@datafire/nytimes_community').create({
"api-key": ""
});
.then(data => {
console.log(data);
});
Description
Get access to comments from registered users on New York Times articles. NOTE: This API is deprecated.
Actions
user_content.by_date.json.get
Comments by Date
nytimes_community.user_content.by_date.json.get({}, context)
Input
- input
object
- date
string
- date
Output
- output
object
- copyright
string
- debug
object
- version
number
- version
- results
object
- api_timestamp
string
- comments
array
- items
object
- approveDate
string
- assetID
integer
- assetURL
string
- commentBody
string
- commentID
integer
- commentSequence
integer
- commentTitle
string
- commentType
string
- createDate
string
- editorsSelection
integer
- lft
integer
- recommendationCount
integer
- replies
array
- items
object
- items
- replyCount
integer
- rgt
integer
- status
string
- statusID
integer
- updateDate
string
- userDisplayName
string
- userID
integer
- userLocation
string
- userTitle
string
- userURL
integer
- approveDate
- items
- totalCommentsFound
integer
- totalCommentsReturned
integer
- api_timestamp
- status
string
- copyright
user_content.recent.json.get
Recent User Comments
nytimes_community.user_content.recent.json.get(null, context)
Input
This action has no parameters
Output
- output
object
- copyright
string
- debug
object
- version
number
- version
- results
object
- api_timestamp
string
- comments
array
- items
object
- approveDate
string
- asset
object
- all-properties
array
- assetID
integer
- assetTitle
string
- assetURL
string
- createDate
string
- labels
array
- properties
object
- source
string
- taxonomy
string
- text
array
- updateDate
string
- vendorID
string
- all-properties
- assetID
integer
- commentBody
string
- commentID
integer
- commentSequence
integer
- commentTitle
string
- commentType
string
- createDate
string
- display_name
string
- editorsSelection
integer
- location
string
- recommendationCount
integer
- replies
array
- items
object
- items
- status
string
- statusID
integer
- updateDate
string
- userDisplayName
string
- userID
integer
- userLocation
string
- userTitle
string
- userURL
string
- approveDate
- items
- totalCommentsReturned
integer
- api_timestamp
- status
string
- copyright
user_content.url.json.get
Comments by URL
nytimes_community.user_content.url.json.get({}, context)
Input
- input
object
- url
string
- url
Output
- output
object
- copyright
string
- debug
object
- version
number
- version
- results
object
- api_timestamp
string
- comments
array
- items
object
- approveDate
string
- commentBody
string
- commentID
integer
- commentSequence
integer
- commentTitle
string
- commentType
string
- createDate
string
- depth
integer
- editorsSelection
boolean
- permID
string
- picURL
string
- recommendations
integer
- replies
array
- replyCount
integer
- sharing
integer
- status
string
- timespeople
integer
- trusted
integer
- updateDate
string
- userDisplayName
string
- userID
integer
- userLocation
string
- approveDate
- items
- depthLimit
integer
- filter
string
- page
integer
- replyLimit
integer
- sort
string
- totalCommentsFound
integer
- totalCommentsReturned
integer
- totalEditorsSelectionFound
integer
- totalEditorsSelectionReturned
integer
- totalParentCommentsFound
integer
- totalParentCommentsReturned
integer
- totalRecommendationsFound
integer
- totalRecommendationsReturned
integer
- totalReplyCommentsFound
integer
- totalReplyCommentsReturned
integer
- totalReporterReplyCommentsFound
integer
- totalReporterReplyCommentsReturned
integer
- api_timestamp
- status
string
- copyright
user_content.user.json.get
Comments by User
nytimes_community.user_content.user.json.get({}, context)
Input
- input
object
- userID
integer
- userID
Output
- output
object
- copyright
string
- debug
object
- version
number
- version
- results
object
- api_timestamp
string
- comments
array
- items
object
- approveDate
string
- asset
object
- all-properties
array
- assetID
integer
- assetTitle
string
- assetURL
string
- createDate
string
- labels
array
- properties
object
- source
string
- taxonomy
string
- text
array
- updateDate
string
- vendorID
string
- all-properties
- commentBody
string
- commentID
integer
- commentSequence
integer
- commentTitle
string
- commentType
string
- createDate
string
- editorsSelection
boolean
- labels
array
- items
object
- items
- permid
integer
- picURL
string
- recommendations
integer
- replies
array
- items
object
- items
- replyCount
integer
- status
string
- updateDate
string
- userID
integer
- userSubmittedDisplayName
string
- userSubmittedLocation
string
- approveDate
- items
- totalCommentsFound
integer
- totalCommentsReturned
integer
- api_timestamp
- status
string
- copyright
Definitions
This integration has no definitions