get
Params:
- commentId: string
client.Comment.get('commentId')
create
User must be authorized to create comments.
Params:
- imageId: string
- comment: string
- parentId?: string
client.Comment.create('imageId', 'this is the comment', 'parentCommentId')
remove
User must be authorized as the user that created the comment to delete it.
Params:
- commentId: string
client.Comment.remove('commentId')
replies
Params:
- commentId: string
client.Comment.replies('commentId')
replyCreate
Similar to create. Likewise, the client must be authorized to reply to a comment.
Params:
- commentId: string
- imageId: string
- comment: string
client.Comment.replyCreate('commentId', 'imageId', 'this is the comment')
vote
The client must be authorized to vote on a comment.
Params:
- commentId: string
- vote: 'up' or 'down'
client.Comment.vote('commentId', 'up')
report
Params:
- commentId: string
- reason?: number
Refer to the Imgur documentation on which numbers refer to which reporting reason.
Note: For TypeScript users, the ReportReasonEnum
can be used instead of the raw numbers.
client.Comment.report('commentId', 2)