Get informations about a single comment.

This commit is contained in:
Pierre 2018-01-27 18:30:27 +01:00
parent e584b3affc
commit 1b94a1b1c2

View File

@ -6,6 +6,25 @@
ComunicWeb.components.comments.interface = { ComunicWeb.components.comments.interface = {
/**
* Get informations about a single comment
*
* @param {number} commentID The ID of the comment to get
* @param {function} callback
*/
get_single: function(commentID, callback) {
//Perform a request on the API
var apiURI = "comments/get_single";
var params = {
commentID: commentID
};
//Make the request
ComunicWeb.common.api.makeAPIrequest(apiURI, params, true, callback);
},
/** /**
* Update a comment content * Update a comment content
* *