xREL.v3

API: comments/add method - Wiki

Sprache wählen
Board RSS API Status Hilfe Kontakt
Optionen

Artikel: API: comments/add method

API: comments/add method

Currently NOT available

Add a comment to a given API release id or API P2P release id.

URL
https://api.xrel.to/v2/comments/add.format

Formats
json, xml

HTTP Method(s)
POST

Authentication
OAuth

Parameters
NameDescr.Default
idAPI release id or API P2P release id(required)
typeUse one of: release|p2p_rls(required)
textThe comment. You may use BBCode to format the text. Can be empty if both video_rating and audio_rating are set.(empty)
video_rating
audio_rating
Video and audio rating between 1 (bad) to 10 (good). You must always rate both or none. You may only vote once, and may not change your vote. Check the <vote> tag from the response to get the rating as displayed on the website.(optional)

Example Response
<?xml version="1.0" encoding="UTF-8"?>
<added_comment>
  <id>05378f88236ad</id>
  <time>1442967487</time>
  <author>
    <id>ca121da22</id>
    <name>Doakes</name>
  </author>
  <text>This value might be enclosed into CDATA if new lines are present. It may also contain [b]BB[/b]Code.</text>
  <link_href>https://www.xrel.to/comments-goto.html?id=303595</link_href>
  <rating>
    <video>9</video>
    <audio>8</audio>
  </rating>
  <votes>
    <positive>0</positive>
    <negative>0</negative>
  </votes>
  <edits>
    <count>0</count>
    <last />
  </edits>
</added_comment>


The <text> tag may contain BBCode. A HTML or plain text version may be available in the future, please request.

Zuletzt aktualisiert: 8. Jan. 2021, 18:48 Uhr.

Optionen

Artikel bewerten
0/50/50/50/50/50/50/50/50/50/5
Bisher stimmte niemand ab