mirror of
https://github.com/pierre42100/ComunicWeb
synced 2024-12-24 09:58:51 +00:00
Get single post informations
This commit is contained in:
parent
9edddaf2ca
commit
527d14606e
@ -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
|
||||||
*
|
*
|
||||||
|
Loading…
Reference in New Issue
Block a user