Spotify
Поиск музыки, управление плейлистами, управление воспроизведением и доступ к библиотеке Spotify.
Spotify — это ведущий в мире leading music streaming service. The AACFlow block connects to the Spotify Web API using OAuth 2.0 to automate music discovery, playlist management, library curation, и playback control.
Official API documentation: https://developer.spotify.com/documentation/web-api
- Go to the Spotify Developer Dashboard и create an application.
- Добавить
https://app.aacflow.io/api/auth/callback/spotify as a Redirect URI (replace с your instance URL if self-hosted).
- Note the Client ID и Client Secret.
- In AACFlow, go to Settings → Integrations → Spotify и complete the OAuth connection. Grant the scopes required для the operations you plan to use (see the Spotify API scopes reference).
| Операция | Описание |
|---|
spotify_search | Поиск tracks, albums, artists, playlists, shows, episodes, or audiobooks. |
spotify_get_new_releases | Browse new album releases. |
spotify_get_categories | List Spotify content categories. |
spotify_get_markets | List available markets. |
| Операция | Описание |
|---|
spotify_get_track | Get a track by Spotify ID. |
spotify_get_tracks | Get multiple tracks by IDs. |
spotify_get_saved_tracks | Получить current user's saved tracks. |
spotify_save_tracks | Save tracks to the current user's library. |
spotify_remove_saved_tracks | Remove saved tracks. |
spotify_check_saved_tracks | Check whether tracks are saved. |
spotify_get_recently_played | Get recently played tracks. |
| Операция | Описание |
|---|
spotify_get_album | Get an album by ID. |
spotify_get_albums | Get multiple albums. |
spotify_get_album_tracks | Get tracks of an album. |
spotify_get_saved_albums | Get saved albums. |
spotify_save_albums | Save albums. |
spotify_remove_saved_albums | Remove saved albums. |
spotify_check_saved_albums | Check whether albums are saved. |
| Операция | Описание |
|---|
spotify_get_artist | Get an artist by ID. |
spotify_get_artists | Get multiple artists. |
spotify_get_artist_albums | Get albums by an artist. |
spotify_get_artist_top_tracks | Get an artist's top tracks. |
spotify_follow_artists | Follow artists. |
spotify_unfollow_artists | Unfollow artists. |
spotify_get_followed_artists | Get followed artists. |
spotify_check_following | Check whether the user follows artists or users. |
| Операция | Описание |
|---|
spotify_get_playlist | Get a playlist by ID. |
spotify_get_playlist_tracks | Get tracks in a playlist. |
spotify_get_playlist_cover | Get a playlist's cover image. |
spotify_get_user_playlists | Получить current user's playlists. |
spotify_create_playlist | Создать новый playlist. |
spotify_update_playlist | Обновить playlist's name or description. |
spotify_add_playlist_cover | Upload a custom cover image (base64 JPEG). |
spotify_add_tracks_to_playlist | Add tracks to a playlist. |
spotify_remove_tracks_from_playlist | Remove tracks from a playlist. |
spotify_reorder_playlist_items | Reorder items in a playlist. |
spotify_replace_playlist_items | Replace all items in a playlist. |
spotify_follow_playlist | Follow a playlist. |
spotify_unfollow_playlist | Unfollow a playlist. |
spotify_check_playlist_followers | Check whether users follow a playlist. |
| Операция | Описание |
|---|
spotify_get_show | Get a show (podcast) by ID. |
spotify_get_shows | Get multiple shows. |
spotify_get_show_episodes | Get episodes of a show. |
spotify_get_saved_shows | Get saved shows. |
spotify_save_shows | Save shows. |
spotify_remove_saved_shows | Remove saved shows. |
spotify_check_saved_shows | Check whether shows are saved. |
| Операция | Описание |
|---|
spotify_get_episode | Get an episode by ID. |
spotify_get_episodes | Get multiple episodes. |
spotify_get_saved_episodes | Get saved episodes. |
spotify_save_episodes | Save episodes. |
spotify_remove_saved_episodes | Remove saved episodes. |
spotify_check_saved_episodes | Check whether episodes are saved. |
| Операция | Описание |
|---|
spotify_get_audiobook | Get an audiobook by ID. |
spotify_get_audiobooks | Get multiple audiobooks. |
spotify_get_audiobook_chapters | Get chapters of an audiobook. |
spotify_get_saved_audiobooks | Get saved audiobooks. |
spotify_save_audiobooks | Save audiobooks. |
spotify_remove_saved_audiobooks | Remove saved audiobooks. |
spotify_check_saved_audiobooks | Check whether audiobooks are saved. |
| Операция | Описание |
|---|
spotify_get_current_user | Получить current user's Spotify profile. |
spotify_get_user_profile | Get a public user's profile. |
spotify_get_top_tracks | Получить current user's top tracks. |
spotify_get_top_artists | Получить current user's top artists. |
| Операция | Описание |
|---|
spotify_get_playback_state | Получить current playback state. |
spotify_get_currently_playing | Получить currently playing track. |
spotify_get_devices | Get available playback devices. |
spotify_get_queue | Получить playback queue. |
spotify_play | Start or resume playback. |
spotify_pause | Pause playback. |
spotify_skip_next | Skip to the next track. |
spotify_skip_previous | Skip to the previous track. |
spotify_seek | Seek to a position in the current track. |
spotify_add_to_queue | Add an item to the playback queue. |
spotify_set_volume | Установить playback volume (0–100). |
spotify_set_repeat | Установить repeat mode (off / track / context). |
spotify_set_shuffle | Enable or disable shuffle. |
spotify_transfer_playback | Transfer playback to a different device. |
Поиск tracks matching a mood keyword, create a new playlist для the day, add the top 20 results, then transfer playback to a specified device — all triggered by a morning schedule.