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:
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user