From b52fce45085c2cc1c4388f80ad38d85b6618e1f7 Mon Sep 17 00:00:00 2001 From: Arthi-chaud Date: Thu, 24 Feb 2022 20:42:27 +0100 Subject: [PATCH] API: about.json: spotify reactions --- api/services/spotify.json | 106 +++++++++++++++++++++++++++++++++++++- 1 file changed, 104 insertions(+), 2 deletions(-) diff --git a/api/services/spotify.json b/api/services/spotify.json index 508b4b5..1dc59f3 100644 --- a/api/services/spotify.json +++ b/api/services/spotify.json @@ -37,8 +37,110 @@ "description": "Name of the added track" } ] - }, + } ], - "reactions": [] + "reactions": [ + { + "name": "PlayTrack", + "description": "Play a track", + "params": [ + { + "name": "artist", + "type": "string", + "description": "Artist of the song to play" + }, + { + "name": "track", + "type": "string", + "description": "Title of the song to play" + } + ], + "returns": [ + { + "name": "URL", + "description": "URL of the song" + }, + { + "name": "ARTIST", + "description": "Artist of the song" + }, + { + "name": "TRACK", + "description": "Title of the song" + } + ] + }, + { + "name": "Pause", + "description": "Pause play", + "params": [], + "returns": [] + }, + { + "name": "AddTrackToLibrary", + "description": "Add a track to library", + "params": [ + { + "name": "artist", + "type": "string", + "description": "Artist of the song to add" + }, + { + "name": "track", + "type": "string", + "description": "Title of the song to add" + } + ], + "returns": [ + { + "name": "URL", + "description": "URL of the added song" + }, + { + "name": "ARTIST", + "description": "Artist of the added song" + }, + { + "name": "TRACK", + "description": "Title of the added song" + } + ] + }, + { + "name": "AddToPlaylist", + "description": "Add a track to a playlist", + "params": [ + { + "name": "artist", + "type": "string", + "description": "Artist of the song to add" + }, + { + "name": "track", + "type": "string", + "description": "Title of the song to add" + }, + { + "name": "playlist", + "type": "string", + "description": "Name of the playlist" + } + ], + "returns": [ + { + "name": "URL", + "description": "URL of the added song" + }, + { + "name": "ARTIST", + "description": "Artist of the added song" + }, + { + "name": "TRACK", + "description": "Title of the added song" + } + ] + } + ] } ] \ No newline at end of file