================================================== Discussions ================================================== .. meta:: :description: Discussion and communication methods for E-BLOC platform :keywords: documentation, ebloc, discussions, comments, messages .. contents:: Table of Contents :depth: 2 :local: 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. .. dropdown:: Using curl :color: primary :icon: info .. code-block:: shell :caption: curl :linenos: curl 'https://www.e-bloc.ro/ajax/AjaxGetPereteSubjects.php' \ -H 'Content-Type: application/x-www-form-urlencoded' \ -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]' \ -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' \ --data-raw 'pIdAsoc=[AS-ID]&pLastSubjectTime=0&pSubjects=[LEN]' .. .. dropdown:: Using postman .. :color: primary .. :icon: info .. .. image:: ../resources/forge-postman-getavizier.png .. :width: 400 .. :alt: getavizier .. :align: center .. .. code-block:: shell .. :caption: Request Body .. :linenos: .. pIdAsoc=[AS-ID]&pLastSubjectTime=0&pSubjects=[LEN] **Response Structure** .. dropdown:: Click to see the response :color: success :icon: info .. code-block:: json :caption: response :linenos: { "1": { "status": "more", "id": "[COM-ID]", "id_user": "[USR-ID]", "time_add": "[TIMESTAMP]", "data": "[YYYY]-[MM]-[DD]", "prefix_smart": "", "ap": "[AP-NAME]", "mesaj": "[MESSAGE]", "link": "[LINK]", "subiect": "[SUBJECT]", "descriere": "[DESC]", "img_small": "[IMG-SM]", "img_big": "[IMG-BG]", "youtube_id": "[YT-ID]", "video_open": "0", "time_add_str": "[DATE]", "urmarit": "0", "attach_nr": "[NR-ATC]" } } **Reject Response** .. dropdown:: Click to see the response :color: danger :icon: info .. code-block:: json :caption: response :linenos: { "1": { "status": "nologin" } } AjaxGetPereteRaspunsuri ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ This method will return a json with all the replays available for a specific comment **Forge Request** .. dropdown:: Using curl :color: primary :icon: info .. code-block:: shell :caption: curl :linenos: curl 'https://www.e-bloc.ro/ajax/AjaxGetPereteRaspunsuri.php' \ -H 'Content-Type: application/x-www-form-urlencoded' \ -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]' \ -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' \ --data-raw 'pIdAsoc=[AS-ID]&pSubjectId=[COM-ID]&pCount=[LEN]' .. .. dropdown:: Using postman .. :color: primary .. :icon: info .. .. image:: ../resources/forge-postman-getavizier.png .. :width: 400 .. :alt: getavizier .. :align: center .. .. code-block:: shell .. :caption: Request Body .. :linenos: .. pIdAsoc=[AS-ID]&pLastSubjectTime=0&pSubjects=[LEN] **Response Structure** .. dropdown:: Click to see the response :color: success :icon: info .. code-block:: json :caption: response :linenos: { "1": { "status": "ok", "id": "[REP-ID]", "id_subiect": "[COM-ID]", "id_user": "[USR-ID]", "time_add": "[TIMESTAMP]", "prefix_smart": "", "ap": "[AUTHOR]", "mesaj": "[MESSAGE]", "time_add_str": "[DATE]", "attach_nr": "[NR-ATC]" } } **Reject Response** .. dropdown:: Click to see the response :color: danger :icon: info .. code-block:: json :caption: response :linenos: { "1": { "status": "nologin" } }