Namespace: votes

comments.votes

Source:

Methods

(static) create(options, done)

Vote for a comment

Parameters:
Name Type Description
options Object options
Properties
Name Type Description
comment_id Number The ID of the comment you want to vote for
done done Callback
Source:
See:

(static) destroy(options, done)

Unvote a comment

Parameters:
Name Type Description
options Object options
Properties
Name Type Description
comment_id Number The ID of the comment you want to un-vote
done done Callback
Source:
See:

(static) index(options, done)

Fetch a stream of all recent comments

Parameters:
Name Type Description
options Object options
Properties
Name Type Attributes Description
comment_id Number The ID of the comment you want to find votes for
params.older Number <optional>
Filter parameter: get only records older than the provided id
params.newer Number <optional>
Filter parameter: get only records newer than the provided id
params.per_page Number <optional>
Filter parameter: define the amount of records sent per call (max 50)
params.order String <optional>
Filter parameter: define the order you want to receive the records (does not affect older/newer behaviour). Valid values are asc or desc.
done done Callback
Source:
See: