From a11e1cda8d86b6e1468d5aef63a729d02309eece Mon Sep 17 00:00:00 2001 From: Arthi-chaud Date: Thu, 24 Feb 2022 20:25:48 +0100 Subject: [PATCH] API: about.json: spotify actions --- api/services/spotify.json | 44 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 api/services/spotify.json diff --git a/api/services/spotify.json b/api/services/spotify.json new file mode 100644 index 0000000..508b4b5 --- /dev/null +++ b/api/services/spotify.json @@ -0,0 +1,44 @@ +[ + { + "name": "Spotify", + "actions": [ + { + "name": "OnSpotifyAddToPlaylist", + "description": "Event triggered when a song is added to a Spotify playlist", + "params": [ + { + "name": "playlistId", + "type": "string", + "description": "The Spotify ID of the playlist to watch" + } + ], + "returns": [ + { + "name": "ID", + "description": "ID of the added track" + }, + { + "name": "NAME", + "description": "Name of the added track" + } + ] + }, + { + "name": "OnSpotifySaveToLibrary", + "description": "Event triggered when a song is added to a Spotify library", + "params": [], + "returns": [ + { + "name": "ID", + "description": "ID of the added track" + }, + { + "name": "NAME", + "description": "Name of the added track" + } + ] + }, + ], + "reactions": [] + } +] \ No newline at end of file