Generic Methods

AjaxGetHomeAp

This method returns a JSON with the apartment IDs (AP-ID) that the user has access to, based on the association ID (AS-ID).

Request

Using curl
cURL command
1curl 'https://www.e-bloc.ro/ajax/AjaxGetHomeAp.php' \
2   -H 'Content-Type: application/x-www-form-urlencoded' \
3   -b 'username=[EMAIL]; facturi-luna-cur=-; index-luna-cur=-; asoc-cur=[AS-ID]; home-ap-cur=[AS-ID]-[AP-ID]; home-stat-cur=[MM]; PHPSESSID=[COOKY]; avizier-luna-cur=[YYYY]-[MM]' \
4   -H 'User-Agent: Mozilla/5.0 (Linux; Android 6.0; Nexus 5 Build/MRA58N) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Mobile Safari/537.36' \
5   --data-raw 'pIdAsoc=[AS-ID]&pTip=1'
Using Postman
Get Home AP in Postman
Request Body
1pIdAsoc=[AS-ID]&pTip=1

Response

Success Response
Success response
1[
2   {
3      "status": "ok",
4      "id_ap": "[AP-ID]",
5      "prefix_smart": "",
6      "titlu": "Apartament [AP-NR]"
7   }
8]

Error Response

Error Response
Error response
1{
2   "1": {
3      "status": "nologin"
4   }
5}