mirror of
https://github.com/pierre42100/ComunicWeb
synced 2024-11-26 22:09:21 +00:00
Get informations about a single comment.
This commit is contained in:
parent
e584b3affc
commit
1b94a1b1c2
@ -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
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user