API: about.json: Youtube reactions

This commit is contained in:
Arthi-chaud
2022-02-24 20:06:35 +01:00
parent a700f6a44d
commit c7affe05b8
+67 -1
View File
@@ -84,6 +84,72 @@
]
}
],
"reactions": []
"reactions": [
{
"name": "YtLike",
"description": "Like a Youtube video",
"params": [
{
"name": "videoId",
"type": "string",
"description": "ID of the video to like"
}
],
"returns": [
{
"name": "ID",
"description": "Youtube ID of the liked video"
}
]
},
{
"name": "YtComment",
"description": "Comment a Youtube video",
"params": [
{
"name": "videoId",
"type": "string",
"description": "ID of the video to like"
},
{
"name": "body",
"type": "string",
"description": "Content of the comment"
}
],
"returns": [
{
"name": "ID",
"description": "Youtube ID of the commented video"
}
]
},
{
"name": "YtAddToPlaylist",
"description": "Add a Youtube video to a playlist",
"params": [
{
"name": "videoId",
"type": "string",
"description": "ID of the video to add"
},
{
"name": "playlistId",
"type": "string",
"description": "ID of the playlist to add the video to"
}
],
"returns": [
{
"name": "VIDEO_ID",
"description": "Youtube ID of the added video"
},
{
"name": "PLAYLIST_ID",
"description": "Youtube ID of the playlist"
}
]
}
]
}
]