Created friends class

This commit is contained in:
Pierre
2017-05-28 14:09:20 +02:00
parent d0eec49c4b
commit 3ad05483f5
4 changed files with 68 additions and 38 deletions

View File

@ -0,0 +1,29 @@
<?php
/**
* Friends controller
*
* @author Pierre HUBERT
*/
class friendsController{
/**
* Get friends list
*
* @url POST /friends/getList
*/
public function getFriendsList(){
user_login_required(); //Login required
//Try to get friends list
$friendsList = false;
//Check for errors
if($friendsList === false)
Rest_fatal_error(500, "Couldn't get friends list !");
//Return list
return $friendsList;
}
}