Get single post informations

This commit is contained in:
Pierre 2018-01-16 06:50:16 +01:00
parent 9edddaf2ca
commit 527d14606e

View File

@ -25,6 +25,25 @@ ComunicWeb.components.posts.interface = {
}, },
/**
* Get single post informations
*
* @param {int} postID The ID of the post to get
* @param {function} callback What to do once we got post informations
*/
get_single: function(postID, callback){
//Prepare API request
var APIuri = "posts/get_single";
var params = {
postID: postID
};
//Make the request
ComunicWeb.common.api.makeAPIrequest(APIuri, params, true, callback);
},
/** /**
* Send a new post * Send a new post
* *