Discussions

Introduction

This section documents methods for retrieving discussions and communication threads from the E-BLOC platform.

AjaxGetPereteSubjects

This method returns JSON with all discussion subjects (topics/threads) available for a specific user under a specific association ID.

Using curl
curl
1curl 'https://www.e-bloc.ro/ajax/AjaxGetPereteSubjects.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=[?]; 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]&pLastSubjectTime=0&pSubjects=[LEN]'

Response Structure

Click to see the response
response
 1{
 2   "1": {
 3      "status": "more",
 4      "id": "[COM-ID]",
 5      "id_user": "[USR-ID]",
 6      "time_add": "[TIMESTAMP]",
 7      "data": "[YYYY]-[MM]-[DD]",
 8      "prefix_smart": "",
 9      "ap": "[AP-NAME]",
10      "mesaj": "[MESSAGE]",
11      "link": "[LINK]",
12      "subiect": "[SUBJECT]",
13      "descriere": "[DESC]",
14      "img_small": "[IMG-SM]",
15      "img_big": "[IMG-BG]",
16      "youtube_id": "[YT-ID]",
17      "video_open": "0",
18      "time_add_str": "[DATE]",
19      "urmarit": "0",
20      "attach_nr": "[NR-ATC]"
21   }
22}

Reject Response

Click to see the response
response
1{
2   "1": {
3      "status": "nologin"
4   }
5}

AjaxGetPereteRaspunsuri

This method will return a json with all the replays available for a specific comment

Forge Request

Using curl
curl
1curl 'https://www.e-bloc.ro/ajax/AjaxGetPereteRaspunsuri.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=[?]; 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]&pSubjectId=[COM-ID]&pCount=[LEN]'

Response Structure

Click to see the response
response
 1{
 2   "1": {
 3      "status": "ok",
 4      "id": "[REP-ID]",
 5      "id_subiect": "[COM-ID]",
 6      "id_user": "[USR-ID]",
 7      "time_add": "[TIMESTAMP]",
 8      "prefix_smart": "",
 9      "ap": "[AUTHOR]",
10      "mesaj": "[MESSAGE]",
11      "time_add_str": "[DATE]",
12      "attach_nr": "[NR-ATC]"
13   }
14}

Reject Response

Click to see the response
response
1{
2   "1": {
3      "status": "nologin"
4   }
5}