diff --git a/api/services/youtube.json b/api/services/youtube.json new file mode 100644 index 0000000..42e5254 --- /dev/null +++ b/api/services/youtube.json @@ -0,0 +1,89 @@ +[ + { + "name": "Youtube", + "actions": [ + { + "name": "OnYtUpload", + "description": "Event triggered on video upload", + "params": [ + { + "name": "channel", + "type": "string", + "description": "Name of the channel to watch over" + } + ], + "returns": [ + { + "name": "ID", + "description": "Youtube ID of the uploaded video" + }, + { + "name": "CHANNEL_ID", + "description": "Youtube ID of the channel the video was uploaded to" + }, + { + "name": "TITLE", + "description": "Title of the uploaded video" + }, + { + "name": "DESCRIPTION", + "description": "Description of the uploaded video" + }, + { + "name": "PUBLISHED_AT", + "description": "Date of the release" + }, + { + "name": "CHANNEL_TITLE", + "description": "Name of the channel the video was uploaded to" + } + ] + }, + { + ///TODO implement action + "name": "OnYtLike", + "description": "Event triggered on video like", + "params": [], + "returns": [] + }, + { + "name": "OnYtPlaylistAdd", + "description": "Event triggered when a video is added to a playlist", + "params": [ + { + "name": "playlistId", + "type": "string", + "description": "ID of the playlist to watch over" + } + ], + "returns": [ + { + "name": "ID", + "description": "Youtube ID of the added video" + }, + { + "name": "CHANNEL_ID", + "description": "Youtube ID of the channel the video was uploaded to" + }, + { + "name": "TITLE", + "description": "Title of the uploaded video" + }, + { + "name": "DESCRIPTION", + "description": "Description of the uploaded video" + }, + { + "name": "LIKED_AT", + "description": "Date of the video like" + }, + { + "name": "CHANNEL_TITLE", + "description": "Name of the channel the video was uploaded to" + } + ] + } + ], + "reactions": [] + } +] \ No newline at end of file