From 63cfb95a4af3ddc01609a4c87fc559d0e57bf75e Mon Sep 17 00:00:00 2001 From: video-prize-ranch Date: Sat, 23 Jul 2022 17:39:47 -0400 Subject: [PATCH] Test AsciiDoc --- Odysee-API/Comments.adoc | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 Odysee-API/Comments.adoc diff --git a/Odysee-API/Comments.adoc b/Odysee-API/Comments.adoc new file mode 100644 index 0000000..158f292 --- /dev/null +++ b/Odysee-API/Comments.adoc @@ -0,0 +1,28 @@ += Comments (comments.odysee.tv) +:toc: +Documentation for the comments API. https://github.com/OdyseeTeam/commentron + +== `POST` List comments + https:/comments.odysee.tv/api/v2?m=comment.List + +List comments for a claim. + +=== `JSON` /api/v2?m=comment.List +[,json] +---- +{ + "jsonrpc": "2.0", + "id": 1, + "method": "comment.List", + "params": { + "page": 1, + "page_size": 10, + "top_level": true, + "sort_by: 3, # 3 - Best, 2 - Controversial, 0 - New + "parent_id": "parent comment ID", # For comment replies + "claim_id": "463e63afb35a319f260b36ef8d5c3dc41a98ce28", + "channel_id": "ecf0a6be99030d0ad4e10aec11d2c0bab94246ae", + "channel_name": "@MusicARetro" + } +} +---- \ No newline at end of file