1
0
mirror of https://github.com/nextcloud/ocsms.git synced 2026-08-11 16:32:55 +00:00

Implement Android APIv2 get/phones/smsnumber call

This commit is contained in:
Loic BLOT (@UXP)
2015-04-10 13:21:56 +02:00
parent 152fbaef0f
commit 0fcaad6d31
4 changed files with 10 additions and 7 deletions
+5 -2
View File
@@ -82,9 +82,12 @@ class ApiController extends Controller {
/**
* @NoAdminRequired
* @NoCSRFRequired
*
* This function is used by API v2
* Phone will get this list to generate a ListView
*/
public function getPhonesSmsNumber () {
$phoneList = array();
public function getAllStoredPhoneNumbers () {
$phoneList = $this->smsMapper->getAllPhoneNumbers($this->userId);
return new JSONResponse(array("phoneList" => $phoneList));
}